diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-12-02 12:12:07 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-12-02 12:12:07 +0200 |
commit | 69bc9224dbfb5609af140d8ec5c791763e3f4295 (patch) | |
tree | fcd4732efd85f4323400e5be9a523db7d8e700e1 /data/mods/bucket | |
parent | a17efe6e8f069de7a51c2fc5fd89ee3fbe65ff28 (diff) | |
download | minetest-69bc9224dbfb5609af140d8ec5c791763e3f4295.tar.gz minetest-69bc9224dbfb5609af140d8ec5c791763e3f4295.tar.bz2 minetest-69bc9224dbfb5609af140d8ec5c791763e3f4295.zip |
Rename "NodeItem"/"ToolItem"/"CraftItem" to "node"/"tool"/"craft"
Diffstat (limited to 'data/mods/bucket')
-rw-r--r-- | data/mods/bucket/init.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/data/mods/bucket/init.lua b/data/mods/bucket/init.lua index 013ff2408..6d16c0cde 100644 --- a/data/mods/bucket/init.lua +++ b/data/mods/bucket/init.lua @@ -1,8 +1,8 @@ minetest.register_craft({ - output = 'CraftItem "bucket" 1', + output = 'craft "bucket" 1', recipe = { - {'CraftItem "steel_ingot"', '', 'CraftItem "steel_ingot"'}, - {'', 'CraftItem "steel_ingot"', ''}, + {'craft "steel_ingot"', '', 'craft "steel_ingot"'}, + {'', 'craft "steel_ingot"', ''}, } }) @@ -16,11 +16,11 @@ minetest.register_craftitem("bucket", { n = minetest.env:get_node(pointed_thing.under) if n.name == "water_source" then minetest.env:add_node(pointed_thing.under, {name="air"}) - player:add_to_inventory_later('CraftItem "bucket_water" 1') + player:add_to_inventory_later('craft "bucket_water" 1') return true elseif n.name == "lava_source" then minetest.env:add_node(pointed_thing.under, {name="air"}) - player:add_to_inventory_later('CraftItem "bucket_lava" 1') + player:add_to_inventory_later('craft "bucket_lava" 1') return true end end @@ -43,7 +43,7 @@ minetest.register_craftitem("bucket_water", { else minetest.env:add_node(pointed_thing.above, {name="water_source"}) end - player:add_to_inventory_later('CraftItem "bucket" 1') + player:add_to_inventory_later('craft "bucket" 1') return true end return false @@ -65,7 +65,7 @@ minetest.register_craftitem("bucket_lava", { else minetest.env:add_node(pointed_thing.above, {name="lava_source"}) end - player:add_to_inventory_later('CraftItem "bucket" 1') + player:add_to_inventory_later('craft "bucket" 1') return true end return false |