Thank You I put this in my skript and it worked. At first I got a error because you forgot the : at the end of loop {minigame.arenaname.breaklocations::*} but I found what the error was and fixed it so now it works. I know I am asking a lot but this is the last thing. But I am trying to set up a kit maker that will let you make kits in game you will be able to make up to 3 kits and it just won't work. This is my code.
if arg 1 is "kit":
if arg 2 is "create":
loop all items in player's inventory:
add loop-item to {sf.%arg 3%::%player%::*}
if {sf.kit.1.%player%} is arg 3:
if {sf.kit.2.%player%} is arg 3:
if {sf.kit.3.%player%} is not arg 3:
set {sf.kit.3.%player%} to arg 3
if {sf.kit.2.%player%} is not arg 3:
set {sf.kit.2.%player%} to arg 3
if {sf.kit.1.%player%} is not arg 3:
set {sf.kit.1.%player%} to arg 3
message "{@logo}&bKit %arg 3% &bmade!"
if arg 2 is "use":
wait 1 tick
clear the player's inventory
loop {sf.%arg 3%::%player%::*}:
add loop-value to the player's inventory
give player nether star named "&4Kits"
if arg 2 is "delete":
delete {sf.%arg 3%.%player%::*}
message "{@logo}&bYou deleted %arg 3%!"
on rightclick holding nether star:
if {sf.join::%player%} is true:
open chest with 3 rows named "&4Kits" to player
wait 1 tick
format slot 0 of player with dirt named "%{sf.kit.1.%player%}%" to close then run [make player execute command "/sf kit use %{sf.kit.1.%player%}%"]
format slot 1 of player with cobble named "%{sf.kit.2.%player%}%" to close then run [make player execute command "/sf kit use %{sf.kit.2.%player%}%"]
format slot 2 of player with iron ore named "%{sf.kit.3.%player%}%" to close then run [make player execute command "/sf kit use %{sf.kit.3.%player%}%"]
[doublepost=1491670692,1491670086][/doublepost]
code_language.skript:
if arg 1 is "kit":
if arg 2 is "create":
loop all items in player's inventory:
add loop-item to {sf.%arg 3%::%player%::*}
if {sf.kit.1.%player%} is arg 3:
if {sf.kit.2.%player%} is arg 3:
if {sf.kit.3.%player%} is not arg 3:
set {sf.kit.3.%player%} to arg 3
if {sf.kit.2.%player%} is not arg 3:
set {sf.kit.2.%player%} to arg 3
if {sf.kit.1.%player%} is not arg 3:
set {sf.kit.1.%player%} to arg 3
message "{@logo}&bKit %arg 3% &bmade!"
if arg 2 is "use":
wait 1 tick
clear the player's inventory
loop {sf.%arg 3%::%player%::*}:
add loop-value to the player's inventory
give player nether star named "&4Kits"
if arg 2 is "delete":
delete {sf.%arg 3%.%player%::*}
message "{@logo}&bYou deleted %arg 3%!"
on rightclick holding nether star:
if {sf.join::%player%} is true:
open chest with 3 rows named "&4Kits" to player
wait 1 tick
format slot 0 of player with dirt named "%{sf.kit.1.%player%}%" to close then run [make player execute command "/sf kit use %{sf.kit.1.%player%}%"]
format slot 1 of player with cobble named "%{sf.kit.2.%player%}%" to close then run [make player execute command "/sf kit use %{sf.kit.2.%player%}%"]
format slot 2 of player with iron ore named "%{sf.kit.3.%player%}%" to close then run [make player execute command "/sf kit use %{sf.kit.3.%player%}%"]