help me

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

    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.

daniel24

Member
Sep 21, 2022
3
0
1

This function is to move the menu using the Player Inventory production stand.

However, if you put the item on the Player Inventory counter,
It can be moved, but there is still a residue of the item you uploaded.
If you go into the inventory and double-click it, it disappears
This makes me uncomfortable.

I'm sorry I can't speak English.
Give them a hand.

Code:
on inventory click:
  if clicked inventory is player's current inventory:
    if clicked slot is 1 or 2 or 3 or 4:
      cancel event
      execute player command "/menu"
    if clicked slot is 0:
      cancel event
      close player's inventory
      show crafting table to player
 
Last edited:

This function is to move the menu using the Player Inventory production stand.

However, if you put the item on the Player Inventory counter,
It can be moved, but there is still a residue of the item you uploaded.
If you go into the inventory and double-click it, it disappears
This makes me uncomfortable.

I'm sorry I can't speak English.
Give them a hand.

Code:
on inventory click:
  if clicked inventory is player's current inventory:
    if clicked slot is 1 or 2 or 3 or 4:
      cancel event
      execute player command "/menu"
    if clicked slot is 0:
      cancel event
      close player's inventory
      show crafting table to player
Code:
on inventory click:
  if clicked inventory is player's current inventory:
    if clicked slot is 1 or 2 or 3 or 4:
      cancel event
      execute player command "/menu"
      if cursor slot of player is air:
        set cursor slot of player to air
    if clicked slot is 0:
      cancel event
      close player's inventory
      show crafting table to player
?
 
Status
Not open for further replies.