diff options
Diffstat (limited to 'games/minimal/mods/bucket')
-rw-r--r-- | games/minimal/mods/bucket/init.lua | 26 | ||||
-rw-r--r-- | games/minimal/mods/bucket/mod.conf | 2 | ||||
-rw-r--r-- | games/minimal/mods/bucket/textures/bucket.png | bin | 163 -> 0 bytes | |||
-rw-r--r-- | games/minimal/mods/bucket/textures/bucket_lava.png | bin | 168 -> 0 bytes | |||
-rw-r--r-- | games/minimal/mods/bucket/textures/bucket_water.png | bin | 168 -> 0 bytes |
5 files changed, 0 insertions, 28 deletions
diff --git a/games/minimal/mods/bucket/init.lua b/games/minimal/mods/bucket/init.lua deleted file mode 100644 index 3189d4aa6..000000000 --- a/games/minimal/mods/bucket/init.lua +++ /dev/null @@ -1,26 +0,0 @@ --- Bucket: Punch liquid source or flowing liquid to collect it - -minetest.register_tool("bucket:bucket", { - description = "Bucket", - inventory_image = "bucket.png", - stack_max = 1, - liquids_pointable = true, - groups = { disable_repair = 1 }, - on_use = function(itemstack, user, pointed_thing) - -- Must be pointing to node - if pointed_thing.type ~= "node" then - return - end - -- Check if pointing to a liquid - local n = minetest.get_node(pointed_thing.under) - local def = minetest.registered_nodes[n.name] - if def ~= nil and (def.liquidtype == "source" or def.liquidtype == "flowing") then - minetest.add_node(pointed_thing.under, {name="air"}) - local inv = user:get_inventory() - if inv then - inv:add_item("main", ItemStack(n.name)) - end - end - end, -}) - diff --git a/games/minimal/mods/bucket/mod.conf b/games/minimal/mods/bucket/mod.conf deleted file mode 100644 index d14deb4ea..000000000 --- a/games/minimal/mods/bucket/mod.conf +++ /dev/null @@ -1,2 +0,0 @@ -name = bucket -description = Minimal bucket to pick up liquids diff --git a/games/minimal/mods/bucket/textures/bucket.png b/games/minimal/mods/bucket/textures/bucket.png Binary files differdeleted file mode 100644 index 677952875..000000000 --- a/games/minimal/mods/bucket/textures/bucket.png +++ /dev/null diff --git a/games/minimal/mods/bucket/textures/bucket_lava.png b/games/minimal/mods/bucket/textures/bucket_lava.png Binary files differdeleted file mode 100644 index dfcae65fb..000000000 --- a/games/minimal/mods/bucket/textures/bucket_lava.png +++ /dev/null diff --git a/games/minimal/mods/bucket/textures/bucket_water.png b/games/minimal/mods/bucket/textures/bucket_water.png Binary files differdeleted file mode 100644 index e164b0a50..000000000 --- a/games/minimal/mods/bucket/textures/bucket_water.png +++ /dev/null |