Paste #1020: Untitled Paste

Date: 2014/01/04 05:44:44 UTC-08: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


"Antifarm":
    type: world
    debug: false
 # NEEDS TESTING!
 # A simple script to nerf automatic mob farms. 
    events:
        on entity dies:
        - if <context.entity> contains "p@" queue clear
        - if <context.damager> == "context.damager" {
            - define random <util.random.int[1].to[10]>
            - if %random% != 1 {
                - determine "NO_DROPS_OR_XP" }
            }