Project MMO

Project MMO

10M Downloads

mob_modifier doesn't work.

Silvertide7 opened this issue ยท 0 comments

commented

Describe the bug
When setting mob_modifier in a biome or dimension it does nothing to the mob.

Expected behavior
The mob's attributes are modified

To Reproduce
Steps to reproduce the behavior:

Add this to overworld.json in the dimensions folder.

{
    "vein_blacklist": [
        "minecraft:bedrock"
    ],
    "mob_modifier": {
        "minecraft:zombie": {
            "minecraft:generic.movement_speed": 0.05,
            "minecraft:generic.max_health": 20.0,
            "minecraft:generic.attack_damage": 2.0
        }
    },
    "override": true
}

Go in game and test zombies. They have the same damage, speed, and health as normal. Here is the entity data output for one:

Zombie has the following entity data: 
{
   "Brain":{
      "memories":{
         
      }
   },
   "HurtByTimestamp":0,
   "IsBaby":0b,
   "Attributes":[
      {
         "Base":0.08d,
         "Name":"forge:entity_gravity"
      },
      {
         "Base":0.23000000417232513d,
         "Name":"minecraft:generic.movement_speed"
      },
      {
         "Base":0.0d,
         "Name":"forge:step_height_addition"
      },
      {
         "Base":0.0d,
         "Modifiers":[
            {
               "Amount":0.036328399772650746d,
               "Operation":0,
               "UUID":[
                  I; 95654540,
                  -704557750,
                  -1857264533,
                  -2078012350
               ],
               "Name":"Random spawn bonus"
            }
         ],
         "Name":"minecraft:generic.knockback_resistance"
      },
      {
         "Base":0.021123471166878783d,
         "Name":"minecraft:zombie.spawn_reinforcements"
      },
      {
         "Base":35.0d,
         "Modifiers":[
            {
               "Amount":-0.009250890921650361d,
               "Operation":1,
               "UUID":[
                  I; 139978192,
                  342836829,
                  -1617895242,
                  418782919
               ],
               "Name":"Random spawn bonus"
            }
         ],
         "Name":"minecraft:generic.follow_range"
      }
   ],
   "Invulnerable":0b,
   "FallFlying":0b,
   "PortalCooldown":0,
   "AbsorptionAmount":0.0f,
   "InWaterTime":-1,
   "FallDistance":0.0f,
   "CanUpdate":1b,
   "DeathTime":0s,
   "ForgeCaps":{
      "curios:inventory":{
         "Curios":[
            
         ]
      }
   },
   "HandDropChances":[
      0.085f,
      0.085f
   ],
   "PersistenceRequired":0b,
   "UUID":[
      I; 945623448,
      -190495613,
      -1366975327,
      1300442966
   ],
   "BalmData":{
      
   },
   "Motion":[
      -0.01081461682933069d,
      -0.0784000015258789d,
      -0.041117148052891093d
   ],
   "Health":20.0f,
   "LeftHanded":0b,
   "Air":300s,
   "OnGround":1b,
   "Rotation":[
      175.31584f,
      0.0f
   ],
   "HandItems":[],
   "ArmorDropChances":[
      0.085f,
      0.085f,
      0.085f,
      0.085f
   ],
   "Pos":[
      -28.446895493164362d,
      104.0d,
      -100.68545495849459d
   ],
   "CanBreakDoors":0b,
   "Fire":-1s,
   "ArmorItems":[],
   "CanPickUpLoot":0b,
   "HurtTime":0s,
   "forge:spawn_type":"NATURAL",
   "DrownedConversionTime":-1
}

Versions:

  • Minecraft: 1.20.1
  • Loader: 47.1.43
  • PMMO: 1.20.1-1.2.6