Solved Need help with this skript, it do's not remove item?

  • 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!

Status
Not open for further replies.

FionoNetwork

Member
Jun 6, 2018
3
0
1
32
Heey, My skript do's not remove the item i need it to remove..


Code:
on rightclick on red hardened clay:

#       CrafterT1

    if name of player's held item contains "&8CrafterT1":
        cancel event
        remove piston named "&8CrafterT1" from the player
        set {lasttp.%player%} to location of player
        wait 1 tick
        teleport player to block above event-block
        execute console command "/pex user %player% add worldedit.*"
        execute player command "//schematic load CrafterT1"
        execute player command "//paste"
        execute console command "/pex user %player% remove worldedit.*"
        teleport player to {lasttp.%player%}
 
Status
Not open for further replies.