Skip to content
This repository has been archived by the owner on May 6, 2018. It is now read-only.

loop blocks/entities in chunks #336

Closed
zmolahah opened this issue May 1, 2014 · 3 comments
Closed

loop blocks/entities in chunks #336

zmolahah opened this issue May 1, 2014 · 3 comments
Labels

Comments

@zmolahah
Copy link

zmolahah commented May 1, 2014

Not found a way to do this. The ability to loop blocks/entities in a chunk

example 1:
loop blocks in chunk at location of player:
y coord of loop-block is greater than 49
set loop-block to bedrock
y coord of loop-block is greater than 50
set loop-block to air

example 2:
loop entities in chunk at location of player:
loop-entity is creeper
kill loop-entity

@zmolahah zmolahah changed the title loop blocks in chunks loop blocks/entities in chunks May 1, 2014
@ismooch
Copy link

ismooch commented May 1, 2014

example 2:
loop entities in radius 16 of player:
chunk at location of loop-entity is chunk at location of player
loop-entity is creeper
kill loop-entity

@zmolahah
Copy link
Author

zmolahah commented May 1, 2014

Was already using that method previously. You can do the same method with the looping of blocks but it's not as good as looping the chunk.

Reason 1:
Does not loop everything you want unless you increase the radius by a large amount

Reason 2:
Will check for blocks/entities not even in the chunk which is just unnecessary

@joeuguce99
Copy link
Collaborator

Skript Plus already adds that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants