- 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


TitleFailTagsByUsingFlagsByCloseing
TypeDenizen Script
Date2019/02/26 13:28:34 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
4000
"TEST_GUI":
  type: inventory
  debug: false
  inventory: CHEST
  title"<black><npc.name> Chest"
  size: 9
  slots:
  - "[i@air] [i@air] [i@air] [i@TESTITEM] [i@air] [i@air] [i@air] [i@air] [i@air]"
  

TESTITEM:
  type: item
  debug: false
  material: i@stone
  display name: lol
  lore:
  - <white><npc.has_flag[TestNPC]>
  - <white><npc[<player.flag[TESTLastClickedNPC]>].name>



"TESTNPCTalkEvent":
  type: world
  debug: false
  events:
    on player right clicks npc:
    - flag player TESTLastClickedNPC:<npc.id>
    - if <npc.has_flag[TestNPC]> == true {
      - inventory open d:in@TEST_GUI
      }

"TESTGUIClickEvent":
  type: world
  debug: false
  events:
    on player clicks in TEST_GUI:
    - if <context.item.scriptname> == TESTITEM {
      - inventory close d:in@TEST_GUI
      }



RawRaw



Pastes made: 72036