Use tabs in rp_supertools
This commit is contained in:
parent
e250afd0d7
commit
6032df3e64
@ -18,9 +18,7 @@ local grow_tall = function(pos, y_dir, nodename)
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_craftitem(
|
minetest.register_craftitem("rp_supertools:growth_tool", {
|
||||||
"rp_supertools:growth_tool",
|
|
||||||
{
|
|
||||||
description = S("Growth Tool"),
|
description = S("Growth Tool"),
|
||||||
_tt_help = S("Make plants and mobs grow instantly"),
|
_tt_help = S("Make plants and mobs grow instantly"),
|
||||||
inventory_image = "rp_supertools_growth_tool.png",
|
inventory_image = "rp_supertools_growth_tool.png",
|
||||||
@ -135,7 +133,6 @@ minetest.register_craftitem(
|
|||||||
used = true
|
used = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if used then
|
if used then
|
||||||
minetest.sound_play({name="rp_farming_place_nonseed", gain=0.75}, {pos=pointed_thing.under}, true)
|
minetest.sound_play({name="rp_farming_place_nonseed", gain=0.75}, {pos=pointed_thing.under}, true)
|
||||||
if not minetest.is_creative_enabled(placer:get_player_name()) then
|
if not minetest.is_creative_enabled(placer:get_player_name()) then
|
||||||
@ -149,9 +146,7 @@ minetest.register_craftitem(
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem(
|
minetest.register_craftitem("rp_supertools:degrowth_tool", {
|
||||||
"rp_supertools:degrowth_tool",
|
|
||||||
{
|
|
||||||
description = S("Degrowth Tool"),
|
description = S("Degrowth Tool"),
|
||||||
_tt_help = S("Turn mobs into children"),
|
_tt_help = S("Turn mobs into children"),
|
||||||
inventory_image = "rp_supertools_degrowth_tool.png",
|
inventory_image = "rp_supertools_degrowth_tool.png",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user