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

Hi guys

I'm trying to implement a multi-block machine (geometrically unsymmetrical, irregular shape, need to interact with BuildCraft pipes and vanilla hoppers), i got 2 plans:

 

Plan A: 

like immersive engineering, give each component block a tileentity and store its offset from the master tileentity, so that each block knows exactly where its master is. The master block do most of the logic stuff.

concern: my machine can be as big as 9*6*6 (huge!) and it is going to add a lot of tileentities to the game. Will they cause lagging problem? (slave blocks do nothing in updateEntity())

 

Plan B:

only few block have tileentity, the others dont. Slave blocks use some kind of CustomChunkDataProvider to find out the position of their master block.

challenge: implementation of the CustomChunkDataProvider, custom data are stored in chunk NBTs. minecraft seems only send block information to the client, not the original chunk NBT data. so i have to manually sync my custom data to clients. sending packets are easy but i have no idea when to send the packet, i can not find any related forge event.

 

I would like to hear your suggestion & opinion QAQ. Thanks

 

I'm making a mod, its called simElectricity, source code avaliable on Github.

https://github.com/RoyalAliceAcademyOfSciences/SimElectricity

My mod: SimElectricity - High Voltages, Electrical Power Transmission & Distribution

https://github.com/RoyalAliceAcademyOfSciences/SimElectricity

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