- 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
Date2019/11/16 16:23:59 UTC-08: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
5600
anvils:
  type: inventory
  inventory: CHEST
  size: 54
  title: Anvil
  definitions:
    1: black_stained_glass_pane
    2: white_stained_glass_pane
    3: ENDESSENCE_CRYSTAL
    4: barrier
    5: experience_bottle
  slots:
  - "[1] [1] [1] [1] [1] [1] [1] [1] [1]"
  - "[1] [5] [1] [3] [1] [3] [1] [1] [1]"
  - "[1] [2] [1] [2] [2] [2] [1] [1] [1]"
  - "[1] [2] [1] [1] [2] [1] [1] [1] [1]"
  - "[1] [2] [2] [2] [4] [2] [2] [3] [1]"
  - "[1] [1] [1] [1] [1] [1] [1] [1] [1]"

AnvilReloaded_Global:
  type: world
  events:
    on player clicks in anvils:
    ## SLOT 15 DISPLAY ##
    - if <context.inventory.slot[15].material.name> == air:
      - inventory set d:<context.inventory> o:white_stained_glass_pane slot:24
      - inventory set d:<context.inventory> o:white_stained_glass_pane slot:23
      - inventory set d:<context.inventory> o:white_stained_glass_pane slot:32
      - wait 1t
      - inventory set d:<context.inventory> o:purple_stained_glass_pane slot:15
      - inventory update d:<player.inventory>
      - queue clear
    - if <context.inventory.slot[13].material.name> != <context.inventory.slot[15].material.name> && !<context.inventory.slot[15].material.name.contains[enchanted_book]>:
      - inventory set d:<context.inventory> o:red_stained_glass_pane slot:32
      - inventory set d:<context.inventory> o:red_stained_glass_pane slot:24
      - inventory set d:<context.inventory> o:red_stained_glass_pane slot:23
      - wait 1t
      - inventory update d:<player.inventory>
      - queue clear
    - if <context.inventory.slot[15].material.name> == air || <context.inventory.slot[13].material.name> == purple_stained_glass_pane:
      - inventory set d:<context.inventory> o:white_stained_glass_pane slot:24
      - inventory set d:<context.inventory> o:white_stained_glass_pane slot:23
      - inventory set d:<context.inventory> o:white_stained_glass_pane slot:22
      - inventory set d:<context.inventory> o:white_stained_glass_pane slot:32
      - wait 1t
      - inventory set d:<context.inventory> o:purple_stained_glass_pane slot:15
      - inventory update d:<player.inventory>
      - queue clear
    - if <context.inventory.slot[13].material.name.contains[<context.inventory.slot[15].material.name>]> || <context.inventory.slot[15].material.name.contains[enchanted_book]>:
      - inventory set d:<context.inventory> o:lime_stained_glass_pane slot:24
      - inventory set d:<context.inventory> o:lime_stained_glass_pane slot:23
      - inventory set d:<context.inventory> o:lime_stained_glass_pane slot:22
      - inventory set d:<context.inventory> o:lime_stained_glass_pane slot:32
      - wait 1t
      - inventory update d:<player.inventory>



RawRaw



Pastes made: 76867