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

    Now, what are you waiting for? Join the community now!

  1. D

    How to save player's armor

    Hey, I'm trying to write an inventory save script for my citybuild script, everything works fine except the armor is not saved? Does anyone know maybe how to save the armor in a value and recall it? Thanks already!
  2. pokw

    Loop the inventory of player's tool

    How do I loop the inventory of a player's tool? This is the code I have right now if someone can help. command /command: trigger: player's tool is shulker: loop the inventory of player's tool: if loop-inventory contains dirt: send "loop inventory contains dirt"...
  3. S

    error code inventory of the player is not a world

    i fixed it.
  4. G

    Set slot item bugged

    Hello everyone! so i make a skript when a player click on anvil crafting gui showed, but when i close the gui the item in 3rd slot of my toolbar cant be move it only happend with stone blocks please help! on inventory click: if inventory name of current inventory of player is...
  5. 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...
  6. 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...
  7. 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:
  8. 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 ?
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. 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
  19. 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...
  20. P

    Save inventory and load

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