Total Miner Forums
Total Miner => Creative Features => Topic started by: Phearcia on September 06, 2016, 10:33:12 AM

This code is really cool. Especially when you have a display intersect circle command.
Var (pi) = (3.1415926)
Var (vectorX) = 50 + (pos:x)
Var (vectorZ) = 50 + (pos:z)
Var (radians) = (radians) + (1) (the 1 can vary)
Var (degrees) = (radians) * (180) / (Pi)
Var (x) = (vectorX) * (cos:rad) + (pos:x) + (number equals length)
Var (y) = (pos:Y) + (1)
Var (z) = (VectorZ) * (sin:rad) + (pos:z) + (number equals length)
Script (your intersect) (wait) (vars:x,y,z)
Loop (20)
(Your intersect Script)
Var (x) (y) (z)
If
Intersect (I used sphere) (x,y,z) (.5) (display)
Then
Script desired effect

Radians +1.6 will make 4 orbs, 2.15 will make 2, 3.17 will make three orbs, 5 will make 5 orbs, and 6.25 will make one orb. I also noticed you can make them go in reverse by using just decimal numbers.