I need some help getting this to work

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

Samwej

New Member
Sep 2, 2021
8
0
1
if event-inventory = (metadata tag "zombie" of player):
if index of event-slot is 1:
add "gold_boots" to {boss.boots}
open (metadata tag "enchantments" of player) to player
if index of event-slot is 2:
add "iron_boots" to {boss.boots}
open (metadata tag "enchantments" of player) to player
if index of event-slot is 3:
add "diamond_boots" to {boss.boots}
open (metadata tag "enchantments" of player) to player
if index of event-slot is 4:
add "netherite_boots" to {boss.boots}
open (metadata tag "enchantments" of player) to player

i need to set {boss.boots} to a text then display it here

set slot 13 of metadata tag "conf" of player to book named "INFORMATION" with lore ":%{boss.boots}%: , PROT LEVEL:%{prot.level}%: , THORNS LEVEL:%{thorns.level}%: , FEATHER FALLING LEVEL:%{falling.level}%"

Can anyone help me please?
 
if event-inventory = (metadata tag "zombie" of player):
if index of event-slot is 1:
add "gold_boots" to {boss.boots}
open (metadata tag "enchantments" of player) to player
if index of event-slot is 2:
add "iron_boots" to {boss.boots}
open (metadata tag "enchantments" of player) to player
if index of event-slot is 3:
add "diamond_boots" to {boss.boots}
open (metadata tag "enchantments" of player) to player
if index of event-slot is 4:
add "netherite_boots" to {boss.boots}
open (metadata tag "enchantments" of player) to player

i need to set {boss.boots} to a text then display it here

set slot 13 of metadata tag "conf" of player to book named "INFORMATION" with lore ":%{boss.boots}%: , PROT LEVEL:%{prot.level}%: , THORNS LEVEL:%{thorns.level}%: , FEATHER FALLING LEVEL:%{falling.level}%"

Can anyone help me please?
Can you please format the code?
Also, {boss.boots} needs to be a list
 
Status
Not open for further replies.