cancel event
set {_tag} to text component from formatted "%player's prefix%%player% %{tag::%uuid of player%}%: "
set click event of {_tag} to a new click event to suggest command "/msg %player% "
set hover event of {_tag} to a new hover event showing "&bClick to message %player%"
set {_msg} to message
send component (merge components {_tag} and {_msg}) to all players and console
function tag_gui(p: player):
set {_gui} to chest inventory with 6 rows named "Tags"
set slot (integers between 0 and 54) of {_gui} to gray stained glass pane named "&c" without tooltip
set slot 0 of {_gui} to air
set slot 10 of {_gui} to name tag named "&cTag 1" with lore "&aRight click to use!"
set slot 11 of {_gui} to name tag named "&1Tag 2" with lore "&aRight click to use!"
open {_gui} to {_p}
set metadata value "tag_gui" of {_P} to {_P}'s current inventory
on inventory click:
event-inventory is metadata value "tag_gui" of player
cancel event
event-inventory is not player's inventory
if clicked slot is 10:
set {tag::%uuid of player%} to "&cTag1"
send "&aTag1 Success"
else if clicked slot is 11:
set {tag::%uuid of player%} to "&1Tag2"
send "&aTag2 Success"
on inventory close:
event-inventory is metadata value "tag_gui" of player
delete metadata value "tag_gui" of {_P}
command /tags:
trigger:
tag_gui(player)```
i want to add when you put `[*command*]` in the chat it will turn yellow and when you click on that it suggests the command in chat. Also when you do [i] it will show the item in chat. and shows your inventory with [inv] and enderchest with [ec] if possible :)
i only need the ideas on how to make this. i got no clue
#Chat formatting
1 messages · Page 1 of 1 (latest)
not really skript related
but try using the plugin InteractiveChat
i also tried dooing the [i] thing with skript and its very difficult to format it properly
i think they also have the command thing too
i'll check that out! Thanks!
edit: It doesnt work
Shane bee skript snippets show how to do this
[i] for item is definitely possible (ShaneBee has a snippet for this on his repo: https://www.github.com/ShaneBeee/SkriptSnippets)
using [inv] and [ec] for showing an inventory will be a bit more difficult, and not sure if possible
the command one is possible too
Hm not really
they want to show an inventory through chat using a hover event, which is don't believe is possible. by clicking on it to open a new inventory, now that is possible