#Custom RTP doesnt work

1 messages · Page 1 of 1 (latest)

bleak arch
#

1 - you can use lists to reduce repeated code in your countdowns
2 - using an on player move event is inefficient - use a loop inside the teleport command to compare the player's location to their starting pos
3 - you can use metadata (or ram vars) instead of creating global vars which are deleted on load and on join/quit
4 - i suspect that your issue is because your /brtp console command doesn't exist (or is broken) - check your server console for an explanation as to why it's not working (or look into vanilla alternatives such as /spreadplayers)

fallow oak
#

oml i forgot i changed the rtp cmd to just rtp

fallow oak
#

@bleak arch

#

but if i click inside it it starts the RTP?

bleak arch
#

send_code
also elaborate on your issue - what doesn't work as expected?

fallow oak
#
    trigger:
        set {_rtpGUI} to a new chest inventory with 3 rows with name "&8ʀᴀɴᴅᴏᴍ ᴛᴇʟᴇᴘᴏʀᴛ"
        set slot 11 of {_rtpGUI} to grass_block named "<##99FB71>ᴏᴠᴇʀᴡᴏʀʟᴅ" with lore "&fClick to randomly teleport", "", "&fNA East (<##37BFF8>%player's ping%ms&7)"
        set slot 15 of {_rtpGUI} to netherrack named "<##FB5C32>ɴᴇᴛʜᴇʀ" with lore "&fClick to randomly teleport", "", "&fNA East (<##37BFF8>%player's ping%ms&7)"
        set slot 16 of {_rtpGUI} to end stone named "&eᴇɴᴅ" with lore "&fClick to randomly teleport", "", "&fNA East (<##37BFF8>%player's ping%ms&7)"
        open {_rtpGUI} to player```
#

the "grass_block" "netherrack" "end stone" dont pop up in the menu

bleak arch
#

pasted it on a server and it worked fine - although i had to remove the underscore from grass_block
send /sk info

fallow oak
bleak arch
#

any errors on reload?

fallow oak
#

no