Skript loop variable

  • Welcome to skUnity!

    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 community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

SUN

Member
Feb 1, 2022
1
0
1
It doesn't work (im not good at english)

command /minion:
trigger:
if player is op:
give 1 oak fence named "&b철 미니언" with lore "&b능력 : 아무 빈 공간에 설치하면 1분에 1개의 철을 생산합니다" to player
message "&a철 미니언을 받았습니다"

on place of oak fence:
set {%event-block's location%.iron} to player
set {minion::*} to player
every 1 seconds:
loop all blocks:
if loop-value is oak fence:
add 1 to {ironcount::loop-value::%player%}
send "&aMinion work! iron count : %{ironcount::loop-value::%player%}%" to {minion::*}
on break of oak fence:
delete {ironcount::*}

on craft of oak fence:
cancel event
message "&cYou can not craft this item!"

on right click on oak fence:
if player contain {minion::*}:
loop {ironcount::*::*}:
give {ironcount::loop-value::%player%} of iron ingot to player

send "&aYou got %{ironcount::loop-value::%player%}% iron!"
delete {ironcount::loop-value::%player%}
 
Status
Not open for further replies.