-
Check To See If Mob Spawned Via Spawn Egg?
Thank you very much that worked brilliantly! And I noticed this also makes it so that the /summon command isn't broken either.
-
Check To See If Mob Spawned Via Spawn Egg?
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.
-
Check To See If Mob Spawned Via Spawn Egg?
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.
-
Check To See If Mob Spawned Via Spawn Egg?
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.
-
Check To See If Mob Spawned Via Spawn Egg?
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.
-
Where is Natural Mob Spawning Handled?
Thank you very much!
-
Where is Natural Mob Spawning Handled?
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.
-
Get All Biomes a Given Dimension Can Have
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?
-
Get Default Spawning Conditions of Given Creature?
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.
-
Get Default Spawning Conditions of Given Creature?
Thank you very much! EDIT: Sorry, one more question and I'll be set. How do I find what dimension a biome is in?
-
Get Default Spawning Conditions of Given Creature?
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.
IPS spam blocked by CleanTalk.