#Enderchest UI not working

1 messages · Page 1 of 1 (latest)

tacit bladeBOT
#

enderchest:setup_page/page1

scoreboard players set @s ender.page 0
item replace entity @s enderchest.11 with minecraft:diamond
item replace entity @s enderchest.13 with minecraft:diamond
item replace entity @s enderchest.15 with minecraft:diamond
item replace entity @s enderchest.22 with minecraft:air

say page 1 open

enderchest:setup_page/page2-4

scoreboard players set @s ender.page 1
item replace entity @s enderchest.22 with minecraft:arrow
item replace entity @s enderchest.10 with green_dye
item replace entity @s enderchest.11 with green_dye
item replace entity @s enderchest.12 with green_dye

say page 2 Open```

main.mcfunction
```json
execute as @a[scores={ender.page=0}] run function enderchest:pages/page1
execute as @a[scores={ender.page=1}] run function enderchest:pages/page2
execute as @a[scores={ender.page=2}] run function enderchest:pages/page3
execute as @a[scores={ender.page=3}] run function enderchest:pages/page4
item replace entity @a player.cursor with air```


page1.mcfunction
```mcfunction
item replace entity @s enderchest.11 with minecraft:diamond
item replace entity @s enderchest.13 with minecraft:diamond
item replace entity @s enderchest.15 with minecraft:diamond

item replace entity @s enderchest.(1-26) with air

execute unless items entity @s enderchest.11 minecraft:diamond run function enderchest:setup_page/page2
execute unless items entity @s enderchest.13 minecraft:diamond run function enderchest:setup_page/page3
execute unless items entity @s enderchest.15 minecraft:diamond run function enderchest:setup_page/page4

page2-3.mcfunction will be sent

unkempt gazelleBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

                        🙇 After a while, hit the Summon Helpers button to ping the helper team. They'll be happy to help you


                        
                        ✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve
spiral void
#
item replace entity @s enderchest.10 with green_dye
item replace entity @s enderchest.11 with green_dye
item replace entity @s enderchest.12 with green_dye

item replace entity @s enderchest.(0-26) with air
execute unless items entity @s enderchest.10 minecraft:green_dye run scoreboard players set @s slot.2 0
execute unless items entity @s enderchest.11 minecraft:green_dye run scoreboard players set @s slot.2 1
execute unless items entity @s enderchest.12 minecraft:green_dye run scoreboard players set @s slot.2 2

execute unless items entity @s enderchest.22 minecraft:arrow run function enderchest:setup_page/page1```
#

anything with 1-2 u can assume that slot.(numb) is bascily anything between 1-3

unkempt gazelleBOT
# unkempt gazelle <@&1201956957406109788>

<@&935561184806060073> <@&1202694677766348840>

**🙇 Helpers Arise!**

Please note that you still might not immediately get a response since all helpers are human beings and volunteers (and also might be sleeping right now)

maiden dove
#

I don't really know what you expect us to do with just a bunch of code and no explanation about what isn't working as expected. Tell us what you want to happen, what's happening instead, and what you've tried.

spiral void
#

Oh yeah

#

My fault

#

It’s not changing pages as it’s supposed to be.

#

I tried putting the if item before the items and it didn’t work

spiral void
#

I have tried putting items

#

I might try checking for items in inventory instead

maiden dove
spiral void
#

setup_page/page(num)

#

and the main

spiral void
maiden dove
#

That doesn't point at anything

spiral void
#

The setup_page is literally the first 2 functions I showcased

maiden dove
#

Ok cool, I guess someone else can help you

spiral void
#

/resolve