mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-10 18:51:05 +00:00
Rename “Minimal development test” to “Development Test” (#9928)
This commit is contained in:
parent
b546e8938d
commit
083b285f43
371 changed files with 25 additions and 25 deletions
26
games/devtest/mods/bucket/init.lua
Normal file
26
games/devtest/mods/bucket/init.lua
Normal file
|
@ -0,0 +1,26 @@
|
|||
-- 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,
|
||||
})
|
||||
|
2
games/devtest/mods/bucket/mod.conf
Normal file
2
games/devtest/mods/bucket/mod.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
name = bucket
|
||||
description = Minimal bucket to pick up liquids
|
BIN
games/devtest/mods/bucket/textures/bucket.png
Normal file
BIN
games/devtest/mods/bucket/textures/bucket.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 163 B |
BIN
games/devtest/mods/bucket/textures/bucket_lava.png
Normal file
BIN
games/devtest/mods/bucket/textures/bucket_lava.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 168 B |
BIN
games/devtest/mods/bucket/textures/bucket_water.png
Normal file
BIN
games/devtest/mods/bucket/textures/bucket_water.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 168 B |
Loading…
Add table
Add a link
Reference in a new issue