@@ -1462,30 +1462,20 @@ minetest.ban_player(name) -> ban a player
1462
1462
minetest.unban_player_or_ip(name) -> unban player or IP address
1463
1463
1464
1464
Particles:
1465
- minetest.add_particle(pos, velocity, acceleration, expirationtime,
1465
+ minetest.add_particle(particle definition)
1466
+ ^ Deprecated: minetest.add_particle(pos, velocity, acceleration, expirationtime,
1466
1467
size, collisiondetection, texture, playername)
1467
- ^ Spawn particle at pos with velocity and acceleration
1468
- ^ Disappears after expirationtime seconds
1469
- ^ collisiondetection: if true collides with physical objects
1470
- ^ Uses texture (string)
1471
- ^ Playername is optional, if specified spawns particle only on the player's client
1472
1468
1473
- minetest.add_particlespawner(amount, time,
1469
+ minetest.add_particlespawner(particlespawner definition)
1470
+ ^ Add a particlespawner, an object that spawns an amount of particles over time seconds
1471
+ ^ Returns an id
1472
+ ^ Deprecated: minetest.add_particlespawner(amount, time,
1474
1473
minpos, maxpos,
1475
1474
minvel, maxvel,
1476
1475
minacc, maxacc,
1477
1476
minexptime, maxexptime,
1478
1477
minsize, maxsize,
1479
1478
collisiondetection, texture, playername)
1480
- ^ Add a particlespawner, an object that spawns an amount of particles over time seconds
1481
- ^ The particle's properties are random values in between the boundings:
1482
- ^ minpos/maxpos, minvel/maxvel (velocity), minacc/maxacc (acceleration),
1483
- ^ minsize/maxsize, minexptime/maxexptime (expirationtime)
1484
- ^ collisiondetection: if true uses collisiondetection
1485
- ^ Uses texture (string)
1486
- ^ Playername is optional, if specified spawns particle only on the player's client
1487
- ^ If time is 0 has infinite lifespan and spawns the amount on a per-second base
1488
- ^ Returns and id
1489
1479
1490
1480
minetest.delete_particlespawner(id, player)
1491
1481
^ Delete ParticleSpawner with id (return value from add_particlespawner)
@@ -2443,3 +2433,50 @@ HUD Definition (hud_add, hud_get)
2443
2433
offset = {x=0, y=0},
2444
2434
^ See "HUD Element Types"
2445
2435
}
2436
+
2437
+ Particle definition (add_particle)
2438
+ {
2439
+ pos = {x=0, y=0, z=0},
2440
+ velocity = {x=0, y=0, z=0},
2441
+ acceleration = {x=0, y=0, z=0},
2442
+ ^ Spawn particle at pos with velocity and acceleration
2443
+ expirationtime = 1,
2444
+ ^ Disappears after expirationtime seconds
2445
+ size = 1,
2446
+ collisiondetection = false,
2447
+ ^ collisiondetection: if true collides with physical objects
2448
+ vertical = false,
2449
+ ^ vertical: if true faces player using y axis only
2450
+ texture = "image.png",
2451
+ ^ Uses texture (string)
2452
+ playername = "singleplayer"
2453
+ ^ Playername is optional, if specified spawns particle only on the player's client
2454
+ }
2455
+
2456
+ Particlespawner definition (add_particlespawner)
2457
+ {
2458
+ amount = 1,
2459
+ time = 1,
2460
+ ^ If time is 0 has infinite lifespan and spawns the amount on a per-second base
2461
+ minpos = {x=0, y=0, z=0},
2462
+ maxpos = {x=0, y=0, z=0},
2463
+ minvel = {x=0, y=0, z=0},
2464
+ maxvel = {x=0, y=0, z=0},
2465
+ minacc = {x=0, y=0, z=0},
2466
+ maxacc = {x=0, y=0, z=0},
2467
+ minexptime = 1,
2468
+ maxexptime = 1,
2469
+ minsize = 1,
2470
+ maxsize = 1,
2471
+ ^ The particle's properties are random values in between the boundings:
2472
+ ^ minpos/maxpos, minvel/maxvel (velocity), minacc/maxacc (acceleration),
2473
+ ^ minsize/maxsize, minexptime/maxexptime (expirationtime)
2474
+ collisiondetection = false,
2475
+ ^ collisiondetection: if true uses collisiondetection
2476
+ vertical = false,
2477
+ ^ vertical: if true faces player using y axis only
2478
+ texture = "image.png",
2479
+ ^ Uses texture (string)
2480
+ playername = "singleplayer"
2481
+ ^ Playername is optional, if specified spawns particle only on the player's client
2482
+ }
0 commit comments