Hide item attributes for GUI menus

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

ZeaL_BG

Member
Mar 11, 2017
4
0
0
Skript Version: 2.2-dev25
Skript Author: Bensku
Minecraft Version: 1.8.8


Im creating a gui menu filled with items. I have the following code to add a diamond axe with glowing option and amount, but I need a way to remove the attributes from the item when displaying it.


Full Code:

code_language.skript:
Item settings:
set {item.%{_player}%::itemname} to "%{item.%{_player}%::level}% diamond axes" parsed as itemtype
set {item.%{_player}%::itemname} to glowing {item.%{_player}%::itemname}

Item creation in the gui:
create gui slot loop-value - 1 of {_player} with {item.%{_player}%::itemname} named "%{items::%loop-value%}%" with lore "%{item.%{_player}%::lore}%" to run console command "/cmd %{_player}% %{items.%loop-value%}%"

Addons using (including versions):
Tuske - 1.8.2
SkQuery - 3.5.9-Lime
Skellet - 1.8.5
Umbaska - 2.0
skRayFall - 1.9.10
skUtilities - 0.9.0

Troubleshooting:

Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it? None

EDIT: Found it:
set {item.%{_player}%::itemname} to {item.%{_player}%::itemname} without any NBT
 
Last edited:
Status
Not open for further replies.