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 comminuty!
Now, what are you waiting for? Join the community now!
You can always check out skUnity Downloads for downloads and any other information about Skript!
Minecraft 1.12.1
skript dev32d (lastest)
command /test:
trigger:
set {_item} to 3 bread
set amount of {_item} to 2
send "%amount of {_item}%"
It sended 3,but not 2.
I want to give player {amount} bread.Just out of curiosity, what are you trying to accomplish here?
Why not just set the original item to 2 bread if you are wanting it to send 2 bread?
Im really not sure what you are trying to accomplish here.It don't work.code_language.skript:set {_num} to 5 set {_x} to {_num} of anything named "test" if player has {_x}: send "yes"
It work.code_language.skript:set {_x} to 5 of anything named "test" if player has {_x}: send "yes"
I am very sorry about it.Im really not sure what you are trying to accomplish here.
First you said you wanted to give players an item (bread)
So I gave you the simplest of simple codes I think everyone knows, and that would do EXACTLY what you want to do.
But after that, now you are posting some other bunch of code referring to if a player has # of ITEM and it will send yes?
If you require further help, in my opinion you really need to post more of what you are working on or what you are trying to accomplish, because I feel like the help I gave you was being ignored, and you started writing something totally different than your original posting was saying to us.
Options:
item: test
command /quest:
trigger:
loop all players:
set {_amount::%loop-player%} to 0
loop all items in loop-player's inventory:
if loop-item's name is "{@item}":
add amount of item loop-item to {_amount::%loop-player%}
send "%loop-player% has %{_amount::%loop-player%}% of {@item}" to player