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. You need hasTileEntity(IBlockState) in order for your block to have a TileEntity
  2. Step through your code in the debugger, I am not sure what is happening.
  3. My bad I missed the updated 13 minutes ago between all of the updated 3 hours ago. This line is your problem it should be !world.isRemote
  4. Use an ItemStack capability, there will only ever be one Item instance of all items, however there can/will be multiple ItemStack instances.
  5. I asked if you would put your crash report in a spoiler block. Also push your updated code to github.
  6. Is it the same crash? Post the new crash and please use a spoiler tag it looks like "
  7. Override collisionRayTrace in your block class and call Block#rayTrace until either you have gone through all of your collision boxes or the RayTraceResult has your block.
  8. This line needs to be both on the client and server.
  9. No clue. Why not put it all on github?
  10. I believe you need to run the forge-1.12.2-(numbers)universal.jar
  11. Either the server doesn't have the mods or you don't have the mods, are the mods in both mods folders?
  12. It's an improper way of doing things, and it was never the proper way if doing it. The forge devs are hoping to, by using the registry events allow mod loading and unloading during runtime. Define a variety of modders? YouTube tutorials are not really the best because they dont always do it properly.
  13. When you register your renderer you are passed a RenderManager as a parameter so use it. Also dont register things in preInit there are events for registration now. You can read about them on the forge docs.
  14. Do you mean you are running it as a LAN server?
  15. Here is an example, it is at the bottom of the class.
  16. I don't think you need to send a custom packet. You should just override the default sync methods in the TileEntity class. But if this is what you need to do send a packet from the client to the server from onLoad and then send a packet back syncing the TE.
  17. Should be Minecraft.getMinecraft().addScheduledTask
  18. When you send data to the client you must use Minecraft.getMInecraft().addScheduledTask
  19. Create a capability that simply stores a boolean of hasConnected or whatever and in the EntityJoinWorldEvent check that capability and if it is false then open a gui via EntityPlayer#openGui
  20. Depends on what you are saving, it might be more efficient to sync the data as primitives. IE ByteBuf#writeInt or ByteBuf#writeShort. You will need to have a packet either way.
  21. It could, but why you can do a simple addition yourself. I meant why do you need the health prior to the last damage. I'm not sure I understand why you are going about doing this. What is causing a problem about the vanilla implementation.
  22. Instead use an interface called IProxy, the idea of a CommonProxy is illogical. Your "CommonProxy" is your @Mod class.
  23. You just need to create and register a PotionEffect instance via the Registry Event Register<PotionEffect>
  24. 1.7.10 isn't supported on this forum anymore, update if you wish to receive assistance.

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.