1.16.5 Hostile Targeting
nahkriinahziid opened this issue · 4 comments
I cannot change the level of targeting mobs have when players are morphed into hostile mobs. I want to enable flying and make sure players get attacked while morphed
It's literally the second listed config in what you posted. 😅
Add "traitHostile" to the array, and morph won't use the hostile trait for mobs when you morph into them
Here is my server morph.toml maybe I'm missing something
`
[morph]
#Set the morph entity instance to silent, this disables ambient noise and any sound the morph makes.
silentMorphs = false
#ID of traits you want to disable.
disabledTraits = []
#Time (in ticks) for a morph to complete.
#Range: > 1
morphTime = 100
#Morph normally only recalculates size when it has to. This makes Morph recalculate the player size every tick whilst morphed.
aggressiveSizeRecalculation = false
#Which attributes are supported by more, and how are values better. Format: ;<more/less>;[cap]. EG: "minecraft:generic.attack_damage;more" or "minecraft:generic.max_health;more;20".
supportedAttributes = ["minecraft:generic.max_health;more;20", "minecraft:generic.knockback_resistance;more", "minecraft:generic.movement_speed;more;0.1", "minecraft:generic.attack_damage;more", "minecraft:generic.attack_knockback;more", "minecraft:generic.attack_speed;more", "minecraft:generic.armor;more", "minecraft:generic.luck;more", "minecraft:horse.jump_strength;more", "forge:swim_speed;more", "forge:reach_distance;more"]
[biomass]
#Enable the Biomass ability without requiring the advancement to unlock it?
biomassBypassAdvancement = false
#How much of the entity volume is considered their mass.
#Range: 0.0 ~ 1.7976931348623157E308
biomassValue = 0.3
#These options affect the gameplay while using the mod.
[gameplay]
#The mode the mod runs in. Accepts CLASSIC, COMMAND_ONLY, DISGUISE.
#
#CLASSIC: Old Morph as we know and love: Kill a mob, acquire it.
#COMMAND_ONLY: Players can only acquire morphs or morph when the /morph command is used by ops.
#DISGUISE: Killing a mob morphs you into the mob you just killed.
#DEFAULT: Disabled until it has been finished.
#Allowed Values: DEFAULT, CLASSIC, COMMAND_ONLY, DISGUISE
morphMode = "CLASSIC"
#The Biomass Skin is meant to show during invisibility. Turning this off disables that.
biomassSkinWhilstInvisible = true
#Resource Location name for Mob types you cannot acquire biomass or morphs from. Uses Regex matching.
disabledMobs = ["minecraft:armor_stand"]
[morphMode]
#Upgrades traits to the highest upgrade available for the morph. This, for example, will convert the bat's flapping flight ability to creative-mode flight ability.
classicUpgradeTraits = false
#Allows the selector to be used in COMMAND_ONLY mode. This lets the player morph freely from morphs that have been given to them.
commandAllowSelector = false
[playerFilter]
#Toggle between an allow-list or deny-list for biomass.
#Allowed Values: ALLOW, DENY
biomassFilterType = "DENY"
#Name of players in the filter list.
selectorFilterNames = []
#Toggle between an allow-list or deny-list for morphing.
#Allowed Values: ALLOW, DENY
morphFilterType = "DENY"
#Toggle between an allow-list or deny-list for the morph selector.
#Allowed Values: ALLOW, DENY
selectorFilterType = "DENY"
#Name of players in the filter list.
biomassFilterNames = []
#Name of players in the filter list.
morphFilterNames = []
`
To make sure hostiles attack you when you're morphed into a hostile mob. I removed this line of text from every individual config file for each mob. { "type": "traitHostile" },
It was very tedious and not ideal but now mobs attack no matter what you're morphed into. If you'd like I can upload all my mob config files.