Compare commits
No commits in common. "089550cc28c0812d400c1edb3fb6d1a2bf4024f3" and "2c63498d78c097df92ad4534008188511fc3637e" have entirely different histories.
089550cc28
...
2c63498d78
30
nodes.lua
30
nodes.lua
@ -354,19 +354,6 @@ if not industrialtest.mods.mclRubber then
|
||||
name=="mcl_core:podzol" or name=="mcl_core:podzol_snow" or
|
||||
name=="mcl_core:dirt" or name=="mcl_core:mycelium" or name=="mcl_core:coarse_dirt"
|
||||
end)
|
||||
definition._on_bone_meal=function(itemstack,user,pointed)
|
||||
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
|
||||
minetest.register_abm({
|
||||
label="Rubber sapling growing",
|
||||
nodenames={"industrialtest:rubber_sapling"},
|
||||
@ -392,6 +379,23 @@ 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
|
||||
industrialtest.internal.makeRubberTree(pointed.under)
|
||||
else
|
||||
meta:set_int("stage",stage)
|
||||
end
|
||||
end)
|
||||
end
|
||||
definition.groups.attached_node=1
|
||||
definition.groups.dig_immediate=3
|
||||
|
@ -38,7 +38,6 @@ local S=minetest.get_translator("industrialtest")
|
||||
industrialtest.Treetap=table.copy(industrialtest.Tool)
|
||||
industrialtest.internal.unpackTableInto(industrialtest.Treetap,{
|
||||
name="industrialtest:treetap",
|
||||
define={onPlace=true},
|
||||
description=S("Treetap"),
|
||||
inventoryImage="industrialtest_treetap.png",
|
||||
uses=50,
|
||||
@ -65,7 +64,6 @@ minetest.register_craft({
|
||||
industrialtest.ElectricTreetap=table.copy(industrialtest.ElectricTool)
|
||||
industrialtest.internal.unpackTableInto(industrialtest.ElectricTreetap,{
|
||||
name="industrialtest:electric_treetap",
|
||||
define={onPlace=true},
|
||||
description=S("Electric Treetap"),
|
||||
inventoryImage="industrialtest_electric_treetap.png",
|
||||
capacity=10000,
|
||||
|
Loading…
x
Reference in New Issue
Block a user