Solved Loops multiple players & doubles the drops...

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

IcyCappuccino

New Member
Sep 25, 2022
5
0
1
I need help... I'm trying to make generators and if there are multiple player's around the generator it spawns multiple items (papers)
Is there any way to fix it? I don't think it's that hard but I can't think of anything to fix that at the moment


every 5 second:
loop all players:
loop all blocks in radius 25 around loop-player:
if loop-block is white stained glass:
if {generators::*} contain loop-block's location:
drop 1 paper named "&a$&f1" above loop-block
 
why don't you just loop the list and drop the paper ?

all of these 3 loops would cause lag + it wouldn't work