How do you scale a mob in [1.18]?

Started by Pepigeon on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do you scale a mob in [1.18]?

i am modding a mob that has a model that i can't make smaller in blockbench because it has already blocks that are 1x1 and a java model can't be smaller so what code do i need to edit/ import to make my mob 2x smaller? and where do i need to do that? i am a beginner and the other forums are confusing and old?

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
first of all, i would think…
Thu, 05/12/2022 - 16:45

first of all, i would think it would look better in minecraft if you use the regular scale

if you want smaller, you can probably convey it by fitting a texture onto a space that's 2x smaller than what the texture would normally fit on

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
go to the mob elemete, lock…
Wed, 03/22/2023 - 20:20

go to the mob elemete, lock it.

open up "entityname"Renderer.java.

add "import com.mojang.blaze3d.vertex.PoseStack;

then add " protected void scale(SnifferEntity p_116460_, PoseStack p_116461_, float p_116462_) {
      p_116461_.scale(0.5F, 0.5F, 0.5F);
   }"

then edited the scale to fit how you'd like it.

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Okay, but where would I put…
Sat, 12/16/2023 - 22:57

Okay, but where would I put these bits and bobs?

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That much is obvious, I…
Sun, 12/17/2023 - 02:39

That much is obvious, I meant where in the file.

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And I solved the problem now
Sun, 12/17/2023 - 02:40

And I solved the problem now