mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-02 14:31:05 +01:00
ce403b9245
This pull request renames the textures of water and lava to more closely follow the MineClone 2 naming convention. The code has also been changed to now reflect these new names. Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/3758 Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land> Co-authored-by: FossFanatic <fossfanatic@noreply.git.minetest.land> Co-committed-by: FossFanatic <fossfanatic@noreply.git.minetest.land>
36 lines
1 KiB
Markdown
36 lines
1 KiB
Markdown
# mcl_dripping
|
|
|
|
Dripping Mod by kddekadenz, modified for MineClone 2 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
|
|
|
|
```lua
|
|
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,
|
|
})
|
|
```
|