Jump to content

Remove the lore on a weapon or tool (skript)


NoutLost_

Recommended Posts

3 hours ago, NoutLost_ said:

Hey, so i was wondering i made a gui and i their is a golden shovel with my own lore.
But it shows how much atack damage it does + attack speed. is their a way to remove this?

Yes! You need the plugin SkBee by ShaneBee, and this adds the use of nbt data to skript.

Then, you need to add onto your item by saying:

#not tested but should work

set {_guiItem} to golden shovel named "example" with lore "line" and "line 2" and "line (3)"
add "{HideFlags:1}" to nbt of {_guiItem}

 

Main MC account: Gam3rBoi (VIP in MH)

Alt MC account: *Gam3rBoi2147

Farcade server owner

Skripter with 6+ months experience + time learning coding concepts

Message me through the forums if you need anything!

Link to comment
Share on other sites

16 hours ago, Gam3rBoi said:

Yes! You need the plugin SkBee by ShaneBee, and this adds the use of nbt data to skript.

Then, you need to add onto your item by saying:

#not tested but should work

set {_guiItem} to golden shovel named "example" with lore "line" and "line 2" and "line (3)"
add "{HideFlags:1}" to nbt of {_guiItem}

 

I doesn't work?? like shoudn't you add like a slot too??

Link to comment
Share on other sites

10 minutes ago, NoutLost_ said:

I doesn't work?? like shoudn't you add like a slot too??

This is what you put into the lines of the gui, not the actual code done for you. Here is an example:

command /testgui:
	permission: op
	trigger:
		set {_gui} to a new chest inventory with 1 row named "Test"
		
		#Here is gui item
		set {_guiItem} to golden shovel named "example" with lore "line" and "line 2" and "line (3)"
		add "{HideFlags:1}" to nbt of {_guiItem}
		
		#Here is setting slots
		set slot 4 of {_gui} to {_guiItem}

 

  • Thanks 1

Main MC account: Gam3rBoi (VIP in MH)

Alt MC account: *Gam3rBoi2147

Farcade server owner

Skripter with 6+ months experience + time learning coding concepts

Message me through the forums if you need anything!

Link to comment
Share on other sites

2 hours ago, NoutLost_ said:

i solved it myself (but i could do it without you bc i didn know what to search for:
"        set slot 13 of {_gui} to golden shovel named "&e&l/claimkit" with lore "&7This will give you all tools to claim a land" with nbt "{HideFlags:63}""

Great!

Main MC account: Gam3rBoi (VIP in MH)

Alt MC account: *Gam3rBoi2147

Farcade server owner

Skripter with 6+ months experience + time learning coding concepts

Message me through the forums if you need anything!

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