Jump to content

ReadySetPawn

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by ReadySetPawn

  1. Thank you very much that worked brilliantly! And I noticed this also makes it so that the /summon command isn't broken either.
  2. Hmm yea I'm liking the idea of not having the natural mobs spawn at all in the first place. Definitely going to look into the CheckSpawn event you're talking about.
  3. Thank you that's very useful. I thought I had to keep track of the entity's life span on my own and I wasn't looking forward to that Yeah I'm trying to cancel certain mob spawns in certain dimensions but I want mobs spawned from eggs to not be affected by this.
  4. Hmm, yeah that's what I was thinking too. Since the mod I'm working on is only for single player, I was thinking of getting the player's item in hand and see if the player right clicked using the correct egg and if the corresponding entity spawned in the correct location.
  5. How do I check to see if a mob spawning is a result of a player using a spawn egg? Ideally I would like to know if there's a way through EntityJoinWorldEvent.
  6. Thank you very much!
  7. I want to sort of replicate the mob spawning mechanism, but I can't find the code that's responsible for looking for available spawning locations, determining which mob to spawn, the size of the group, etc. I've looked in World, WorldProvider, and Biome and can't find any code that can be what I'm looking for.
  8. So lets say I have a dimension ID and want to get all the biomes that can possibly be generated in this dimension. How will I go about doing that? I tried: DimensionManager.getProvider(0).getBiomeProvider().getBiomesToSpawnIn() But I get an NPE on getProvider(0). I'm assuming that should be getting the WorldProvider for the Overworld, correct?
  9. Ohh okay. Yea I feared that would be the case Thank you for all the help, I just started modding this week I'm mostly a Bukkit dev.
  10. Thank you very much! EDIT: Sorry, one more question and I'll be set. How do I find what dimension a biome is in?
  11. I'm making a mod that manipulates creature spawning (both vanilla and modded) and I need to know the default conditions in which they spawn. I mostly need to know how frequently they spawn and in what dimensions/biomes they spawn. I'm making a mod that lets the user control in which dimensions each creature can spawn. Sorry if this is too vague, all the details that are needed are here (as if as I know). Thank you.
×
×
  • Create New...

Important Information

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