Evade ranged weapons and rush target
This commit is contained in:
1 parent
dbd2831dda
commit
0722924263
10 files changed
+474
-14
No files matched your search
@@ -75,3 +75,26 @@ NON_MOB_ENTITY_IDS = {
|
||||
for name in NON_MOB_ENTITY_NAMES
|
||||
if 'minecraft:' + name in MOBS
|
||||
}
|
||||
|
||||
# Entities known to use ranged attacks even when the equipment packet is not
|
||||
# available yet or the attack is innate rather than item-based.
|
||||
RANGED_ATTACKER_NAMES = {
|
||||
'blaze', 'bogged', 'breeze', 'elder_guardian', 'evoker', 'ghast',
|
||||
'guardian', 'illusioner', 'pillager', 'shulker', 'skeleton', 'stray',
|
||||
'wither', 'witch', 'warden',
|
||||
}
|
||||
RANGED_ATTACKER_IDS = {
|
||||
MOBS['minecraft:' + name]['protocol_id']
|
||||
for name in RANGED_ATTACKER_NAMES if 'minecraft:' + name in MOBS
|
||||
}
|
||||
|
||||
RANGED_PROJECTILE_NAMES = {
|
||||
'arrow', 'dragon_fireball', 'fireball', 'firework_rocket', 'llama_spit',
|
||||
'shulker_bullet', 'small_fireball', 'snowball', 'spectral_arrow',
|
||||
'trident', 'wind_charge',
|
||||
'wither_skull',
|
||||
}
|
||||
RANGED_PROJECTILE_IDS = {
|
||||
MOBS['minecraft:' + name]['protocol_id']
|
||||
for name in RANGED_PROJECTILE_NAMES if 'minecraft:' + name in MOBS
|
||||
}
|
||||
Reference in new issue
Block a user