Jump to content

[1.12.2] How can i shrink my entity and stop it laying eggs?


Recommended Posts

Posted (edited)

Hello

I created an entity (Red from the Angry Birds, and i´m going to make the rest of the flock, too).

 

But i have some questions::

 

1.

Can i change the size of an entity by typing a number into the f5 here:

  Reveal hidden contents

That´s in the model-class, below the part for the shape of the model

And if yes, wich number makes the model exact as half in size (i want to scale some birds (the smallest flock-members) down, because, if i create the model that small, it has not enough pixels left for a good face)?

 

2.

My entitys extend the EntityChicken-Class.

how can i stop them laying eggs?

Edited by Drachenbauer
Posted

Post your code

About Me

  Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted

Override

onLivingUpdate

and set

this.timeUntilNextEgg

to something higher than 0 (say, 100).

Some tips:

  Reveal hidden contents

 

Posted

That is likely to work. However without the rest of your code we can’t fully help

About Me

  Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted (edited)

This is is the Entity-Class of my bird:

  Reveal hidden contents

 

And this is the Model-Class:

  Reveal hidden contents

Where can i scale down an entity?

some of my birds should be smaller, but i cannot create souch a small model in Blockbench, because there will not be enough pixels left for a good face.

 

And i´m wondering about this:

this.setSize(0.875F, 0.6875F);

Why there are just two vaules?

a 3D-model has three dimensions: hight, width and length

 

Edited by Drachenbauer
Posted (edited)
  Reveal hidden contents

Now i found a way to resize my entity.

It´s the last part (public float prepareScale) of this Render-Class (that i wrote for one of theese small birds)

Edited by Drachenbauer

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.