How do I change hit box of mobs?

Started by Dexterminator on

Topic category: Help with modding (Java Edition)

Last seen on 17:55, 26. Aug 2018
Joined Dec 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I change hit box of mobs?

So I made a mod that add new mob: little earthworm, but it have same hitbox as player and it doesn't even fit in 1x1x1 space. How I make the hitbox smaller? Any help?

Last seen on 06:51, 29. Aug 2018
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Look this up before you post…
Sun, 08/26/2018 - 21:16

Look this up before you post about it, you can find out how here https://mcreator.net/forum/33841/move-or-enlarge-hitbox-mob

Also, this is what the constructor looks like

public Entitytest(World var1) {
            super(var1);
            world = var1;
            experienceValue = 5;
            this.isImmuneToFire = false;
            addRandomArmor();
            setNoAI(!true);
            this.tasks.addTask(0, new EntityAISwimming(this));
            this.tasks.addTask(6, new EntityAIWander(this, 1.0D));
            this.tasks.addTask(8, new EntityAILookIdle(this));

        }