#Check book page

1 messages · Page 1 of 1 (latest)

buoyant elm
#

could someone tell me if it's possible to detect what page someone is reading of a written book

agile lotus
#

you could try to use the inventory title

buoyant elm
#

good one, ill try

#

welp

#

it doesn't recognize it as a inventory

buoyant elm
#

any other solutions? @agile lotus

agile lotus
#

let me test some stuff

buoyant elm
#

alright

#

because my idea was to teleport the player when he reached page 5 of the book

agile lotus
#

you using skbee?

#

cus then you can use the click event

#

with a cmd

#

smth like this ```js
command spawn:
trigger:
teleport player to location 10 meters above player
command book:
trigger:
set {_book} to a written book
set {_a} to text component of "idk"
set hover event of {_a} to hover event showing "make sure to read our rules"
set page 1 of book {_book} to {_a}

    set {_a} to text component of "idk"
    set hover event of {_a} to hover event showing "make sure to read our rules"
    set page 2 of book {_book} to {_a}
    
    set {_a} to text component of "idk"
    set hover event of {_a} to hover event showing "make sure to read our rules"
    set page 3 of book {_book} to {_a}
    
    set {_a} to text component of "idk"
    set hover event of {_a} to hover event showing "make sure to read our rules"
    set page 4 of book {_book} to {_a}
    
    set {_b} to text component of "idk"
    set hover event of {_b} to hover event showing "make sure to read our rules"
    set click event of {_b} to click event to run command "/spawn"
    set page 5 of book {_book} to {_b}
    
    set book author of {_book} to "idk"
    set book title of {_book} to "hi"
    give player 1 of {_book}```
buoyant elm
agile lotus
#

working or?

buoyant elm
#

ill try

#

but still not 100% what i want to do

agile lotus
#

ik

#

but thats the closest

buoyant elm
#
  • to write a whole storyline innit will take alot of time
agile lotus
#

for that you might need to make a plugin

buoyant elm
#

yeah

agile lotus
#

tho plugins aren't really that hard

buoyant elm
#

ill ty and lear java then

#

learn*

#

ty for the help

agile lotus
#

if you want i could help you