[TUTORIAL] How to make entities age

Started by _CrimsonInferno_ on Fri, 07/17/2020 - 19:47

Topic category: User side tutorials

Last seen on 23:32, 17. Jan 2021
Joined May 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
[TUTORIAL] How to make entities age
Fri, 07/17/2020 - 19:47

Hey there, for any of you who want to be able to make entities that age, this is how it works:

  1. Create an adult version of the entity.
  2. Create a baby version of the entity. Typically, baby mobs have smaller bodies and large heads.
  3. Create a procedure for the "on entity tick update" trigger for the baby mob.
  4. Add an NBT tag to the baby entity using the "set event/target entity data number NBT tag "[age]" to [ ]".
  5. Set the second value in the above block to "get event/target entity data number NBT tag "[age]" + [1]. That way, the entity's age will increase by 1 every tick. Keep in mind that 1 tick is 1/20 of a second, so the time it should take for your entity to grow up should be (number of seconds) * 20. For example, 5 seconds would be 100 ticks, 10 would be 200 ticks, 5 minutes would be 6000 ticks.
  6. Create an "if" block, and set the condition to "get event/target entity data NBT tag "age" = (whatever age you want it to grow up at)".
  7. Within the "if" statement, place a "despawn event/target entity" block.
  8. Below that, still within the "if" statement, place a "spawn at [x] [y] [z] living entity [adult version of the entity]."
  9. And there you go! What will happen is after the designated number of ticks have passed and the age NBT tag has reached the correct number, the baby will despawn and be replaced with an adult.

Good luck!

Last seen on 13:19, 11. Nov 2020
Joined Jul 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
i want to make minecraft…
Mon, 08/17/2020 - 15:21

i want to make minecraft foxes (but they attack you) but it's hard to me making a baby model in blockbench because it's toooo tiny and i can't find minecraft baby entities models and the baby uses the adult texture but how?

Last seen on 05:23, 17. Jan 2021
Joined Jul 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hello, I have a problem that…
Tue, 12/01/2020 - 21:13

Hello, I have a problem that is that I cannot finish the procedure since I do not understand that much English right now I am using a translator, well you can send me an image as a reference of how the procedure is.

Last seen on 17:57, 8. Jan 2021
Joined Dec 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Jotaro... you're approaching…
Wed, 12/02/2020 - 01:33

Jotaro... you're approaching me? Instead of running away, you're coming right to me?