Jump to content

Betterer Flexer | Flex your items


Swayl

Recommended Posts

Betterer Flexer

A script that allows you to

show any of your items on chat.

By only typing "[item]". Flex your

best sword or set. It's a really useful

script and definitely not mine.

 

SCRIPT (25 lines)

on chat:
    if message contains "[item]":
        {chat} is not set
        player is not holding air
        cancel event
 
        set {_name} to name of tool ? type of tool
        set {_lore} to lore of tool
        replace all "||" with nl in {_lore}
        if {_lore} is "":
            set {_lore} to "&7No Lore"
        set {_enchantments::*} to enchantments of tool
        loop {_enchantments::*}:
            add 1 to {_n}
            set {_e::%{_n}%} to "%loop-value% %level of loop-value on tool%%nl%"
        set {_e2} to "%{_e::*}%"
        replace all ", " and " and " with "" in {_e2}
        if "%{_e2}%" is "<none>":
            set {_e2} to "No Enchantments"
        set {_tooltip} to "&e%amount of tool in player's inventory%x) &8| &7%{_name} ? type of tool%&r &8| &e(%type of tool%)%nl%&7%{_e2} ? ""No Enchantments""%%nl%&7%{_lore} ? ""No Lore""%"
        set {_weapon} to formatted "<tooltip:%{_tooltip}%>&a&l[ &f%amount of tool in player's inventory%x %name of tool ? type of tool% &a&l]&r"
 
        set chat format to ""
        replace all "[item]" in message with "%{_weapon}%"
        send formatted "&f%player%:  &7%message%" to all players

 

Things to know about me

• I have 2 years of skript experience

• I work on my servers all by myself
• I like being alone

• I have insane trust issues

• I simp for alot of people (trying my best not to)

• My mental age is somewhere 8

• I dont like meeting new people

• Very toxic

 

Discord Swayl#0099

MC IGN - Swayl

(I suggest avoiding me because I get too attached to people quick)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...