1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Script Chat Items 0.2

Share items from your inventory in chat using json chat formatting.

Tags:
  1. AsuDev
    Contributors:
    AsuDev
    Supported Minecraft Versions:
    • 1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15
    Description
    Chat Items is a script that allows players to share multiple items in chat at the same time. Instead of using the typical '[item]' system which shares the item in the player's hand, this system works off of player's being able to specify which slots they want to share with others.

    Requirements
    Skript 2.2+
    skript-mirror 2.0
    Skquery


    IMPORTANT
    If you are using Skript 2.3.7 or LOWER then you do not need to edit anything when you download the script.

    HOWEVER, if you are using Skript 2.3.7+ you need to change two lines of code:


    1. Delete or comment out line 179 (send "%{_s}%" to all players)
    2. Uncomment line 180 (send formatted "%{_s}%" to all players)
    3. Reload the script.


    I have no clue how compatible this is with other chat plugins and such so let me know if you run into any issues. This resource is new so contact me if you run into any bugs (Discord: AsuDev#0714)

    Features
    1. Share multiple items in chat at the same time based on slots.
    2. Instead of the typical hover info for items, clicking on the item in chat will open a GUI and display the actual item.
    3. A few configurable options so you can change how you want items to be displayed.

    Formatting
    This system works a little bit differently from the normal '[item]' system. To share items in chat, the player must specify what item slot they want to share. The format is very simple:

    [i-1] or [item-1] would share the item in the first slot of the player's inventory.
    [i-2] or [item-2] would share the item in the second slot of the player's inventory.
    [i-3] or [item-3] would share the item in the third slot of the player's inventory.
    Etc. You can specify a slot between 1-36 representing the player's inventory.

    Example
    A player types 'Look at my items [i-1] [i-2] [i-3]' and sends the message. The player specified that he wanted to share the items in slot 1, 2 and 3 in his inventory.
    Capture.PNG
    Each item shared in chat has a tooltip and can be clicked on for more info about that item.

    Permissions
    chatitems.share - Share items in chat (if option for perms is true)

    Options

    Code (Skript):
    1. options:
    2.  
    3.     # PERMISSION OPTIONS
    4.  
    5.     # Require sharing items in chat to have permission 'chatitems.share'
    6.     useItemChatPermission: false
    7.  
    8.     # CHAT OPTIONS
    9.  
    10.     # The amount of items a player can put in chat
    11.     allowedOccurencesOfItem: 3
    12.     # Capitalize uncapitalized item names for items that do not have a name
    13.     capitalizeItemNames: true
    14.     # Removes underscores and replace with spaces
    15.     replaceUnderScoresWithSpaces: true
    16.     # The original chat color so it reformats itself after adding an item
    17.     originalChatColor: &f
    18.     # Default item color for items that do not have a name
    19.     defaultItemColor: &7
    20.     # Bracket color
    21.     defaultBracketColor: &7
    22.     # Item tooltip when hovering over items in chat
    23.     hoverItemTooltip: %{_defaultItemColor}%%{_n}%%nl%&7Click to view this item.
    24.     # Show item stack amount in chat
    25.     showStackAmount: true
    26.     # Item stack in chat format
    27.     amountFormat: &7x%{_amount}%
    28.  
    29.  
    30.     # GUI OPTIONS
    31.  
    32.     # Display item gui name
    33.     guiDisplayItemName: &a%arg 1%'s Display Item
    34.     # Gui size (rows)
    35.     guiSize: 1
    36.     # Item slot
    37.     itemGuiSlot: 4

Recent Updates

  1. Permission Fix