Paste #127628: rabbid wolf

Date: 2024/10/30 03:43:19 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


rabbid_wolf:
    type: entity
    debug: true
    entity_type: wolf
    mechanisms:
        health_data: 18/18
        angry: true
        custom_name: Rabbid Wolf
        custom_name_visible: false

rabbid_wolf_actions:
    type: world
    debug: true
    events:
        on player kills rabbid_wolf chance:50:
        - random:
            - drop tongue_of_dog quantity:1 location:<context.entity.location>
            - drop bone quantity:<util.random.int[1].to[2]> location:<context.entity.location>
        on player damages rabbid_wolf:
        - foreach <player.location.find_entities[rabbid_wolf].within[20]> as:wolf_pack:
            - attack <[wolf_pack]> target:<context.player>
        on rabbid_wolf dies:
        - drop xp quantity:<util.random.int[4].to[7]> location:<context.entity.location>
        on rabbid_wolf steps on block chance:15:
        - ratelimit <context.entity> 15s
        - attack <context.entity> target:<context.entity.location.find.living_entities.within[10]>

wolf_spawn_variations:
    type: world
    debug: true
    events:
        on wolf spawns because natural chance:3:
        - spawn rabbid_wolf|rabbid_wolf|rabbid_wolf|rabbid_wolf location:<context.location>
        - foreach <context.entity.location.find_players_within[100]> as:prey:
            - playsound sound:entity_wolf_howl <[prey].location>