Jump to content

Formatting multiple slots at once


MezzaDev

Recommended Posts

Hi.

I would like to be able to create a border for my gui without having to repeat the same line multiple times for each slot.

I am sure there is a simple way to do this, but i have forgotten.

 

 

format slot 0 of player with black stained glass pane named "&r" to be unstealable
format slot 1 of player with black stained glass pane named "&r" to be unstealable
format slot 2 of player with black stained glass pane named "&r" to be unstealable
format slot 3 of player with black stained glass pane named "&r" to be unstealable
format slot 4 of player with black stained glass pane named "&r" to be unstealable
format slot 5 of player with black stained glass pane named "&r" to be unstealable
format slot 6 of player with black stained glass pane named "&r" to be unstealable
format slot 7 of player with black stained glass pane named "&r" to be unstealable
format slot 8 of player with black stained glass pane named "&r" to be unstealable

One solution i tried was putting multiple slot numbers separated by commas (,) but that did not work.

I haven't been able to find the solution anywhere else on any forum or the docs.

Thanks for any help

 

Link to comment
Share on other sites

I'll help but I hate this skript already
 

set {_slots::*} to integers from 0 to 8
format slot {_slots::*} of player with black stained glass pane named "&r" to be unstealable

if that doesn't work then try this

format slot 0,1,2,3,4,5,6,7 and 8 of player with black stained glass pane named "&r" to be unstealable

 

I'm a guy yes but I am also human just like any female so why do you believe it's so wrong to cry too?

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