fix

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

AdenR84

Active Member
Sep 4, 2023
72
0
6
23
Code:
on sneak toggle:
    set {_trap} to block below player
    if {_trap} is Glowstone:
        execute console command "/spawnpoint %player% 612 87 510"
        send "&aSet Spawn Point For %player%"
command /warp:
    trigger:
        set {_gui} to chest with 5 rows named "&2Warps"
        set slot 1 of {_gui} to book named "&bSpawn"
        open {_gui} to player

on inventory click:
    if name of event-inventory is "&2Warps"
    event-item is book named "&bSpawn":
    execute console command "/tp %player% 612 87 510"
    close event-inventory
    cancel event
    else:
    cancel event
um this doesnt work and tps you to spawn whenever you pick something up
 
Last edited: