Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require('wed')
- wed.open()
- wed.hpos()
- radius = 7
- angle = 0.1
- angle2 = math.pi * 1.1
- count = 3
- radius2 = 1
- material = 'stone'
- height = 40
- for i = 1, height do
- r = math.cos(i * angle2 / height) * radius
- a = i * angle
- for j = 0, count - 1 do
- q = a + math.pi * 2 * j / count
- wed.voxel(math.cos(q) * r, math.sin(q) * r, i, radius2, radius2, 0)
- wed.set(material)
- end
- end
- wed.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement