- 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


TitleUntitled Paste
TypeDenizen Script
Date2016/05/14 16:11:50 UTC-07:00
ByNLBlackEagle
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
7400
    on block dispenses item:
    - if !<server.flag[dispenser].as_list.contains[<context.location.simple>]||false> {
        - if <context.location.inventory.list_contents> contains <i@DungeonBoss> {
          - if !<server.has_flag[dungeonboss]||false> {
            - playsound <context.location> sound:ENTITY_ENDERDRAGON_GROWL pitch:-100
            - ^spawn skeleton <context.location.add[0,1,0]> save:DungeonBoss
            - ^flag server "DungeonSpawns:|:<entry[DungeonBoss].spawned_entities>"
            - ^health <entry[DungeonBoss].spawned_entities> 30
            - ^heal <entry[DungeonBoss].spawned_entities>
            - ^adjust <entry[DungeonBoss].spawned_entities.get[1]> "custom_name:<gold><bold>DungeonBoss"
            - flag server dungeonboss duration:5m
            - DETERMINE CANCELLED
            }
          }
        - if <context.location.inventory.list_contents> contains <i@DungeonGuardian> {
          - if !<server.has_flag[DungeonGuardian]||false> {
            - playsound <context.location> sound:ENTITY_LIGHTNING_THUNDER pitch:-100
            - ^spawn skeleton <context.location.add[0,1,0]> save:DungeonGuardian
            - ^flag server "DungeonSpawns:|:<entry[DungeonGuardian].spawned_entities>"
            - ^health <entry[DungeonGuardian].spawned_entities> 30
            - ^heal <entry[DungeonGuardian].spawned_entities>
            - ^adjust <entry[DungeonGuardian].spawned_entities.get[1]> "custom_name:<red><bold>DungeonGuardian"
            - flag server DungeonGuardian duration:1m
            - DETERMINE CANCELLED
            }
          }
        - if <context.location.inventory.list_contents> contains <i@DungeonGhost> {
          - if !<server.has_flag[DungeonGhost]||false> {
            - playsound <context.location> sound:ENTITY_LIGHTNING_IMPACT pitch:-100
            - ^spawn skeleton <context.location.add[0,1,0]> save:DungeonGhost
            - ^flag server "DungeonSpawns:|:<entry[DungeonGhost].spawned_entities>"
            - ^health <entry[DungeonGhost].spawned_entities> 30
            - ^heal <entry[DungeonGhost].spawned_entities>
            - ^adjust <entry[DungeonGhost].spawned_entities.get[1]> "custom_name:<bold>DungeonGhost"
            - flag server DungeonGhost duration:1m
            - DETERMINE CANCELLED
            }
          }
        - if <context.location.inventory.list_contents> contains <i@AncientDungeonsArrow> {
          - if <server.has_flag[Entity]> == true {
            - if <server.has_flag[LaggOFix]> == false {
              - random {
                - DETERMINE i@lingering_potion[potion_effects=li@POISON,false,false]
                - DETERMINE i@lingering_potion[potion_effects=li@INSTANT_DAMAGE,true,false]
                - DETERMINE i@lingering_potion[potion_effects=li@SLOWNESS,false,true]

                - DETERMINE i@AncientDungeonsArrow
                }
              - DETERMINE CANCELLED
              - flag server LaggOFix duration:20
              }
            }
            else if <server.has_flag[Entity]> == false {
            - random {
              - spawn zombie <context.location>
              - spawn pig_zombie <context.location>
              - spawn creeper <context.location>
              - spawn spider <context.location>
              - DETERMINE CANCELLED
              }
            - random {
              - flag server Entity duration:5m
              - spawn zombie <context.location>
              - spawn pig_zombie <context.location>
              - spawn spider <context.location>
              - DETERMINE CANCELLED
              }
            - DETERMINE CANCELLED
            }
          }
        }
      - DETERMINE CANCELLED
      }



RawRaw



Pastes made: 59170