Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Minecraft Forge
  • Suggestions
  • Creature BabySpawn hook
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
SenpaiSubaraki

Creature BabySpawn hook

By SenpaiSubaraki, November 2, 2012 in Suggestions

  • Reply to this topic
  • Start new topic

Recommended Posts

SenpaiSubaraki    12

SenpaiSubaraki

SenpaiSubaraki    12

  • Creeper Killer
  • SenpaiSubaraki
  • Members
  • 12
  • 141 posts
Posted November 2, 2012

hiya !

 

Wondering if a hook for making babies spawn from already existing creatures exist or not.

 

If not, i would like to request one ^^

 

ex:

I made a new mob and a want a pig to spawn it, without having to change baseclasses !

 

 

thanks ^^

 

  • Quote

https://minecraft.curseforge.com/members/Subaraki/projects

Share this post


Link to post
Share on other sites

keepcalm    87

keepcalm

keepcalm    87

  • Diamond Finder
  • keepcalm
  • Forge Modder
  • 87
  • 281 posts
Posted November 3, 2012

EntityPig ep = new EntityPig(world);
ep.setGrowingAge(-200)

 

will make the pig be a baby for 200 ticks, according to the javadocs

  • Quote

Protip: try and find answers yourself before asking on the forum.

It's pretty likely that there is an answer.

 

Was I helpful? Give me a thank you!

 

 

width=635 height=903http://bit.ly/HZ03zy[/img]

 

 

Tired of waiting for mods to port to bukkit?

use BukkitForge! (now with a working version of WorldEdit!)

Share this post


Link to post
Share on other sites

SenpaiSubaraki    12

SenpaiSubaraki

SenpaiSubaraki    12

  • Creeper Killer
  • SenpaiSubaraki
  • Members
  • 12
  • 141 posts
Posted November 3, 2012

no no, you got it all wrong :/

I dont want the pig to be a baby

 

I want the pig to spawn a baby cow and a baby pig. but i would have to edit base classes to do so.

  • Quote

https://minecraft.curseforge.com/members/Subaraki/projects

Share this post


Link to post
Share on other sites

LexManos    1620

LexManos

LexManos    1620

  • Reality Controller
  • LexManos
  • Forge Code God
  • 1620
  • 8958 posts
Posted November 4, 2012

You can edit entity ai tasks without editing any base classes.

  • Quote

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Patreon: http://www.patreon.com/lexmanos
Paypal: http://paypal.me/LexManos

BitCoin: 1Q8rWvUNMM2T1ZfDaFeeYQyVXtYoeT6tTn

Share this post


Link to post
Share on other sites

SenpaiSubaraki    12

SenpaiSubaraki

SenpaiSubaraki    12

  • Creeper Killer
  • SenpaiSubaraki
  • Members
  • 12
  • 141 posts
Posted December 24, 2012

An entity AI wont make my custom entity have a spawning chance of  30% Cow, 30% Pig or 40% Chicken

 

if you know what I mean.

  • Quote

https://minecraft.curseforge.com/members/Subaraki/projects

Share this post


Link to post
Share on other sites

OvermindDL1    333

OvermindDL1

OvermindDL1    333

  • World Shaper
  • OvermindDL1
  • Members
  • 333
  • 1439 posts
Posted December 25, 2012

An entity AI wont make my custom entity have a spawning chance of  30% Cow, 30% Pig or 40% Chicken

 

if you know what I mean.

Actually it can, you can define various parameters and complete design of how it should work by making your own AI task and injecting it in.

I actually do that myself, so I know it works and is quite simple.

  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Rakaldo
      Forge not showing in the lanucher

      By Rakaldo · Posted 1 minute ago

      I have downloaded forge but it still wont show up in the launcher https://prnt.sc/10c4blb (btw its 1.16.4)
    • GhostGamesFSM
      1.16 Ore generation.

      By GhostGamesFSM · Posted 15 minutes ago

      sorry for the txt, but thanks for the comment. I don't have a BiomeLoadingEvent, but I just have to see how I do that. When I have that I send you a message if that works.
    • HOTSAUCEMAN
      help with loading my world

      By HOTSAUCEMAN · Posted 16 minutes ago

      just ran it again to get more updated logs  debug-1.log.gz
    • HOTSAUCEMAN
      help with loading my world

      By HOTSAUCEMAN · Posted 20 minutes ago

      when loading into my world it says its loading, and then changes to a dirt background with no text; i've looked at multiple threads, forums and videos but i can't find any issue similar to mine (at least on a similar version)  debug-1.log.gz
    • Beethoven92
      [1.16.5] Beacon Overwrite (Screen Error)

      By Beethoven92 · Posted 27 minutes ago

      I apologize...i misread the part where you say that your custom beacon inventory actually opens fine! Yeah, the proximity check is doing its job, the problem seems to be that when pressing the confirm button you are sending a vanilla CUpdateBeaconPacket, then handled by the server, which will check if your open container is a BeaconContainer. It would be helpful to see the complete code you have, please post a link to your repository
  • Topics

    • Rakaldo
      0
      Forge not showing in the lanucher

      By Rakaldo
      Started 1 minute ago

    • GhostGamesFSM
      2
      1.16 Ore generation.

      By GhostGamesFSM
      Started 17 hours ago

    • HOTSAUCEMAN
      1
      help with loading my world

      By HOTSAUCEMAN
      Started 20 minutes ago

    • Nyko
      3
      [1.16.5] Beacon Overwrite (Screen Error)

      By Nyko
      Started Yesterday at 07:22 AM

    • samjviana
      5
      [1.16.5] How to make EnchantedBook go to Custom ItemGroup

      By samjviana
      Started Sunday at 10:00 PM

  • Who's Online (See full list)

    • EdekaKuchen
    • alexro871
    • GhostGamesFSM
    • Beethoven92
    • IntentScarab
    • CookieLukas
    • Tavi007
    • HOTSAUCEMAN
    • zlappedx3
  • All Activity
  • Home
  • Minecraft Forge
  • Suggestions
  • Creature BabySpawn hook
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community