MineClone2/mods/ENTITIES/mcl_dripping
kno10 593a095a5f Fix "generateImagePart" warning (#4624)
Placing the texture at -16 with width 16 means it is not used. At most -14 may be used (0 indexed, I believe) if you want to retain 2x2 pixels.

Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4624
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: kno10 <kno10@noreply.git.minetest.land>
Co-committed-by: kno10 <kno10@noreply.git.minetest.land>
2024-09-05 09:31:03 +02:00
..
sounds Rename drippingwater mod to mcl_dripping 2021-11-15 21:39:43 +01:00
init.lua Fix "generateImagePart" warning (#4624) 2024-09-05 09:31:03 +02:00
mod.conf Rename drippingwater to mcl_dripping in mod.conf and readme.txt 2021-11-15 21:54:16 +01:00
README.md Renaming throughout docs and comments 2024-05-07 11:38:00 +00:00

mcl_dripping

Dripping Mod by kddekadenz, modified for VoxeLibre by Wuzzy, NO11 and AFCM

Manual

  • drops are generated rarely under solid nodes
  • they will stay some time at the generated block and than they fall down
  • when they collide with the ground, a sound is played and they are destroyed

Water and Lava have builtin drops registered.

License

code & sounds: CC0

API

mcl_dripping.register_drop({
	-- The group the liquid's nodes belong to
	liquid   = "water",
	-- The texture used (particles will take a random 2x2 area of it)
	texture  = "mcl_core_water_source_animation.png",
	-- Define particle glow, ranges from `0` to `minetest.LIGHT_MAX`
	light    = 1,
	-- The nodes (or node group) the particles will spawn under
	nodes    = { "group:opaque", "group:leaves" },
	-- The sound that will be played then the particle detaches from the roof, see SimpleSoundSpec in lua_api.txt
	sound    = "drippingwater_drip",
	-- The interval for the ABM to run
	interval = 60,
	-- The chance of the ABM
	chance   = 10,
})