Solved set slots for player crafting slots

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

saad3modeyy

Member
Mar 14, 2020
24
0
0
24
I wanna to cancel crafting on player's inventory so I try to do this
Code:
loop integers between 0 and 200:
    set slot loop-number of player to black stained glass pane named "  "


to know if I can set the that slots with
Code:
set slot <slot> of player to 1 red stained glass pane named "  "

but it does't work heres an image http://prntscr.com/t8ykrp

i think that doesnt work that way so anyone know how ican do it pls reply
:emoji_slight_smile:
 
no I wanna the player to use crafting table but when use the inventory crafting cancel it
 
You can check if the player is using a crafting table then. This is untested code, but it should work.
Code:
on right click on crafting table:
    set {craft::%player%} to true
on craft:
    {craft::%player%} is not true
    cancel event
on inventory close:
    delete {craft::%player%}
 
Status
Not open for further replies.