- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleUntitled Paste
TypeDenizen Script
Date2020/10/13 18:15:07 UTC-07:00
ByGuest
Other
Paste
1
2
3
4
5
6
7
8
9
10
11
12
13
1300
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>



RawRaw



Pastes made: 78061