Paste #68090: Untitled Paste

Date: 2020/04/26 07:38:53 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


#===================================================================#
#=========================== |Evenement| ===========================#
#===================================================================#
caughtAMonster:
    type: world
    events:
        on player fishes while CAUGHT_FISH:
        - if <util.random.int[0].to[100]> <= 5 :
          - random :
            - spawn <player.location> fish_monster_1 persistent
            - spawn <player.location> fish_monster_2 persistent
            - spawn <player.location> fish_monster_3 persistent
            - spawn <player.location> fish_monster_4 persistent
        on fish_monster_1 dies:
          - determine NO_DROPS
        on fish_monster_2 dies:
          - determine NO_DROPS
        on fish_monster_3 dies:
          - determine NO_DROPS
        on fish_monster_4 dies:
          - determine NO_DROPS
        on player kills fish_monster_1:
          - narrate "<&3>Vous avez tué la créature des rivières"
        on player kills fish_monster_2:
          - narrate "<&3>Vous avez tué la créature des lacs"
        on player kills fish_monster_3:
          - narrate "<&3>Vous avez tué la créature des mers"
        on player kills fish_monster_4:
          - narrate "<&3>Vous avez tué la créature des océans"

#====================================================================#
#========================= |Liste des Mobs| =========================#
#====================================================================#

# Tiers 1
fish_monster_1:
    type: entity
    debug: false
    entity_type: GUARDIAN
    custom_name: <&1>créature des rivières
    health_data: 30/30
    has_ai: true
    max_no_damage_duration: 0t

# Tiers 2
fish_monster_2:
    type: entity
    debug: false
    entity_type: GUARDIAN
    custom_name: <&1>créature des lacs
    health_data: 60/60
    has_ai: true
    max_no_damage_duration: 3t

# Tiers 3
fish_monster_3:
    type: entity
    debug: false
    entity_type: GUARDIAN
    custom_name: <&1>créature des mers
    health_data: 100/100
    has_ai: true
    max_no_damage_duration: 7t

# Tiers 4
fish_monster_4:
    type: entity
    debug: false
    entity_type: GUARDIAN
    custom_name: <&1>créature des océans
    health_data: 150/150
    has_ai: true
    max_no_damage_duration: 10t