Paste #44315: Untitled Paste

Date: 2017/09/10 20:54:42 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


on player enters notable cuboid:
    - define cuboid <context.cuboids.after[cu@].regex[(\D+).*].group[1]>
    - if <def[cuboid].contains_text[easteregg]> && <yaml[<player>].read[<player>.eastereggs.<context.cuboids.get[1].replace[cu@]>]> == false {
      - define xp <s@config.yaml_key[eastereggs.xpeach]>
      - narrate "<&2>=<&6>=<&2>=<&6>=<&2>=<&6>=<&2>=<&6>=<&2>=<&6>=<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>=<&6>=<&2>=<&6>=<&2>=<&6>=<&2>=<&6>=<&2>=<&6>="
      - narrate "<&3>                <&k>!!!<&r>   <&b><&l>Easter Egg Discovered!!!<&r>   <&3><&k>!!!"
      - narrate "<&e>              <&a><def[xp]> XP has been added to your account!"
      - narrate "<&2>=<&6>=<&2>=<&6>=<&2>=<&6>=<&2>=<&6>=<&2>=<&6>=<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>=<&6>=<&2>=<&6>=<&2>=<&6>=<&2>=<&6>=<&2>=<&6>="
      - playsound <player> sound:entity_player_levelup volume:1.2 pitch:0.5
      - flag <player> xp:+:<def[xp]>
      - yaml set 'id:<player>' '<player>.eastereggs.<context.cuboids.get[1].replace[cu@]>:true'
      - yaml set 'id:<player>' '<player>.eastereggs.totalfound:++'    
      - yaml 'savefile:../../../players/<player.uuid>.yml' 'id:<player>'
      - flag <player> <context.cuboids.get[1].replace[cu@]>found
      - if <player.flag[easteregg]is[<=].than[11]> {
        - queue clear
        }
        else {
        - define bonusxp <s@config.yaml_key[eastereggs.xpallfound]>
        - narrate "<&2>=<&6>=<&2>=<&6>=<&2>=<&6>=<&2>=<&6>=<&2>=<&6>=<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>=<&6>=<&2>=<&6>=<&2>=<&6>=<&2>=<&6>=<&2>=<&6>="
        - narrate "<&3>              <&k>!!!<&r>   <&b><&l>ALL EASTER EGGS DISCOVERED!!!<&r>   <&3><&k>!!!"
        - narrate "<&e>              <&a><def[bonusxp]> XP has been added to your account!"
        - narrate "<&2>=<&6>=<&2>=<&6>=<&2>=<&6>=<&2>=<&6>=<&2>=<&6>=<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>-<&6>-<&2>=<&6>=<&2>=<&6>=<&2>=<&6>=<&2>=<&6>=<&2>=<&6>="
        - playsound <player> sound:entity_wither_death volume:1.2 pitch:0.5
        - flag <player> xp:+:<def[bonusxp]>
        }
      }