Here's a Minetest mod that creates a functional street standpipe with water dispensing capabilities. This mod includes a 3D model, realistic water filling mechanics, and crafting recipes.
init.lua
lua
minetest.register_node("street_standpipe:standpipe", {
description = "Street Standpipe",
drawtype = "mesh",
mesh = "standpipe.obj",
tiles = {
"standpipe_metal.png", -- Main pipe texture
"standpipe_valve.png", -- Valve handle texture
},
paramtype = "light",
paramtype2 = "facedir",
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 1.0, 0.3}
},
collision_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 1.0, 0.3}
},
groups = {cracky = 2, level = 2},
sounds = default.node_sound_metal_defaults(),
on_rightclick = function(pos, node, player, itemstack, pointed_thing)
local player_name = player:get_player_name()
local item_name = itemstack:get_name()
-- Water filling sounds
minetest.sound_play("water_fill", {
pos = pos,
gain = 0.5,
max_hear_distance = 8
})
-- Handle different fillable items
if item_name == "bucket:bucket_empty" then
if not minetest.is_creative_enabled(player_name) then
itemstack:take_item()
end
player:get_inventory():add_item("main", "bucket:bucket_water")
return itemstack
elseif minetest.get_modpath("vessels") and item_name == "vessels:drinking_glass" then
if not minetest.is_creative_enabled(player_name) then
itemstack:take_item()
end
player:get_inventory():add_item("main", "vessels:drinking_glass_water")
return itemstack
elseif item_name == "" then
-- Drink directly from standpipe
hunger_ng.hunger_increase(player, 1, 1)
minetest.chat_send_player(player_name, "You drank fresh water from the standpipe!")
end
return itemstack
end
})
minetest.register_craft({
output = "street_standpipe:standpipe",
recipe = {
{"", "default:steel_ingot", ""},
{"default:steel_ingot", "bucket:bucket_water", "default:steel_ingot"},
{"default:stone", "default:stone", "default:stone"}
}
})
-- Optional particle effect for water stream
minetest.register_abm({
label = "Standpipe Water Drip",
nodenames = {"street_standpipe:standpipe"},
interval = 3,
chance = 1,
action = function(pos)
minetest.add_particle({
pos = {x = pos.x, y = pos.y + 0.4, z = pos.z},
velocity = {x = 0, y = -1, z = 0},
acceleration = {x = 0, y = -1, z = 0},
expirationtime = 1.0,
size = 0.5,
texture = "default_water.png^[opacity:150",
})
end
})
Required Files:
Model File (standpipe.obj):
obj
# Standpipe Model
v 0.5 -0.5 0.5
v 0.5 -0.5 -0.5
v -0.5 -0.5 -0.5
v -0.5 -0.5 0.5
v 0.5 0.5 0.5
v 0.5 0.5 -0.5
v -0.5 0.5 -0.5
v -0.5 0.5 0.5
# Pipe segments
v 0.2 -0.5 0.2
v 0.2 1.0 0.2
v -0.2 1.0 0.2
v -0.2 -0.5 0.2
v 0.0 0.7 0.5
v 0.0 0.5 0.7
# Valve handle
v 0.0 0.6 0.3
v 0.3 0.6 0.3
v 0.3 0.6 0.0
v 0.0 0.6 0.0
f 1 2 3 4
f 5 6 7 8
f 1 2 6 5
f 2 3 7 6
f 3 4 8 7
f 4 1 5 8
f 9 10 11 12
f 13 14 15 16
Textures:
standpipe_metal.png (gray metallic texture)
standpipe_valve.png (brass-colored valve texture)
Features:
3D Model - Uses a custom mesh with metal and valve textures
Water Dispensing:
Fills empty buckets
Fills drinking glasses (vessels mod)
Direct drinking animation
Visual Effects:
Water dripping particles
Splashing sounds when used
Crafting Recipe:
Requires steel, stone, and a water bucket
Creative Mode Support - Works properly in creative mode
Installation:
Create folder street_standpipe in your mods directory
Add these files:
init.lua
standpipe.obj
standpipe_metal.png
standpipe_valve.png
Enable in minetest.conf: secure.enable_security = false (for custom mesh)
Activate mod in game
The standpipe will appear in the creative inventory under "Tools" or can be crafted using 3 steel ingots, 3 stone blocks, and 1 water bucket. Right-click with an empty container to fill it with water!
User
i mean minetest mod...
Assistant
Ah! Minetest modding β excellent choice! π Whether you're just starting or troubleshooting something specific, I'm here to help. Let me guide you:
π§ Quick Start Guide
Tools Needed:
Text editor (VS Code, Notepad++)
Minetest (obviously)
Basic Lua knowledge (Minetest uses Lua 5.1)
Mod Structure:
lua
your_mod/
βββ init.lua -- Main code
βββ depends.txt -- Dependencies (optional)
βββ textures/ -- Put images here (.png)
-- Register stand pipe node
minetest.register_node("streetpipe:standpipe", {
description = "Street Water Stand Pipe",
drawtype = "mesh",
mesh = "streetpipe_pipe.obj",
tiles = {
"streetpipe_standpipe.png", -- Main pipe texture
{name = "streetpipe_water_anim.png", animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 1.5}}
},
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 1.0, 0.3}
},
collision_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 1.0, 0.3}
},
paramtype = "light",
groups = {cracky = 2, oddly_breakable_by_hand = 1},
sounds = default.node_sound_metal_defaults(),
on_rightclick = function(pos, node, clicker, itemstack)
-- Check for empty bucket
if itemstack:get_name() == "bucket:bucket_empty" then
-- Play water sound
minetest.sound_play("streetpipe_water", {
pos = pos,
gain = 0.8,
max_hear_distance = 8
})
-- Create water particles
minetest.add_particlespawner({
amount = 15,
time = 0.5,
minpos = {x = pos.x-0.1, y = pos.y+0.7, z = pos.z-0.1},
maxpos = {x = pos.x+0.1, y = pos.y+0.7, z = pos.z+0.1},
minvel = {x = -0.5, y = 0, z = -0.5},
maxvel = {x = 0.5, y = -2, z = 0.5},
minacc = {x = 0, y = -5, z = 0},
maxacc = {x = 0, y = -9, z = 0},
minexptime = 0.5,
maxexptime = 1.0,
minsize = 0.5,
maxsize = 1.0,
collisiondetection = true,
texture = "default_water.png",
})
-- Replace empty bucket with water bucket
itemstack:set_name("bucket:bucket_water")
return itemstack
end
return itemstack
end
})
-- Register crafting recipe
minetest.register_craft({
output = "streetpipe:standpipe",
recipe = {
{"", "default:steel_ingot", ""},
{"default:steel_ingot", "bucket:bucket_water", "default:steel_ingot"},
{"", "default:steel_ingot", ""}
}
})
-- Add to creative inventory
minetest.register_alias("streetpipe", "streetpipe:standpipe")
User
oh fine, could you please made with default nodes textures?
Assistant
Simplified Street Water Stand Pipe Mod (Using Default Textures) π
Here's a cleaner version using only Minetest's default textures - no custom files needed! This mod creates a functional water stand pipe with particle effects.
File Structure:
code
streetpipe/
βββ init.lua
init.lua:
lua
User
oh fine, could you please made with default nodes textures?
Assistant
Absolutely! Here's a revised version using only default Minetest textures and nodes for a street water stand pipe:
Minetest Street Water Stand Pipe (Default Textures Version)
File Structure:
code
streetpipe/
βββ init.lua
init.lua:
lua
User
oh fine, could you please made with default nodes textures?
Assistant
Simplified Water Stand Pipe Mod Using Default Textures
Here's a refined version using only default Minetest textures and nodeboxes - no custom meshes or textures needed!
File Structure:
code
streetpipe/
βββ init.lua
init.lua:
lua
User
oh fine, could you please made with default nodes textures?
Assistant
Simplified Street Water Stand Pipe Mod using Default Textures
Here's a cleaner version using only default Minetest textures - no custom assets needed! This maintains functionality while being texture-independent.
-- street_pump/init.lua
minetest.register_node("street_pump:water_pump", {
description = "Street Water Pump",
tiles = {
"street_pump_top.png", -- Top texture
"street_pump_bottom.png", -- Bottom texture
"street_pump_side.png", -- Side texture
"street_pump_side.png", -- Side texture
"street_pump_back.png", -- Back texture
"street_pump_front.png" -- Front texture (spout)
},
paramtype2 = "facedir",
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
-- Base (0.8x0.8x0.3)
{-0.4, -0.5, -0.4, 0.4, -0.2, 0.4},
-- Vertical pipe
{-0.15, -0.2, -0.15, 0.15, 0.5, 0.15},
-- Spout (horizontal pipe)
{-0.1, 0.3, -0.5, 0.1, 0.5, 0.1},
-- Pump handle base
{-0.2, 0.4, 0.1, 0.2, 0.5, 0.4},
-- Pump handle (vertical part)
{-0.05, -0.1, 0.25, 0.05, 0.4, 0.35}
}
},
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 1.0, 0.5}
},
groups = {cracky = 2, oddly_breakable_by_hand = 1},
sounds = default.node_sound_metal_defaults(),
on_rightclick = function(pos, node, clicker, itemstack)
-- Play pumping sound
minetest.sound_play("street_pump_pump", {
pos = pos,
gain = 1.0,
max_hear_distance = 10
})
-- Create water effect
local dir = minetest.facedir_to_dir(node.param2)
local water_pos = vector.add(pos, vector.multiply(dir, 1.5))
water_pos.y = water_pos.y + 0.3
minetest.add_particle({
pos = water_pos,
velocity = {x = 0, y = -2, z = 0},
acceleration = {x = 0, y = -5, z = 0},
expirationtime = 1.5,
size = 2.5,
texture = "default_water_source_animated.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 2.0,
},
glow = 5
})
-- Fill buckets if held by player
local item = clicker:get_wielded_item()
if item:get_name() == "bucket:bucket_empty" then
item:set_name("bucket:bucket_water")
clicker:set_wielded_item(item)
minetest.sound_play("default_water_fill", {
pos = pos,
gain = 0.8,
max_hear_distance = 8
})
end
return itemstack
end
})
-- Craft recipe
minetest.register_craft({
output = "street_pump:water_pump",
recipe = {
{"", "default:steel_ingot", ""},
{"default:steel_ingot", "default:water_source", "default:steel_ingot"},
{"", "default:steel_ingot", "default:mese_crystal"}
}
})
-- Create needed textures programmatically
minetest.register_on_mods_loaded(function()
if not minetest.get_modpath("streets") then
minetest.after(0.1, function()
local colors = {
top = "#C0C0C0", -- Silver (metal)
bottom = "#A0A0A0", -- Darker silver
side = "#B0B0B0", -- Medium silver
back = "#8B4513", -- SaddleBrown (handle)
front = "#4682B4" -- SteelBlue (spout)
}
for part, color in pairs(colors) do
minetest.after(0.2, function()
minetest.create_colored_texture(color, part:upper(), "street_pump_"..part..".png")
end)
end
end)
end
end)
Features:
3D nodebox model with base, vertical pipe, spout, and pump handle
Right-click to activate pump:
Plays metallic pumping sound
Creates animated water particles from spout
Fills empty buckets with water
Crafting recipe using steel, water, and mese crystal
Auto-generated metal-textured appearance
Installation:
Create folder street_pump in your mods directory
Save this code as init.lua inside the folder
Enable in Minetest's "Configure" menu
Usage:
Craft using 4 steel ingots, 1 water source, and 1 mese crystal
Place on ground
Right-click to activate pump animation
Hold empty bucket while clicking to fill with water
Dependencies:
Default Minetest game (for sounds, textures, buckets)
Works with any Minetest 5.0+ version
Customization:
Edit these values to modify:
water_pos in on_rightclick - Adjust water stream position
Particle size and expirationtime - Change water appearance
Craft recipe ingredients
Color values in texture generator
The pump provides both decorative functionality and practical water-gathering capability, perfect for village streets or survival bases!
2. Create mesh file (streetpipe_pipe.obj):
obj
# Standpipe mesh
v -0.300000 -0.500000 0.000000
v 0.300000 -0.500000 0.000000
v -0.300000 1.000000 0.000000
v 0.300000 1.000000 0.000000
v -0.300000 -0.500000 0.300000
v 0.300000 -0.500000 0.300000
v -0.300000 1.000000 0.300000
v 0.300000 1.000000 0.300000
v 0.000000 0.700000 0.300000
v 0.000000 0.800000 0.500000
v 0.000000 0.700000 0.500000
f 1 2 4 3
f 5 6 8 7
f 1 5 7 3
f 2 6 8 4
f 3 4 8 7
f 5 1 2 6
f 9 10 11
f 11 10 9
3. Required Textures:
streetpipe_standpipe.png (128x128): Silver metal pipe texture
streetpipe_water_anim.png (16x48): 3-frame vertical animation of flowing water (top 16px=frame1, middle=frame2, bottom=frame3)
4. Required Sound:
streetpipe_water.ogg: Water pouring sound effect
Features:
3D Model: Custom mesh for realistic pipe shape
Animated Water: Flowing water texture animation
Particle Effects: Water splash when filling buckets
Sound Effects: Water pouring sound
Functional: Right-click with empty bucket to get water
Crafting Recipe: Made with steel and water bucket
Installation:
Create streetpipe folder in your Minetest mods directory
Add the files as shown in the structure
Enable the mod in Minetest
Craft using: Steel Ingots surrounding a water bucket
Optional Enhancements (add to init.lua if desired):
This creates a functional, visually appealing water stand pipe that spawns naturally in villages and can be crafted. The pipe features animated water flow, splash particles when used, and realistic metal sounds when punched.
Includes base, vertical pipe, spout, and valve handle
Rotates based on player placement (facedir param)
Functionality:
Right-click with empty bucket β get water bucket
Water splash particles flow from spout
Plays water sound effect when used
Crafting:
5 steel ingots + 1 water bucket
Symmetrical recipe for easy remembering
Installation:
Create streetpipe folder in your Minetest mods directory
Add the init.lua file
Enable mod in Minetest
Craft using steel and water bucket
How to Use:
Craft the stand pipe
Place on ground
Right-click with empty bucket to fill
Particles show water flowing from spout
This version maintains all functionality while being much simpler to install. The nodebox design creates a recognizable pipe shape using Minetest's default textures, and particles provide visual feedback when used.
minetest.register_node("streetpipe:standpipe", {
description = "Street Water Stand Pipe",
tiles = {
"default_steel_block.png", -- Top and bottom
"default_steel_block.png", -- Bottom
"default_steel_block.png", -- Side 1
"default_steel_block.png", -- Side 2
"default_steel_block.png", -- Front
{ -- Back (with water animation)
name = "default_water_flowing_animated.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 2.0
},
}
},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky = 2, oddly_breakable_by_hand = 1},
sounds = default.node_sound_metal_defaults(),
node_box = {
type = "fixed",
fixed = {
-- Base (stone)
{-0.25, -0.5, -0.25, 0.25, -0.4, 0.25},
-- Main pipe (steel)
{-0.1, -0.4, -0.1, 0.1, 0.5, 0.1},
-- Water spout
{-0.05, 0.35, -0.05, 0.15, 0.4, 0.15},
}
},
on_rightclick = function(pos, node, clicker, itemstack)
-- Check for empty bucket
if itemstack:get_name() == "bucket:bucket_empty" then
-- Play water sound
minetest.sound_play("default_water_falling", {
pos = pos,
gain = 0.8,
max_hear_distance = 8
})
-- Create water particles
local dir = minetest.facedir_to_dir(node.param2)
local spout_pos = {
x = pos.x + dir.x * 0.35,
y = pos.y + 0.4,
z = pos.z + dir.z * 0.35
}
minetest.add_particlespawner({
amount = 12,
time = 0.7,
minpos = spout_pos,
maxpos = spout_pos,
minvel = {x = dir.x * 0.5, y = -1, z = dir.z * 0.5},
maxvel = {x = dir.x * 2, y = -3, z = dir.z * 2},
minacc = {x = 0, y = -8, z = 0},
maxacc = {x = 0, y = -8, z = 0},
minexptime = 0.5,
maxexptime = 1.0,
minsize = 0.5,
maxsize = 1.2,
collisiondetection = true,
texture = "default_water.png",
})
-- Replace empty bucket with water bucket
itemstack:set_name("bucket:bucket_water")
return itemstack
end
return itemstack
end
})
-- Register crafting recipe
minetest.register_craft({
output = "streetpipe:standpipe",
recipe = {
{"", "default:steel_ingot", ""},
{"default:steel_ingot", "bucket:bucket_water", "default:steel_ingot"},
{"", "default:stone", ""}
}
})
-- Add to creative inventory
minetest.register_alias("streetpipe", "streetpipe:standpipe")
-- Optional: Add to villages
if minetest.get_modpath("villages") then
minetest.register_decoration({
name = "streetpipe:standpipe",
deco_type = "simple",
place_on = {"default:dirt_with_grass"},
sidelen = 16,
place_offset_y = -1,
noise_params = {
offset = 0,
scale = 0.001,
spread = {x = 100, y = 100, z = 100},
seed = 789,
octaves = 3,
persist = 0.7
},
biomes = {"grassland", "deciduous_forest"},
y_max = 100,
y_min = 1,
decoration = "streetpipe:standpipe",
rotation = "random",
})
end
Key Features:
Uses Default Textures:
default_steel_block.png for the pipe body
default_water_flowing_animated.png for water animation
default_water.png for particles
default_water_falling sound
Nodebox Design:
Stone base at the bottom
Vertical steel pipe
Angled spout for water flow
Faces properly using paramtype2 = "facedir"
Functionality:
Right-click with empty bucket to get water
Water particles flow in the direction the pipe is facing
Proper water sound effects
Crafting:
3 steel ingots
1 stone
1 water bucket
text
[ ] [S] [ ]
[S] [B] [S]
[ ] [St] [ ]
Installation:
Create streetpipe folder in your Minetest mods directory
Add the init.lua file
Enable the mod in Minetest
Craft using steel, stone, and a water bucket
This version maintains all functionality while using only default game assets. The pipe will automatically face the player when placed, and water particles will flow in the correct direction from the spout.
minetest.register_node("streetpipe:standpipe", {
description = "Street Water Stand Pipe",
drawtype = "nodebox",
tiles = {
"default_steel_block.png", -- Main body
"default_water_flowing_animated.png", -- Water spout (animated)
"default_steel_block.png" -- Base
},
use_texture_alpha = "blend",
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky = 2, oddly_breakable_by_hand = 1},
sounds = default.node_sound_metal_defaults(),
node_box = {
type = "fixed",
fixed = {
-- Main vertical pipe
{-0.125, -0.5, -0.125, 0.125, 1.0, 0.125},
-- Base
{-0.25, -0.5, -0.25, 0.25, -0.4, 0.25},
-- Horizontal spout
{-0.125, 0.7, -0.125, 0.125, 0.8, 0.5},
-- Water spout (front)
{-0.0625, 0.75, 0.5, 0.0625, 0.85, 0.6}
}
},
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 1.0, 0.6}
},
on_rightclick = function(pos, node, clicker, itemstack)
if itemstack:get_name() == "bucket:bucket_empty" then
-- Play water sound
minetest.sound_play("default_water_falling", {
pos = pos,
gain = 0.7,
max_hear_distance = 10
})
-- Water splash effect
local dir = minetest.facedir_to_dir(node.param2)
local water_pos = {
x = pos.x + dir.x * 0.5,
y = pos.y + 0.75,
z = pos.z + dir.z * 0.5
}
minetest.add_particlespawner({
amount = 12,
time = 0.5,
minpos = water_pos,
maxpos = water_pos,
minvel = {x = -1, y = 2, z = -1},
maxvel = {x = 1, y = -3, z = 1},
minacc = {x = 0, y = -6, z = 0},
maxacc = {x = 0, y = -9, z = 0},
minexptime = 0.8,
maxexptime = 1.2,
minsize = 0.5,
maxsize = 1.5,
collisiondetection = true,
texture = "default_water.png",
})
-- Fill bucket
itemstack:set_name("bucket:bucket_water")
return itemstack
end
return itemstack
end
})
-- Crafting recipe using default materials
minetest.register_craft({
output = "streetpipe:standpipe",
recipe = {
{"", "default:steel_ingot", ""},
{"default:steel_ingot", "bucket:bucket_water", "default:steel_ingot"},
{"", "default:steel_ingot", ""}
}
})
-- Add to villages
if minetest.get_modpath("villages") then
minetest.register_decoration({
name = "streetpipe:standpipe",
deco_type = "simple",
place_on = {"default:dirt_with_grass"},
sidelen = 16,
fill_ratio = 0.01,
biomes = {"grassland", "deciduous_forest"},
y_max = 100,
y_min = 1,
decoration = "streetpipe:standpipe",
rotation = "random",
})
end
Key Features:
Pure Default Textures:
default_steel_block.png for pipe body
default_water_flowing_animated.png for animated water
default_water.png for particles
Nodebox Design:
Vertical pipe with base
Horizontal spout with water outlet
Proper collision boxes
Rotatable with facedir
Functionality:
Right-click with empty bucket to fill
Water splash particles
Flowing water sound effect
Spawns in villages (if villages mod present)
Crafting:
5 steel ingots + water bucket
Centered water bucket in recipe
Installation:
Create streetpipe folder in mods directory
Add init.lua file
Enable mod in Minetest
This version maintains all functionality while using only default assets. The animated water texture provides a flowing effect, and the nodebox design creates a recognizable standpipe shape without custom models.
minetest.register_node("streetpipe:standpipe", {
description = "Street Water Stand Pipe",
drawtype = "nodebox",
tiles = {
"default_steel_block.png", -- Main body
"default_steel_block.png",
"default_steel_block.png",
"default_steel_block.png",
"default_steel_block.png",
"default_steel_block.png"
},
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky = 2, oddly_breakable_by_hand = 1},
sounds = default.node_sound_metal_defaults(),
node_box = {
type = "fixed",
fixed = {
{-0.125, -0.5, -0.125, 0.125, 0.75, 0.125}, -- Main pipe
{-0.125, 0.625, -0.125, 0.125, 0.75, 0.125}, -- Top cap
{0.125, 0.375, 0, 0.25, 0.5, 0.125}, -- Spout
{-0.1875, -0.5, -0.1875, 0.1875, -0.4375, 0.1875} -- Base
}
},
on_rightclick = function(pos, node, clicker, itemstack)
if itemstack:get_name() == "bucket:bucket_empty" then
-- Play water sound
minetest.sound_play("default_water_falling", {
pos = pos,
gain = 0.8,
max_hear_distance = 8
})
-- Create water particles
local dir = minetest.facedir_to_dir(node.param2)
local spout_pos = vector.add(pos, vector.multiply(dir, 0.5))
spout_pos.y = spout_pos.y + 0.5
minetest.add_particlespawner({
amount = 12,
time = 0.7,
minpos = vector.subtract(spout_pos, 0.1),
maxpos = vector.add(spout_pos, 0.1),
minvel = vector.new(-0.5, -2, -0.5),
maxvel = vector.new(0.5, -4, 0.5),
minacc = vector.new(0, -8, 0),
maxacc = vector.new(0, -8, 0),
minexptime = 0.7,
maxexptime = 1.2,
minsize = 0.5,
maxsize = 1.2,
collisiondetection = true,
texture = "default_water.png",
})
-- Replace empty bucket with water bucket
itemstack:set_name("bucket:bucket_water")
return itemstack
end
return itemstack
end,
selection_box = {
type = "fixed",
fixed = {-0.25, -0.5, -0.25, 0.25, 1.0, 0.25}
},
collision_box = {
type = "fixed",
fixed = {-0.1875, -0.5, -0.1875, 0.25, 0.75, 0.1875}
}
})
-- Crafting recipe using default materials
minetest.register_craft({
output = "streetpipe:standpipe",
recipe = {
{"", "default:steel_ingot", ""},
{"default:steel_ingot", "bucket:bucket_water", "default:steel_ingot"},
{"", "default:steel_ingot", ""}
}
})
-- Add water dripping effect when it rains
if minetest.get_modpath("weather") then
minetest.register_abm({
label = "Standpipe water drip",
nodenames = {"streetpipe:standpipe"},
interval = 15,
chance = 10,
action = function(pos, node)
if weather.rain_level > 0 then
minetest.add_particle({
pos = vector.add(pos, vector.new(0, 0.5, 0)),
velocity = vector.new(0, -1, 0),
acceleration = vector.new(0, -8, 0),
expirationtime = 1.0,
size = 0.5,
texture = "default_water.png",
})
end
end
})
end
Key Features:
No Custom Assets Needed:
Uses default_steel_block.png for the pipe
Uses default_water.png for particles
Uses default_water_falling sound effect
Nodebox Design:
Vertical pipe with base and spout
Directional spout (rotates with placement)
Compact collision box
Functionality:
Right-click with empty bucket β get water bucket
Water particles flow from spout
Rain drip effect if weather mod installed
Crafting:
Steel ingots + water bucket = stand pipe
Compatibility:
Works with any Minetest game that has default textures
Optional integration with weather mod
Installation:
Create streetpipe folder in mods directory
Add init.lua file
Enable mod in Minetest
Craft with: Steel ingots surrounding water bucket
This version maintains all functionality while being completely self-contained with default assets. The pipe has a clean industrial look using Minetest's standard steel texture, and the water effects use the default water texture for consistency.