Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pos = {x = 0, y = 0, z = 0} -- ring center
- local size = 3
- local step = 4
- for i = 0, 360, step do
- local angle = (i * math.pi / 180)
- local x = size * math.cos(angle)
- local z = size * math.sin(angle)
- local newpos = {x = pos.x + x, y = pos.y + 1, z = pos.z + z}
- minetest.add_particle({
- pos = newpos,
- velocity = {x = 0, y = 0, z = 0},
- acceleration = {x = 0, y = 0, z = 0},
- expirationtime = 0.25,
- collisiondetection = false,
- texture = "default_wood.png",
- size = 5,
- glow = 15,
- })
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement