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.

GmaN98

Members
  • Joined

  • Last visited

  1. Ok I have created that, and I am looking at other examples on how to go about writing the code for this NPC. Most I have seen are for animals and items, BUT I am also using the EntityRegistry.class file in forge as reference as well....this is going to take a while just to spawn one NPC haha!
  2. Can I add that to the Npc entity class or would I have to make that its own class like EntitySpawn?
  3. This is seriously going to make my head explode....
  4. ok so I found getCanSpawnHere in EntityLiving so would it be safe to say I can apply that code to the actual Npc class, or would I have to make a separate class just to get it to spawn
  5. I use eclipse so Ill have to look that up too. And I love how you code, you made everything more clearer. If it wasn't for you, id still be back at the beginning.
  6. Like as in look around in Forge, or on this site. Also I did run into your Github from another forum earlier tonight and I just want to say thank you for the help it has given me tonight. You are awesome!
  7. I pretty much want them to spawn naturally as the world loads like animals and villagers. Actually this class is extending EntityCreature at the moment.
  8. I have searched through the site but I haven't really found a concrete answer as I am working a mod that relies heavily on NPCs spawning on their own in the world. I am pretty new to modding and I have spent all day building the NPC, adding its AI, but for the life of me I cant figure out how to go about making sure it spawns when the world generates. Any and all suggestions are super welcome.
  9. this is what got it to work for me @Override @SideOnly(Side.CLIENT) public void registerIcons(IconRegister iconRegister) { this.itemIcon = iconRegister.registerIcon("modname:itemname");

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.