Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ReadySetPawn

Members
  • Joined

  • Last visited

  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. 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.
  7. 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?
  8. 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.
  9. Thank you very much! EDIT: Sorry, one more question and I'll be set. How do I find what dimension a biome is in?
  10. 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.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.