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({
|
||||
name=material,
|
||||
description=materialDisplayName,
|
||||
descriptions = {
|
||||
head = "Helmet",
|
||||
torso = "Chestplate",
|
||||
legs = "Leggings",
|
||||
feet = "Boots",
|
||||
},
|
||||
durability=config.uses,
|
||||
points=config.armorPoints,
|
||||
craft_material="industrialtest:"..material,
|
||||
|
34
nodes.lua
34
nodes.lua
@ -379,23 +379,25 @@ if not industrialtest.mods.mclRubber then
|
||||
end
|
||||
end
|
||||
})
|
||||
mcl_dye.register_on_bone_meal_apply(function(pointed)
|
||||
local node=minetest.get_node(pointed.under)
|
||||
if node.name~="industrialtest:rubber_sapling" then
|
||||
return
|
||||
end
|
||||
if industrialtest.random:next(1,100)>45 then
|
||||
return
|
||||
end
|
||||
local meta=minetest.get_meta(pointed.under)
|
||||
local stage=meta:get_int("stage") or 0
|
||||
stage=stage+1
|
||||
if stage>=3 then
|
||||
if mcl_dye.register_on_bone_meal_apply then
|
||||
mcl_dye.register_on_bone_meal_apply(function(pointed)
|
||||
local node=minetest.get_node(pointed.under)
|
||||
if node.name~="industrialtest:rubber_sapling" then
|
||||
return
|
||||
end
|
||||
if industrialtest.random:next(1,100)>45 then
|
||||
return
|
||||
end
|
||||
local meta=minetest.get_meta(pointed.under)
|
||||
local stage=meta:get_int("stage") or 0
|
||||
stage=stage+1
|
||||
if stage>=3 then
|
||||
industrialtest.internal.makeRubberTree(pointed.under)
|
||||
else
|
||||
meta:set_int("stage",stage)
|
||||
end
|
||||
end)
|
||||
else
|
||||
meta:set_int("stage",stage)
|
||||
end
|
||||
end)
|
||||
end
|
||||
end
|
||||
definition.groups.attached_node=1
|
||||
definition.groups.dig_immediate=3
|
||||
|
Loading…
Reference in New Issue
Block a user