remove cauldrons and bowls

This commit is contained in:
Juraj Vajda 2018-02-10 16:11:36 -05:00
parent 96eda24b62
commit 3eb6a4dae2
3 changed files with 32 additions and 21 deletions

View File

@ -10,7 +10,7 @@ dofile(modpath.."/handlers/registration.lua")
-- Item files.
dofile(modpath.."/src/chess.lua")
dofile(modpath.."/src/cooking.lua")
-- dofile(modpath.."/src/cooking.lua")
dofile(modpath.."/src/craftitems.lua")
dofile(modpath.."/src/enchanting.lua")
-- dofile(modpath.."/src/hive.lua")
@ -22,3 +22,14 @@ dofile(modpath.."/src/recipes.lua")
dofile(modpath.."/src/rope.lua")
-- dofile(modpath.."/src/workbench.lua")
--print(string.format("[xdecor] loaded in %.2f ms", (os.clock()-t)*1000))
-- remove cauldrons
minetest.register_lbm({
label = "Cauldron Removal",
name = "xdecor:cauldron_removal_lbm",
nodenames = {"xdecor:cauldron_empty", "xdecor:cauldron_idle", "xdecor:cauldron_boiling", "xdecor:cauldron_soup"},
-- run_at_every_load = true,
action = function(pos, node)
minetest.set_node(pos, {name = "default:apple"})
end
})

View File

@ -1,17 +1,17 @@
minetest.register_craftitem("xdecor:bowl", {
description = "Bowl",
inventory_image = "xdecor_bowl.png",
wield_image = "xdecor_bowl.png"
})
-- minetest.register_craftitem("xdecor:bowl", {
-- description = "Bowl",
-- inventory_image = "xdecor_bowl.png",
-- wield_image = "xdecor_bowl.png"
-- })
minetest.register_craftitem("xdecor:bowl_soup", {
description = "Bowl of soup",
inventory_image = "xdecor_bowl_soup.png",
wield_image = "xdecor_bowl_soup.png",
groups = {not_in_creative_inventory=1},
stack_max = 1,
on_use = minetest.item_eat(30, "xdecor:bowl")
})
-- minetest.register_craftitem("xdecor:bowl_soup", {
-- description = "Bowl of soup",
-- inventory_image = "xdecor_bowl_soup.png",
-- wield_image = "xdecor_bowl_soup.png",
-- groups = {not_in_creative_inventory=1},
-- stack_max = 1,
-- on_use = minetest.item_eat(30, "xdecor:bowl")
-- })
-- minetest.register_tool("xdecor:hammer", {
-- description = "Hammer",

View File

@ -16,13 +16,13 @@ minetest.register_craft({
}
})
minetest.register_craft({
output = "xdecor:bowl 3",
recipe = {
{"group:wood", "", "group:wood"},
{"", "group:wood", ""}
}
})
-- minetest.register_craft({
-- output = "xdecor:bowl 3",
-- recipe = {
-- {"group:wood", "", "group:wood"},
-- {"", "group:wood", ""}
-- }
-- })
minetest.register_craft({
output = "xdecor:candle",