Closed NewbulaCo closed 1 year ago
I am unable to reproduce this error. I suspect there is some configuration for zombies or weapons that is being overlooked. XP awarded from damaging entities can come from the entity itself, the item held while the damage is dealt, and the projectile which deals the damage. With the projectile, if it is a member of the "pmmo:ranged" damage type tag or the nested "minecraft:is_projectile" tag, then the projectile entity is factored in, otherwise it defaults to the player's configuration.
Describe the bug After turning both Auto XP values off, and removing default XP rewards for
DEAL_MELEE_DAMAGE
andDEAL_RANGED_DAMAGE
in thepmmo-server.toml
config, every mob (modded or otherwise) will respect the config and not give any XP, except zombie-type entities. This includes: zombies, zombie villagers, husks, drowneds.I also attempted to override the XP reward value in the form of datapack with no results. This will work for any other mob, however.
datapack/data/minecraft/pmmo/entities/zombie.json
{"override":true, "xp_values":{ "RANGED_TO_MOBS": { "archery": 0 }
I noticed this because I was trying to add values for
gunslinging
for Crayfish Gun Mod projectiles, which seemed to work fine except for zombies. Whenever I would shoot they they also gavearchery
reward xp despite me turning offarchery
completely in the configs.Expected behavior Zombie-type mobs should respect the XP configs or datapacks.
To Reproduce Steps to reproduce the behavior:
Generate a world and log out of it.
In world config, change auto values to
false
and change this line inpmmo-server.toml
Go in the world, and attempt to attack or shoot mobs. Every mob besides zombie-type mobs will not generate reward XP.
Screenshots
Versions: