Paste #20844: Untitled Paste

Date: 2015/10/13 14:46:51 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13


welcome_emeralds:
    Type: world
    events:
        on player right clicks emerald_ore:
            # DEBUG: check to see that we ARE seeing the emeralds, and only them
            - narrate "EMERALDS! At:  <context.location>."

                # Check that it is in the right location and world
            - if <context.location.cuboids.contains[cu@60.0,60.0,40.0,Welcome|110.0,90.0,80.0,Welcome]> {
                - narrate  "You found emeralds!"
                    # Mark the player, so that they can only be gifted once.
                - flag player welcome_freemeralds
              }