aboutsummaryrefslogtreecommitdiff
path: root/data/mods/bucket/init.lua
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-12-03 11:41:52 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-12-03 11:41:52 +0200
commit760416b81fbcf3343d4276c20cf7d6028b5ad461 (patch)
treee60c8a16cf63b2b71721595cdc9f65e1d0271656 /data/mods/bucket/init.lua
parent1c785c32ef9290b5a461a6ec21b27b3621cb48a7 (diff)
downloadminetest-760416b81fbcf3343d4276c20cf7d6028b5ad461.tar.gz
minetest-760416b81fbcf3343d4276c20cf7d6028b5ad461.tar.bz2
minetest-760416b81fbcf3343d4276c20cf7d6028b5ad461.zip
Change naming convention to be modname:* instead of modname_* (sorry modders!)
Diffstat (limited to 'data/mods/bucket/init.lua')
-rw-r--r--data/mods/bucket/init.lua20
1 files changed, 10 insertions, 10 deletions
diff --git a/data/mods/bucket/init.lua b/data/mods/bucket/init.lua
index 33beb699d..3b1eefb37 100644
--- a/data/mods/bucket/init.lua
+++ b/data/mods/bucket/init.lua
@@ -1,12 +1,12 @@
minetest.register_craft({
- output = 'craft "bucket_empty" 1',
+ output = 'craft "bucket:bucket_empty" 1',
recipe = {
{'craft "steel_ingot"', '', 'craft "steel_ingot"'},
{'', 'craft "steel_ingot"', ''},
}
})
-minetest.register_craftitem("bucket_empty", {
+minetest.register_craftitem("bucket:bucket_empty", {
image = "bucket.png",
stack_max = 1,
liquids_pointable = true,
@@ -16,11 +16,11 @@ minetest.register_craftitem("bucket_empty", {
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('craft "bucket_water" 1')
+ player:add_to_inventory_later('craft "bucket: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('craft "bucket_lava" 1')
+ player:add_to_inventory_later('craft "bucket:bucket_lava" 1')
return true
end
end
@@ -28,8 +28,8 @@ minetest.register_craftitem("bucket_empty", {
end,
})
-minetest.register_craftitem("bucket_water", {
- image = "bucket_water.png",
+minetest.register_craftitem("bucket:bucket_water", {
+ image = "bucket:bucket_water.png",
stack_max = 1,
liquids_pointable = true,
on_place_on_ground = minetest.craftitem_place_item,
@@ -43,15 +43,15 @@ minetest.register_craftitem("bucket_water", {
else
minetest.env:add_node(pointed_thing.above, {name="water_source"})
end
- player:add_to_inventory_later('craft "bucket_empty" 1')
+ player:add_to_inventory_later('craft "bucket:bucket_empty" 1')
return true
end
return false
end,
})
-minetest.register_craftitem("bucket_lava", {
- image = "bucket_lava.png",
+minetest.register_craftitem("bucket:bucket_lava", {
+ image = "bucket:bucket_lava.png",
stack_max = 1,
liquids_pointable = true,
on_place_on_ground = minetest.craftitem_place_item,
@@ -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('craft "bucket_empty" 1')
+ player:add_to_inventory_later('craft "bucket:bucket_empty" 1')
return true
end
return false