-CommitToNotUsingRawObjectNotationInScripts: +commit_to_not_using_raw_object_notation_in_scripts: type: command name: enablehalo usage: /enablehalo - description: Enables your Halo for being a good Denizzle! + description: Toggles your Halo for being a good Denizzle! aliases: - - PraiseDenizen + - praisedenizen script: - - if : - - flag player GoodDenizzle:! + - if : + - flag player good_denizzle:! - narrate "<&c>Your Halo disapears!" - else: - - flag player GoodDenizzle + - flag player good_denizzle - narrate "<&a>You become a good Denizzle!" - - run GoodDenizzleGoingToHeaven + - run good_denizzle_going_to_heaven -GoodDenizzleGoingToHeaven: +good_denizzle_going_to_heaven: type: task debug: false script: - - define HaloColor - - while && : - - define Pitch - - define Yaw - - define Loc - - define Angle ]>].rotate_around_x[<[Pitch]>].rotate_around_y[<[Yaw]>]> - - playeffect effect:redstone at:<[Loc].add[<[Angle]>]> offset:0 special_data:0.5|<[HaloColor]> - - if <[Loop_Index].mod[4]> == 0: + - define halo_color + - while && : + - define pitch + - define yaw + - define loc + - define Angle ].rotate_around_x[<[pitch]>].rotate_around_y[<[yaw]>]> + - playeffect effect:redstone at:<[Loc].add[<[Angle]>]> offset:0 special_data:0.5|<[halo_color]> + - if <[loop_index].mod[4]> == 0: - wait 1t - - flag player GoodDenizzle:! - - narrate "<&c>Your Halo disapears!" + - flag player good_denizzle:! +