Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. local pos = {x = 0, y = 0, z = 0} -- ring center
  2. local size = 3
  3. local step = 4
  4.  
  5. for i = 0, 360, step do
  6.  
  7. local angle = (i * math.pi / 180)
  8. local x = size * math.cos(angle)
  9. local z = size * math.sin(angle)
  10. local newpos = {x = pos.x + x, y = pos.y + 1, z = pos.z + z}
  11.  
  12. minetest.add_particle({
  13. pos = newpos,
  14. velocity = {x = 0, y = 0, z = 0},
  15. acceleration = {x = 0, y = 0, z = 0},
  16. expirationtime = 0.25,
  17. collisiondetection = false,
  18. texture = "default_wood.png",
  19. size = 5,
  20. glow = 15,
  21. })
  22.  
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement