summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2020-05-22 14:17:03 +0200
committersfan5 <sfan5@live.de>2020-05-23 22:52:21 +0200
commit9d6e7e48d6fb1daff8fedcb2f111164bef61f1e7 (patch)
treeb4526e1feb6a2423b967ba120afd5da37d813d41 /doc
parent15ba75e4cf1d1b8ceaa9d8ce33dcfdd7dbe80741 (diff)
downloadminetest-9d6e7e48d6fb1daff8fedcb2f111164bef61f1e7.tar.gz
minetest-9d6e7e48d6fb1daff8fedcb2f111164bef61f1e7.tar.bz2
minetest-9d6e7e48d6fb1daff8fedcb2f111164bef61f1e7.zip
Implement spawning particles with node texture appearance
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt30
1 files changed, 29 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 26061eccb..5b3f61c99 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -7835,6 +7835,8 @@ Used by `minetest.add_particle`.
size = 1,
-- Scales the visual size of the particle texture.
+ -- If `node` is set, size can be set to 0 to spawn a randomly-sized
+ -- particle (just like actual node dig particles).
collisiondetection = false,
-- If true collides with `walkable` nodes and, depending on the
@@ -7853,6 +7855,7 @@ Used by `minetest.add_particle`.
-- If true faces player using y axis only
texture = "image.png",
+ -- The texture of the particle
playername = "singleplayer",
-- Optional, if specified spawns particle only on the player's client
@@ -7863,6 +7866,17 @@ Used by `minetest.add_particle`.
glow = 0
-- Optional, specify particle self-luminescence in darkness.
-- Values 0-14.
+
+ node = {name = "ignore", param2 = 0},
+ -- Optional, if specified the particle will have the same appearance as
+ -- node dig particles for the given node.
+ -- `texture` and `animation` will be ignored if this is set.
+
+ node_tile = 0,
+ -- Optional, only valid in combination with `node`
+ -- If set to a valid number 1-6, specifies the tile from which the
+ -- particle texture is picked.
+ -- Otherwise, the default behavior is used. (currently: any random tile)
}
@@ -7892,7 +7906,9 @@ Used by `minetest.add_particlespawner`.
maxsize = 1,
-- The particles' properties are random values between the min and max
-- values.
- -- pos, velocity, acceleration, expirationtime, size
+ -- applies to: pos, velocity, acceleration, expirationtime, size
+ -- If `node` is set, min and maxsize can be set to 0 to spawn
+ -- randomly-sized particles (just like actual node dig particles).
collisiondetection = false,
-- If true collide with `walkable` nodes and, depending on the
@@ -7915,6 +7931,7 @@ Used by `minetest.add_particlespawner`.
-- If true face player using y axis only
texture = "image.png",
+ -- The texture of the particle
playername = "singleplayer",
-- Optional, if specified spawns particles only on the player's client
@@ -7925,6 +7942,17 @@ Used by `minetest.add_particlespawner`.
glow = 0
-- Optional, specify particle self-luminescence in darkness.
-- Values 0-14.
+
+ node = {name = "ignore", param2 = 0},
+ -- Optional, if specified the particles will have the same appearance as
+ -- node dig particles for the given node.
+ -- `texture` and `animation` will be ignored if this is set.
+
+ node_tile = 0,
+ -- Optional, only valid in combination with `node`
+ -- If set to a valid number 1-6, specifies the tile from which the
+ -- particle texture is picked.
+ -- Otherwise, the default behavior is used. (currently: any random tile)
}
`HTTPRequest` definition