#RandomKit's Skript
1 messages · Page 1 of 1 (latest)
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
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
would you be willing to add that with my skript?
cause im not really sure where it's supposed to go
I only got into skripting yesterday. And somehow made that skript
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
also for the 1 of lava bucket should I do it for all?
yes
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
?
1 of netherite chestplate, 1 of diamond helmet, ...
I added the of
now how do i implement this?
its pretty much that
give player 1 of diamond helmet -> set player's helemet to 1 of diamond helmet
again my stupid brain can't understand
so instead of giving the player the item?
aka diamond helmet
make the helmet go onto the players head
yes, by setting the player's helemet
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
yes, thats how you are referring to the player in the function
the first one needs to be an if, not an else if
else if ...:
else if ...:```
and i think you can figure out the indentation error