Jump to content
Sign in to follow this  
Swayl

Item Display | Flex your items on the chat

Recommended Posts

Item Display (Skript)

Be able to display your item on the chat

by typing [item]. If the tool does not have a lore

and no enchants, It'll say "No Enchants" and 
"No Lores". If it has an enchant, but does not have a lore..

It'll say the enchant but say "No Lore"... 
Stuff like those.

image.png.28360e2f1f4a23f9431e85e10b21c44f.png

 

Script (17 lines)

on chat:
    if message contains "[item]":
        cancel event
        player is not holding air
        set {_count} to amount of player's held item in player's inventory
        if player's tool is enchanted:
            if line 1 of lore of player's tool is set:
                replace all "[item]" in message with "&8[<tooltip:&e%tool's name ? type of tool% &8(&f%{_count}%x&8)%nl%&7%tool's enchantments%%nl%%tool's lore%>&f%{_count}%x %name of tool ? type of tool%&8]&7"
            else:
                replace all "[item]" in message with "&8[<tooltip:&e%tool's name ? type of tool% &8(&f%{_count}%x&8)%nl%%tool's enchantments%%nl%&7No Lores.>&f%{_count}%x %name of tool ? type of tool%&8]&7"
        if player's tool is not enchanted:
            if line 1 of lore of player's tool is set:
                replace all "[item]" in message with "&8[<tooltip:&e%tool's name ? type of tool% &8(&f%{_count}%x&8)%nl%&7No Enchantments.%nl%%tool's lore%>&f%{_count}%x %name of tool ? type of tool%&8]&7"
            else:
                replace all "[item]" in message with "&8[<tooltip:&e%tool's name ? type of tool% &8(&f%{_count}%x&8)%nl%&7No Enchantments.%nl%&7No Lores.>&f%{_count}%x %name of tool ? type of tool%&8]&7"
        replace all "||" with "%nl%" in message

        send "%player's displayname%&f: &7%message%" to all players

 

  • Like 2

  • Been "Skripting" for half a year now
  • Whale type 
  • Doesn't like Idle Servers (But made one)
  • Doesn't like Mining-PvP servers (But made one)
  • Likes MrScopes lol

 

I make original memes about minehut too.

Capture.png.5a3e6c2c283f3e0ee17860d8704f25f6.png

 

  • Discord Swayl#4299
  • MC IGN - Swayl

Share this post


Link to post
Share on other sites

this doesn't work for me, any addons I need installed?


ex-minehut staff member

also known as offered / tradings / mask

 rsz_convicts.png

Convicts (Release: 6/14/19)

Share this post


Link to post
Share on other sites
On 7/18/2019 at 7:25 PM, ProfCube said:

Just in case here is the error im getting probably same with others.
image.png.b1bd8d8ff1d406df4769dc15216ddc0c.png

thats a forums bug, remove the last character 


Discord: MrScopes#5548

Share this post


Link to post
Share on other sites
On 12/14/2019 at 2:25 PM, DuhLupusor said:

doesnt work, tooltip doesnt work..

 

Tooltip broke because of some update.


  • Been "Skripting" for half a year now
  • Whale type 
  • Doesn't like Idle Servers (But made one)
  • Doesn't like Mining-PvP servers (But made one)
  • Likes MrScopes lol

 

I make original memes about minehut too.

Capture.png.5a3e6c2c283f3e0ee17860d8704f25f6.png

 

  • Discord Swayl#4299
  • MC IGN - Swayl

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  



×
×
  • Create New...