Skip 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.

Animefan8888

Forge Modder
  • Joined

  • Last visited

Everything posted by Animefan8888

  1. Ok, that is fine then you should know what a NullPointerException is. Look at the crash report where the error is printed it will be towards the bottom. It will point you towards the line that is making the error.
  2. What is your experience level with Java?
  3. I'm not sure I have not moved on to 1.12 yet, it could be and if so... You can read up on Capabilities here.
  4. If you do not know much Java then I suggest you learn before continuing, and if you do this could be really easy. You have to save the contents of your List to the Drive of your computer. Whether this is in a text file or an NBT file. You will want to use the WorldSavedData along with some events to read and write the data.
  5. Then do you have permission to use their code?
  6. Did you change any code in your Gui at all?
  7. What is line 73 of your Gui now?
  8. The null variable is "sneakysal". Gui#initGui is called in the Gui classes constructor which gets called before your constructor and therefore it is not initialized. To fix this you can add a != null check and call Gui#initGui in your Guis constructor.
  9. What is line 72?
  10. Something is null on line 72 of your Gui.
  11. Use a Entity Capability see here EntityOcelot.isTamed() Just cancel the event. Subscribe to the RenderLivingEvent(s) cancel the Pre event and Render your new Model in the Post event. At least I believe that is the way to do it.
  12. You will need to make a custom IRecipe implementation. You should look at the ItemArmor for how the LeatherArmor texture works.
  13. Sadly you cannot place a TileEntity on a vanilla block that doesn't already have a TileEntity. But you can store a Map of BlockPos as the Key and a List of BlockPos as the value and cross reference the lists contained in the Map in the PlayerInteractEvent.RightClickBlock. And if it is in a List perform the action you want for the TileEntity at the key BlockPos.
  14. Don't use the ItemModelMesher instead use ModelLoader.setCustomModelResourceLocation, and call in in preInit or the ModelRegistryEvent.
  15. Then the problem could still be the Item Model for metadata 1. Also we can't help without any code or the models, if we tried it would be a bunch of shots in the dark.
  16. Yes they will be craftable as long as they are not bigger than a 3x3.
  17. Any accessing of a Block or TileEntity will require a world to load the chunk.
  18. I'm sorry I just don't see the problem if it isn't solved by the time I get back on I will take another look, but for now I am off to bed.
  19. Are you doing it in the right class?
  20. And you are sure your breakpoint is below the line where you change the sound type?
  21. Try "blockSoundType = SoundType.CLOTH" instead of setSoundType and your breakpoint is not after you call setSoundType could you move it down a line.
  22. You are gonna want to check the facing value in hasCapability and getCapability and if it is anything, but null say you don't have it or it doesn't exist.

Important Information

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

Account

Navigation

Search

Search

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.