Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- component = require('component')
- event = require('event')
- math = require('math')
- d = component.debug
- m = component.modem
- m.open(405)
- function pargen(tags,effect,x,y,z,dx,dy,dz,speed,id)
- if effect == 'iconcrack' then
- d.runCommand('/execute @e[type=armor_stand,'..tags..'] ~ ~2 ~ /particle iconcrack ~'..x..' ~'..y..' ~'..z..' '..dx..' '..dy..' '..dz..' '..speed..' 0 force @a '..id)
- else
- d.runCommand('/execute @e[type=armor_stand,'..tags..'] ~ ~2 ~ /particle '..effect..' ~'..x..' ~'..y..' ~'..z..' '..dx..' '..dy..' '..dz..' '..speed..' 0 force')
- end
- end
- function propos(r,a,p)
- x = -r
- y = 0
- z = 0
- dx= -p * math.cos(math.rad(a))
- dy= p * math.sin(math.rad(a))
- dz= 0 * math.sin(math.rad(a))
- end
- f = 1
- function info()
- print('')
- print(' Ring Fountain '..f..' (Port: 405)')
- print(' Receive: Tags, Effect, Ring Range, Angle, Particle Power, Particle Speed, [block Id (if use iconcrack)]')
- print(' Available Particle: Flame, Cloud, Totem, Dragonbreath, EndRod, Iconcrack.')
- end
- info()
- while true do
- _,_,_,_,_,tags,effect,r,a,p,speed,id = event.pull('modem_message')
- propos(r,a,p)
- pargen(tags,effect,x,y,z,dx,dy,dz,speed,id)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement