Paste #127910: Unnamed Denizen Script Paste

Date: 2024/11/09 05:31:29 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


geschlecht_tiere:
    type: world
    events:
        on cow|sheep|chicken|rabbit|horse|wolf|donkey|fox|goat|mule|polar_bear|pig spawns:
        - narrate "<context.entity> ist gespawnt!" targets:<server.online_players>
        - define tier <context.entity>
        - random:
            - flag <[tier]> mannlich:++
            - flag <[tier]> weiblich:++
        on player right clicks entity:
        - ratelimit <player> 10t
        - if <context.entity.has_flag[mannlich]>:
            - narrate "<&6>Gemmeria - LW <&8>| <&7>Dieses Tier ist männlich."
        - if <context.entity.has_flag[weiblich]>:
            - narrate "<&6>Gemmeria - LW <&8>| <&7>Dieses Tier ist weiblich."
        on entity breeds:
        - if <context.item> == futter:
            - stop
        - determine cancelled passively
        - define tier <context.child>
        - if <context.mother.has_flag[weiblich]> && <context.father.has_flag[mannlich]>:
            - spawn <[tier]> <context.mother.location>
        - if <context.mother.has_flag[mannlich]> && <context.father.has_flag[weiblich]>:
            - spawn <[tier]> <context.mother.location>