Paste #49789: Untitled Paste

Date: 2018/09/13 10:21:57 UTC-07: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
14
15
16
17


testbook:
  type: book
  title: Testing testing
  signed: true
  text:
  - "This is the text originally in the book!"

testbookworld:
  type: world
  events:
    on player clicks testbook in inventory:
    - inventory close
    - define held <player.item_in_hand>
    - adjust <player> item_in_hand:testbook
    - adjust <player> open_book
    - adjust <player> item_in_hand:<def[held]>
    - adjust book <testbook.book.pages.insert[Here is some different text!]>