Date: 2020/10/13 18:15:07 UTC-07:00
Type: Denizen Script
Entity_Food_Script:
type: world
debug: false
events:
on delta time secondly every:5:
- define data <script[Entity_Food_Data]>
- define world_animals <world[world].entities[<[data].data_key[entities]>]||null>
- if <[world_animals]> != null:
- foreach <[world_animals]> as:animal:
- if !<[animal].is_spawned> || !<[animal].location.chunk.is_loaded>:
- stop
- define blocks <[animal].location.find.surface_blocks[HAY_BLOCK].within[<[data].data_key[block_limit]>]||null>