how to do inventory multiple page that can move next page & previous page perfectly?
this code run1 can go run2 (next page), but cannot go back run1 (previous page)
this code run1 can go run2 (next page), but cannot go back run1 (previous page)
code_language.skript:
function run1(p: player):
open chest with 5 rows named "run1" to {_p}
wait 1 tick
# bla bla bla...
format slot 53 of {_p} with ender eye named "&a&lNext Page" to close then run [cliamitem_pg2({_p})]
function run2(p: player):
open chest with 5 rows named "run2" to {_p}
wait 1 tick
# # bla bla bla...
format slot 45 of {_p} with ender pearl named "&c&lPrevious Page" to close then run [cliamitem_pg1({_p})]
command /test:
trigger:
set {_p} to player
run1({_p})