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.

Featured Replies

Posted

I know you are suppose to extend the event class then register it with forge event bus. I don't know how your suppose to get the variables from vanilla and stop vanilla from doing it's function nor how/when to manually fire it. 

 

I need the event to fire upon creation of any tile entity into the world as a pre-initialization so I don't  use asm for removing tile entities. Then I need to grab variables... Tile Entity,World,BlockPos,BlockState. 

 

Basically I am asking how to create the event with it registers, when/how to manually fire it with a pre and post,grabbing vanilla variables, runs on server and client....

Edited by jredfox

  • Author
4 minutes ago, diesieben07 said:

Events that hook into vanilla require patches to vanilla.

What are you trying to do with this event? Why do you need an event for every TileEntity initialization? A similar event already exists using AttachCapabilitiesEvent, but it may not be what you want.

 

Please explain your intended functionality.

I am trying to delete any invalid tile entity since my utility mod can replace them with new ones. For example the mob spawner. However setblock ~ ~ ~ mob_spawner crashes....  Then after that I need to replace it with the new one once I got the proper event.

 

is this for 1.7.10 as well. I am trying to finish the utility mod for 1.7.10 then port to newer versions because, I am tired of porting back and forth when still in heavy dev.

Edited by jredfox

  • Guest locked this topic
Guest
This topic is now closed to further replies.

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.