#RandomKit's Skript

1 messages · Page 1 of 1 (latest)

cobalt galleon
#

I was wondering if anyone know's how to make this skript, do the same/similar things however the armor gets equipped

#

when respawning

#

instead of it just going into your hotbar

vital moat
#

set %player%'s helmet|chestplate|leggings|boots| to ...
also, you should really use else ifs there, and its %quantity% of %itemtype%, so 1 lava bucket -> 1 of lava bucket

cobalt galleon
#

I only got into skripting yesterday. And somehow made that skript

vital moat
#

Just change all the if statements from if {_random} = ... to else if {_random} = ...

#

(other than the first 1)

#

and add the word "of" before each item you give

cobalt galleon
#

ok so lemme do this rq

#

and check with you

#

and see if it's correct

cobalt galleon
vital moat
#

yes

cobalt galleon
#

ok

#

else if {_random} = 1:
give {_p} 1 netherite chestplate of protection 1
give {_p} 1 diamond helmet of protection 1
give {_p} 1 iron leggings of protection 1
give {_p} 1 diamond boots of protection 1
give {_p} 1 iron sword of efficiency 1
give {_p} 16 bread
give {_p} 1 shield
give {_p} 1 iron pickaxe of efficiency 1
give {_p} 1 bow of power 2
give {_p} 16 arrow
give {_p} 1 water bucket
give {_p} 32 oak planks
give {_p} 1 lava bucket

#

etc

#

?

vital moat
cobalt galleon
#

I added the of

cobalt galleon
vital moat
#

its pretty much that
give player 1 of diamond helmet -> set player's helemet to 1 of diamond helmet

cobalt galleon
#

so instead of giving the player the item?

#

aka diamond helmet

#

make the helmet go onto the players head

vital moat
#

yes, by setting the player's helemet

cobalt galleon
#

like instead of putting it into there hotbar

#

it equips it for them

#

ok

#

do i still need the {_p}?

#

also, another question. would I be able to do "set player's offhand to 1 of totem of undying"?

#

would that work

#

and the same for shield

vital moat
vital moat
#

i think its player's offhand tool though

cobalt galleon
#

oh

#

also

#

when I did it

#

but for all the lines I set that for

vital moat
#

and i think you can figure out the indentation error

cobalt galleon
#

I did the if part

#

and then you said do else if