forked from mrkubax10/industrialtest
Merge branch 'master' of https://git.cubesoftware.xyz/mrkubax10/industrialtest into s-func
This commit is contained in:
commit
64f1ab4275
@ -358,6 +358,12 @@ if industrialtest.mclAvailable then
|
|||||||
mcl_armor.register_set({
|
mcl_armor.register_set({
|
||||||
name=material,
|
name=material,
|
||||||
description=materialDisplayName,
|
description=materialDisplayName,
|
||||||
|
descriptions = {
|
||||||
|
head = "Helmet",
|
||||||
|
torso = "Chestplate",
|
||||||
|
legs = "Leggings",
|
||||||
|
feet = "Boots",
|
||||||
|
},
|
||||||
durability=config.uses,
|
durability=config.uses,
|
||||||
points=config.armorPoints,
|
points=config.armorPoints,
|
||||||
craft_material="industrialtest:"..material,
|
craft_material="industrialtest:"..material,
|
||||||
|
34
nodes.lua
34
nodes.lua
@ -379,23 +379,25 @@ if not industrialtest.mods.mclRubber then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
mcl_dye.register_on_bone_meal_apply(function(pointed)
|
if mcl_dye.register_on_bone_meal_apply then
|
||||||
local node=minetest.get_node(pointed.under)
|
mcl_dye.register_on_bone_meal_apply(function(pointed)
|
||||||
if node.name~="industrialtest:rubber_sapling" then
|
local node=minetest.get_node(pointed.under)
|
||||||
return
|
if node.name~="industrialtest:rubber_sapling" then
|
||||||
end
|
return
|
||||||
if industrialtest.random:next(1,100)>45 then
|
end
|
||||||
return
|
if industrialtest.random:next(1,100)>45 then
|
||||||
end
|
return
|
||||||
local meta=minetest.get_meta(pointed.under)
|
end
|
||||||
local stage=meta:get_int("stage") or 0
|
local meta=minetest.get_meta(pointed.under)
|
||||||
stage=stage+1
|
local stage=meta:get_int("stage") or 0
|
||||||
if stage>=3 then
|
stage=stage+1
|
||||||
|
if stage>=3 then
|
||||||
industrialtest.internal.makeRubberTree(pointed.under)
|
industrialtest.internal.makeRubberTree(pointed.under)
|
||||||
else
|
else
|
||||||
meta:set_int("stage",stage)
|
meta:set_int("stage",stage)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
definition.groups.attached_node=1
|
definition.groups.attached_node=1
|
||||||
definition.groups.dig_immediate=3
|
definition.groups.dig_immediate=3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user