Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bind(player_interact, array(priority: normal), null, @event,
- assign(@p, @event['player'])
- assign(@h, pinv(@p, null))
- if(@event['action'] != 'right_click_air' && @event['action'] != 'right_click_block') { die() }
- if(@h == null) { die() }
- assign(@m, get_itemmeta(@p, null))
- if(@m == null) { die() }
- assign(@lm, @m['lore'])
- if(@lm == null) { die() }
- foreach(@lm, @l,
- if(reg_count(color(k) . color(6) . color(a), @lm) > 0) {
- assign(@typeR, array('BALL', 'BALL_LARGE', 'STAR', 'BURST', 'CREEPER'))
- assign(@strength, rand(0,5))
- assign(@flicker, rand(0,2))
- assign(@trail, rand(0,2))
- assign(@type, @typeR[array_rand(@typeR)[0]])
- assign(@colorsC, array('WHITE', 'BLUE', 'FUCHSIA', 'MAROON', 'GREEN', 'GREY', 'AQUA', 'OLIVE', 'NAVY', 'SILVER', 'YELLOW', 'BLACK', 'LIME', 'ORANGE', 'PURPLE', 'RED', 'GRAY', 'TEAL'))
- assign(@colors, array())
- assign(@fade, array())
- assign(@colorsR, array_rand(@colorsC, rand(1,18)))
- foreach(@colorsR, @c, array_push(@colors, @colorsC[@c]))
- assign(@fadeR, array_rand(@colorsC, rand(1,18)))
- foreach(@fadeR, @f, array_push(@fade, @colorsC[@c]))
- assign(@final, array(strength: @strength, flicker: @flicker, trail: @trail, colors: @colors, fade: @fade, type: @type))
- launch_firework(ploc(@p), @final)
- tmsg(@p, @strength)
- }
- )
- )
Advertisement
Add Comment
Please, Sign In to add comment