From 920696bd489e5f8bc81b526697caefab129ef82d Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Thu, 24 Dec 2020 09:53:44 +0000 Subject: [PATCH] change vel/acc to velocity/acceleration for particles --- init.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/init.lua b/init.lua index a1993d3..2928b44 100644 --- a/init.lua +++ b/init.lua @@ -133,12 +133,12 @@ minetest.register_node("bees:extractor", { -- wax flying all over the place minetest.add_particle({ pos = {x = pos.x, y = pos.y, z = pos.z}, - vel = { + velocity = { x = random(-1, 1), y = random(4), z = random(-1, 1) }, - acc = {x = 0, y = -6, z = 0}, + acceleration = {x = 0, y = -6, z = 0}, expirationtime = 2, size = random(1, 3), collisiondetection = false, @@ -655,12 +655,12 @@ minetest.register_abm({ -- Bee particle minetest.add_particle({ pos = {x = pos.x, y = pos.y, z = pos.z}, - vel = { + velocity = { x = (random() - 0.5) * 5, y = (random() - 0.5) * 5, z = (random() - 0.5) * 5 }, - acc = { + acceleration = { x = random() - 0.5, y = random() - 0.5, z = random() - 0.5 @@ -691,8 +691,8 @@ minetest.register_abm({ minetest.register_abm({ nodenames = {"group:leaves"}, neighbors = {"air"}, - interval = 800, -- 1600 - chance = 10, -- 20 + interval = 800, + chance = 10, action = function(pos) @@ -880,8 +880,8 @@ minetest.register_tool("bees:smoker", { y = pos.y, z = pos.z + random() - 0.5 }, - vel = {x = 0, y = 0.5 + random(), z = 0}, - acc = {x = 0, y = 0, z = 0}, + velocity = {x = 0, y = 0.5 + random(), z = 0}, + acceleration = {x = 0, y = 0, z = 0}, expirationtime = 2 + random(2.5), size = random(3), collisiondetection = false,