On inventory click

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

Mvdabxd

Member
Jan 5, 2022
3
0
1
25
Can someone please tell me how I make a system where when the player drags 1 item to a specific slot, another item appears.

EX: I dragged 1 stone to the slot, then another item appears on the side

Version 1.8.8


command /menuferreiro2:
trigger:
open chest with 6 row named "&7Afiados" to player
format slot 12 of player with red stained glass pane named "&r" to run "d"
format slot 13 of player with red stained glass pane named "&r" to run "d"
format slot 14 of player with red stained glass pane named "&r" to run "d"
format slot 21 of player with red stained glass pane named "&r" to run "d"
format slot 23 of player with green stained glass pane named "&eClique aqui para mostrar os atributos compátiveis com sua ferramenta" to run "d"
format slot 30 of player with red stained glass pane named "&r" to run "d"
format slot 31 of player with red stained glass pane named "&r" to run "d"
format slot 32 of player with red stained glass pane named "&r" to run "d"





on inventory click:
if inventory name of player's current inventory is "&7Afiados":
clicked slot is 22:
if item is any sword named "":
format slot 1 of player with chest named "Afiação" to run ""
format slot 23 of player with green stained glass pane named "" to run ""
 
Status
Not open for further replies.