- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleEdit of P#16201 - Untitled Paste
TypeDenizen Script
Date2015/06/03 00:50:27 UTC-07:00
ByGuest
Other
Paste
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
9200
Bounty:
    type: format
    format"<green>Bounty Officer<white><text>"

Killmobs:
    type: world
    events:
        on entity death:
            - if <context.damager.entity_type||none> == PLAYER {
                - define killer <context.damager>
                - define type <context.entity.entity_type>
                - define baby <context.entity.age.as_int.is[LESS].than[0]>
                - define burning <context.entity.fire_time.in_seconds.is[!=].to[0]>
                - if %type% == PIG {
                    - determine passively NO_XP
                    - if %baby% determine NO_DROPS
                    else if %burning% determine li@i@grilled_pork
                    else determine li@i@pork
                } else if %type% == CHICKEN {
                    - determine passively NO_XP
                    - if %baby% determine NO_DROPS
                    else if %burning% determine li@i@cooked_chicken
                    else if <util.random.int[1].to[10]> < 3 determine li@i@raw_chicken|i@feather
                    else determine li@i@raw_chicken
                } else if %type% == SHEEP {
                    - determine passively NO_XP
                    - if %baby% determine NO_DROPS
                    else if %burning% determine li@i@cooked_mutton
                    else if <util.random.int[1].to[10] < 6 {
                        - define colour <context.entity.color>
                        - if %colour% == silver define colour light_gray
                        - determine li@i@mutton|i@%colour%_wool
                    } else determine li@i@mutton
                } else if %type% == COW {
                    - determine passively NO_DROPS_OR_XP
                    - define drops li@<t[<context.entity.fire_time.in_seconds.is[!=].to[0]>]:i@cooked_beef||i@raw_beef>
                    - if <util.random.int[1].to[10]> < 4 define drops <%drops%.include[i@leather]>
                    - determine %drops%
                } else if %type% == HORSE {
                    - determine NO_DROPS_OR_XP
                } else if %type% == RABBIT {
                    - determine passively NO_DROPS_OR_XP
                    - define drops li@i@rabbit
                    - if <util.random.int[1].to[10]> < 2 define drops <%drops%.include[i@rabbit_foot]>
                    - determine %drops%
                } else if %type% == MUSHROOM_COW {
                    - determine passively NO_DROPS_OR_XP
                    - define drops li@
                    - if <util.random.int[1].to[10]> < 3 define drops <%drops%.include[i@leather]>
                    - if <util.random.int[1].to[100]> < 85 define drops <%drops%.include[i@red_mushroom]>
                    - if <util.random.int[1].to[100]> < 5 define drops <%drops%.include[i@raw_beef]>
                    - if <%drops%.size> != 0 determine %drops%
                } else if %type% == SQUID {
                    - determine passively NO_DROPS_OR_XP
                    - determine li@i@ink_sack
                } else if <def[type].contains_any[wolf|ocelot|bat|villager]> {
                    - narrate format:Bounty "You killed a <context.entity.entity_type.to_lowercase> and gained no xp!" targets:%killer%
                    - determine NO_DROPS_OR_XP
                } else if %type% == SPIDER || %type% == CAVE_SPIDER {
                    - determine passively 5
                    - define drops li@
                    - if <util.random.int[1].to[100]> < 40 define drops <%drops%.include[i@string]>
                    - if <util.random.int[1].to[100]> < 80 define drops <%drops%.include[i@spider_eye]>
                    - if <%drops%.size> != 0 determine %drops%
                } else if %type% == SKELETON {
                    - determine passively 5
                    - define drops li@i@bone
                    - if <util.random.int[1].to[100]> < 5 define drops <%drops%.include[i@bow[durability=<util.random.int[195].to[300]>]]>
                    - determine %drops%
                } else if %type% == CREEPER {
                    - determine passively NO_DROPS
                    - determine passively 5
                    - if <util.random.int[1].to[100]> < 65 determine li@i@sulphur
                } else if %type% == ZOMBIE {
                    - determine passively 5
                    - determine li@i@rotten_flesh
                } else if %type% == PIG_ZOMBIE {
                    - determine passively 7
                    - define drops li@i@rotten_flesh
                    - if <util.random.int[1].to[10]> < 2 define drops <%drops%.include[i@gold_nugget]>
                    - determine %drops%
                } else if %type% == ENDERMAN {
                    - determine passively NO_DROPS
                    - determine passively 8
                    - if <util.random.int[1].to[10]> < 4 determine li@i@ender_pearl
                }
                - announce "<aqua><%killer%.name> <white>killed a <yellow>%type%" to_console
                #- if <context.entity.entity_type.contains_any[skeleton|creeper|zombie|enderman|silverfish|spider|witch]
            } else {
                - determine NO_DROPS_OR_XP
            }



RawRaw



Pastes made: 58443