How do you scale a mob in [1.18]?

Started by Pepigeon on

Topic category: Help with modding (Java Edition)

Last seen on 08:08, 25. May 2022
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?

Last seen on 12:31, 22. Jan 2024
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

Last seen on 13:06, 8. Apr 2024
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.

Last seen on 13:32, 20. Apr 2024
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?

Last seen on 04:46, 14. Mar 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ContinuedOak literaly said…
Sun, 12/17/2023 - 00:11

ContinuedOak literaly said where lol on the renderer file of the element

Last seen on 13:32, 20. Apr 2024
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.

Last seen on 13:32, 20. Apr 2024
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