Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xdecor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
xdecor
Commits
c468417d
Commit
c468417d
authored
9 years ago
by
jp
Browse files
Options
Downloads
Patches
Plain Diff
Tweak ABMs and flint use
parent
222d5db6
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
hive.lua
+2
-2
2 additions, 2 deletions
hive.lua
itemframe.lua
+1
-1
1 addition, 1 deletion
itemframe.lua
nodes.lua
+2
-2
2 additions, 2 deletions
nodes.lua
with
5 additions
and
5 deletions
hive.lua
+
2
−
2
View file @
c468417d
...
...
@@ -49,12 +49,12 @@ xdecor.register("hive", {
minetest
.
register_abm
({
nodenames
=
{
"xdecor:hive"
},
interval
=
4
,
chance
=
4
,
interval
=
10
,
chance
=
4
,
action
=
function
(
pos
,
node
,
active_object_count
,
active_object_count_wider
)
local
meta
=
minetest
.
get_meta
(
pos
)
local
inv
=
meta
:
get_inventory
()
local
radius
=
16
local
radius
=
8
local
minp
=
{
x
=
pos
.
x
-
radius
,
y
=
pos
.
y
-
radius
,
z
=
pos
.
z
-
radius
}
local
maxp
=
{
x
=
pos
.
x
+
radius
,
y
=
pos
.
y
+
radius
,
z
=
pos
.
z
+
radius
}
local
flowers
=
minetest
.
find_nodes_in_area
(
minp
,
maxp
,
"group:flower"
)
...
...
This diff is collapsed.
Click to expand it.
itemframe.lua
+
1
−
1
View file @
c468417d
...
...
@@ -131,7 +131,7 @@ xdecor.register("frame", {
minetest
.
register_abm
({
nodenames
=
{
"xdecor:frame"
},
interval
=
1
0
,
chance
=
1
,
interval
=
1
5
,
chance
=
1
,
action
=
function
(
pos
,
node
,
active_object_count
,
active_object_count_wider
)
local
num
if
node
.
name
~=
"xdecor:frame"
then
return
end
...
...
This diff is collapsed.
Click to expand it.
nodes.lua
+
2
−
2
View file @
c468417d
...
...
@@ -323,7 +323,7 @@ minetest.register_tool("xdecor:flint_steel", {
description
=
"Flint & Steel"
,
inventory_image
=
"xdecor_flint_steel.png"
,
tool_capabilities
=
{
groupcaps
=
{
igniter
=
{
uses
=
65
,
maxlevel
=
1
}
}
groupcaps
=
{
igniter
=
{
uses
=
10
,
maxlevel
=
1
}
}
},
on_use
=
function
(
itemstack
,
user
,
pointed_thing
)
local
player
=
user
:
get_player_name
()
...
...
@@ -336,7 +336,7 @@ minetest.register_tool("xdecor:flint_steel", {
end
else
return
end
itemstack
:
add_wear
(
65535
/
65
)
itemstack
:
add_wear
(
1000
)
return
itemstack
end
})
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment