Skip to content

Instantly share code, notes, and snippets.

@PilzAdam
Created October 3, 2012 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PilzAdam/3826440 to your computer and use it in GitHub Desktop.
Save PilzAdam/3826440 to your computer and use it in GitHub Desktop.
minetest.register_node("default:water_source", {
description = "Water Source",
inventory_image = minetest.inventorycube("default_water.png"),
drawtype = "liquid",
tiles = {
{name="default_water_source_animated.png", animation={type="vertical_frames", aspect_w=128, aspect_h=128, length=2.0}}
},
special_tiles = {
-- New-style water source material (mostly unused)
{name="default_water.png", backface_culling=false},
},
alpha = WATER_ALPHA,
paramtype = "light",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
liquidtype = "source",
liquid_alternative_flowing = "default:water_flowing",
liquid_alternative_source = "default:water_source",
liquid_viscosity = WATER_VISC,
--post_effect_color = {a=64, r=100, g=100, b=200},
post_effect_color = {a=240, r=10, g=10, b=30},
groups = {water=3, liquid=3, puts_out_fire=1},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment