Help with loop-value

  • 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 comminuty!

    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.

BenzyMATE

New Member
Feb 8, 2019
8
0
0
24
Code:
loop {BP::INSIDE::%player's uuid%::*}:
    if loop-value is gold block:
        add amount of loop-value to {_bpGoldBlockCount}

"There is not an amount in loop-value use "exists" if you want to find if the loop-value has a number.
This works in skript dev 37 but not new versions of skript
No idea what this error is.
Skript Version: 2.3.5

Did try
Code:
set {_bpGoldBlockCount} to amount of gold block in {BP::INSIDE::%player%::*}
Gave no errors but dont recognise the gold block in the variable.
 
Last edited:
Use item amount instead of amount, amount is about the size of a list
 
Status
Not open for further replies.