aboutsummaryrefslogtreecommitdiff
path: root/data/mods/bucket
diff options
context:
space:
mode:
Diffstat (limited to 'data/mods/bucket')
-rw-r--r--data/mods/bucket/init.lua14
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