Paste #27990: Untitled Paste

Date: 2016/01/07 16:23:23 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9


on player consumes golden_apple:
        - if <player.has_flag[applecooldown]> {
          - narrate "<&c>Error: You cannot eat this yet. [<player.flag[applecooldown].expiration.formatted> left]"
          - determine cancelled
        } else {
          - narrate "<&c>You've consumed a super golden apple, please wait 5 minutes for the cooldown to be disabled."
          - flag player applecooldown duration:10s
          - determine fulfilled
        }