How To Flag Mob As Child

Started by CoolCaution on Wed, 10/27/2021 - 21:23

Topic category: Help with modding (Java Edition)

Last seen on 02:45, 30. Nov 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How To Flag Mob As Child
Wed, 10/27/2021 - 21:32 (edited)

Im making a mod with entities that reproduce and grow up but, a crucial part of this is to make the baby and adult version of the mob be the same entity. ic ant use the "make two different entities, adult and baby" method. i need to make the adult and baby be the same entity that grows up and keep it's name and inventory etc... So can someone please help?

Edited by CoolCaution on Wed, 10/27/2021 - 21:32
Last seen on 21:14, 29. Nov 2021
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
with code. just make 2…
Wed, 10/27/2021 - 21:35

with code.

just make 2 entities with NBTs

Last seen on 02:45, 30. Nov 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
What do you mean can you…
Wed, 10/27/2021 - 21:37

What do you mean can you explain in more detail?

Last seen on 21:14, 29. Nov 2021
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
the code or the 2 entities
Wed, 10/27/2021 - 21:52

the code or the 2 entities

Last seen on 02:45, 30. Nov 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
That didn't explain much lol
Wed, 10/27/2021 - 21:58

That didn't explain much lol

Last seen on 21:14, 29. Nov 2021
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
yes, what do you want me to…
Wed, 10/27/2021 - 22:17

yes, what do you want me to explain, code or 2 entities

Last seen on 02:45, 30. Nov 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
2 entities ig, if this…
Wed, 10/27/2021 - 22:39

2 entities ig, if this methods can still meet the requirements of my first comment then sure if not the explain the code method.

Last seen on 21:14, 29. Nov 2021
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
okay, on your Baby Entity,…
Wed, 10/27/2021 - 23:07

okay, on your Baby Entity, make a new procedure on Entity Update Tick. And put this procedure

if get NBT Number Tag "Age" of event target entity = # (Time)

 do despawn event target entity

       Spawn at X Y Z mob: ADULT

else if get NBT Number Tag "Age" of event target entity =/ (not equal) # (Time)

 do set NBT Number Tag "Age" of event target entity to: get NBT Number Tag "Age" of event target entity + 1

Last seen on 02:45, 30. Nov 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Ok yeah I know about that…
Wed, 10/27/2021 - 23:17

Ok yeah I know about that one, and I used it for other mobs but it wont give the adult entity the name nor gui of the baby entity, if that makes sense

 

Last seen on 21:14, 29. Nov 2021
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
then use code, pretty sure…
Wed, 10/27/2021 - 23:30

then use code, pretty sure Minecraft uses NBTs too. check any mobs code, however I can't promise it will maintain all of the entities inventory or names

Last seen on 02:45, 30. Nov 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
ok, do you have any coding…
Wed, 10/27/2021 - 23:44

ok, do you have any coding tips on where to start with that?

Last seen on 21:14, 29. Nov 2021
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
yes, watch a tutorial video…
Wed, 10/27/2021 - 23:52

yes, watch a tutorial video so you can at least somewhat understand what the code does, learn the basic stuff like importing, packages etc. and then look through animals code

Last seen on 02:45, 30. Nov 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
k thx
Wed, 10/27/2021 - 23:54

k thx

Last seen on 19:06, 16. Nov 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
hey so I was wondering how I…
Tue, 11/02/2021 - 01:27

hey so I was wondering how I would be able to make a mob breed with it's same kind but the outcome will be a baby model of the adult mob (please let me know if you are confused).

I have 2 models. The Adult model and the baby model. The Adult model works fine and so does the baby but the breeding mechanism does not. I want the outcome to be a baby model but instead the outcome is the adult model. Can someone help please?

Also I thought this would be the best place to ask since replies elsewhere can be very slow.