change vel/acc to velocity/acceleration for particles

This commit is contained in:
tenplus1 2020-12-24 09:53:44 +00:00
parent f3ed768172
commit 920696bd48

View File

@ -133,12 +133,12 @@ minetest.register_node("bees:extractor", {
-- wax flying all over the place -- wax flying all over the place
minetest.add_particle({ minetest.add_particle({
pos = {x = pos.x, y = pos.y, z = pos.z}, pos = {x = pos.x, y = pos.y, z = pos.z},
vel = { velocity = {
x = random(-1, 1), x = random(-1, 1),
y = random(4), y = random(4),
z = random(-1, 1) z = random(-1, 1)
}, },
acc = {x = 0, y = -6, z = 0}, acceleration = {x = 0, y = -6, z = 0},
expirationtime = 2, expirationtime = 2,
size = random(1, 3), size = random(1, 3),
collisiondetection = false, collisiondetection = false,
@ -655,12 +655,12 @@ minetest.register_abm({
-- Bee particle -- Bee particle
minetest.add_particle({ minetest.add_particle({
pos = {x = pos.x, y = pos.y, z = pos.z}, pos = {x = pos.x, y = pos.y, z = pos.z},
vel = { velocity = {
x = (random() - 0.5) * 5, x = (random() - 0.5) * 5,
y = (random() - 0.5) * 5, y = (random() - 0.5) * 5,
z = (random() - 0.5) * 5 z = (random() - 0.5) * 5
}, },
acc = { acceleration = {
x = random() - 0.5, x = random() - 0.5,
y = random() - 0.5, y = random() - 0.5,
z = random() - 0.5 z = random() - 0.5
@ -691,8 +691,8 @@ minetest.register_abm({
minetest.register_abm({ minetest.register_abm({
nodenames = {"group:leaves"}, nodenames = {"group:leaves"},
neighbors = {"air"}, neighbors = {"air"},
interval = 800, -- 1600 interval = 800,
chance = 10, -- 20 chance = 10,
action = function(pos) action = function(pos)
@ -880,8 +880,8 @@ minetest.register_tool("bees:smoker", {
y = pos.y, y = pos.y,
z = pos.z + random() - 0.5 z = pos.z + random() - 0.5
}, },
vel = {x = 0, y = 0.5 + random(), z = 0}, velocity = {x = 0, y = 0.5 + random(), z = 0},
acc = {x = 0, y = 0, z = 0}, acceleration = {x = 0, y = 0, z = 0},
expirationtime = 2 + random(2.5), expirationtime = 2 + random(2.5),
size = random(3), size = random(3),
collisiondetection = false, collisiondetection = false,