IneedY Posted November 25, 2020 Share Posted November 25, 2020 i have a gen skript and when one player its around, drops 1 coal, if its around 2 players, drops 2 coals i need to drop only 1 coal! every 3 seconds in "main": loop all players: loop all blocks in radius 5 around loop-player: if loop-block is coal block: drop 1 coal at loop-block's position Link to comment Share on other sites More sharing options...
_Tarna_ Posted November 25, 2020 Share Posted November 25, 2020 It would be easier to use list variables with locations in them. Every time you place a gen, add it's location to a list variable. Then every 3 seconds, loop the list variable and drop what ever you want above the loop-value. Then when someone breaks a gen, remove its location from the list variable. Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Support - 7/8/20 | 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - now Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now