inventory

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

  1. Qurao

    inventory GUI

    I have a code, but it doesn't work and gives an error: [15:36:04 ERROR]: [Skript] In 1.13+ you cannot get the title name of an inventory outside of an InventoryClickEvent, Only if this inventory has an InventoryHolder may it be used in this state. Code: on rightclick on player: if...
  2. Very Cool Bee

    Backpack

    Hellooo! I recently made this skript for a backpack: function openBackpack(p: player): open chest with 1 row named "Backpack" to {_p} set {_s} to 0 loop 9 times: set slot {_s} of {_p}'s current inventory to {backpack::%{_p}%::%{_s}%} add 1 to {_s} on...
  3. Very Cool Bee

    Checking items in brewing stand

    Hello! How can I check the item player puts into a brewing stand? I want to prevent people from putting fermented spider eye into a brewing stand. Thanks :wrong:
  4. Gherrix

    Custom inventory

    Hi, I would like to create a gui where players can put their items and save their items. How can I do ?
  5. S

    Manage items of chest

    I give up! I don't know how to manage items from a chest: I want to remove a certain amount of items from one chest and add another items to another chest. {factories::%loop-index%::input} => This is a chest block {factories::%loop-index%::input::item} => This is an item #Add 10 of item to...
  6. J

    Multiple GUIs with same action

    USING VANILLA GUIS Current Addons: Skellet, SkRayFall, TuSke I'm setting up a pickaxe upgrade system. They right click their current pick so it opens the gui and they can purchase the following tier. However, my script is stuck and only works with the first tier. When I open up the second pick...
  7. R

    I want to enchant slot item

    I coded enchant GUI with enchanted stone item(enchant to stone). Others' run in my intend. But, enchantment doesn't work. Enchant other parts' item work well. How can I enchant inventory's slot item? on inventory click: if inventory name of player's current inventory contains...
  8. sluhtie

    Can‘t remove custom named items from inventory

    Hey, I’m trying to remove a custom named pickaxe from a player’s inventory but this: remove 1 diamond pickaxe named “&5Test” from player’s inventory Does not work for me :( No errors, it just does not remove the item. And I have to do it like so because I can’t use delete player’s held item...
  9. integro96

    Solved Item in inventory with custom name and lore

    Hi people! i have a issue with inventory/custom name, i want people use a "cookie" for keep inventory and xp and consume the cookie with specific name and lore oh and of course dont consume while eating. i did it in while the cookie was in hand, but i want to be in any part of the inventory. i...
  10. kamilleon

    Solved Redeem coins with right click

    The one at a time works, but I can't get the all at once to be redeemed to work. Any suggestions? on right click with gold nugget: if name of player's held item is "&e&lÉrme &7(Jobb Katt)": if player is sneaking: set {_érem} to amount of gold nugget named "&e&lÉrme...
  11. Nikola

    Solved Region Inventories

    Hello, I'm making a RPG server, and I need your help. My idea is that when player enters a forest region (named: forest) his inventory will get saved, then removed, and he will receive an axe. When player leaves that region, his inventory (with all saved stuff) will appear again. I saw an addon...
  12. Hakuyamu

    SkQuery GUI formating problem

    Hello! This is my code i am using for creating a GUI: command /hystery: trigger: open chest with 5 rows named "&b[&fHystery GUI&b]" to player wait 2 ticks format slot 0 of player with {gui.slot0} named "" to run [execute player command "/givehead 1"] format...
  13. M

    Solved This is error??

    on inventory close: if player's helmet is set: ... if player's chestplate is set: ... if player's leggings is set: ... if player's boots is set: message "D" <-- test ... I only equip a helmet, and when I close the...
  14. M

    add lore

    hi how do you add a name to an item without removing the item from the player's inventory and then replacing it with the same item that has a new name and it has to work with custom inventories i cant find a way to do this
  15. SoMuchWessel

    Virtual chest

    Hey guys, I got an idea, but i dont know how to work this out. I want that you can do a command, like /storage, and that it shows a gui as big as a normal chest. Then you can only put in like diamonds and gold, nothing else. If you close the gui, then it will stay stored, so if you do /storage...
  16. P

    Save inventory and load

    How can I save and load the player's inventory and armour to/from a variable list?
  17. Selvati

    User Specific Inventories

    I know this should be in the request section, but I don't feel that gets looked at enough anymore, so if you've read this far, please do continue and allow me to enlighten you. I am trying to recreate what I like to call Adaptive Inventories, to dumb this term down, inventories/gui's that will...
  18. Spartan9802

    Solved Inventory to string mysql

    Good morning. Hello, How to save a player's inventory in a mysql database? I know it is possible to serialize in java but how to do it in skript: /
  19. R

    Solved Loop all items in player's inventory

    Hi, I am trying to do a skript that loops items in player's inventory and then it adds it to a yml file. The problem is that when I reload my skript, an error appears saying "Can't understand this type of loop: "loop all items in player's inventory", etc". First I did something like this and I...
  20. kenkencw

    Solved Movable GUI items

    addon: Tuske how to make GUI inventory items movable? im using list variables for easy edit each items in command, and how to seperate "serialized" items to seperate variables?