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. 1/16 is the thickness of the Item ie one pixel. The next number indicates the center of the item(0-1) so .5 is the literal center. The max is the farthest position(farthest from 0) and the min is the closest position(closest to 0). These represent how far in the start and the end are in the z direction. These are a little bit beyond me, but basically it is just creating the faces for the baked model. It might be easier to experiment with those values to figure out what they do exactly. But it looks like dimensions of some kind.
  2. It would be helpful if you told us which numbers specifically.
  3. If you dont save them you will have to get them again when they are loaded which could lead to some performance issues when loading chunks. You have to make your own capability and attach it in AttachCapabilityEvent<World>. Then you have to sync the network with a packet.
  4. @Cadiboo Networks should be server side only. Save and load them from the world using WorldSavedData or a World Capability. Use Packets to send the information from server to client. For debugging log messages to the log or use debug mode. Also instead of having each TileEntity send energy have a WorldTickEvent that handles all the energy sending and receiving.
  5. Override Block#getItemDropped
  6. Block#onNeighborChanged is called whenever a TileEntity is removed or placed in the world to all adjacent blocks. You should just be able to override this in your cable(s) class. And Block#breakBlock is called every time a block is broken/replaced since it is the method that removes TEs. And you can use Block#onBlockAdded for when the cable is placed. You will need to use all three of them.
  7. Can you describe what you mean in more detail? Aswell as show what you have tried.
  8. You don't need to use forge Events for this, there are methods in the Block class you can use. Such as breakBlock and onNeighborChanged.
  9. Yes, this is what I suggested.
  10. You can use the ClientDisconnectFromServer event to handle this.
  11. Which part do you not understand? Override is a basic java principle. And I have given you a method signature. The method is in the Block class.
  12. I meant the thermal mods. If you want it to be lossless you can simply store one energy storage that represents a cable network on which its size scales on how many cables there are. And also stores positions of connected TEs.
  13. As long as the server says no you cant fly, then you can't fly. Instead of setting EntityPlayer#capabilities.isFlying=true try EntityPlayer#capabilities.allowFlying=true and then call EntityPlayer#sendPlayerAbilities if you have changed it on the client.
  14. Override getHardness(IBlockState)
  15. Ultimately it depends on how you want the network to function, do you want simulated energy flow where power individually flows from point a to point b? Or would you rather it function like thermal energy flow?
  16. Name the lang file en_US.lang or put a mcmeta file for a resource pack that specifies the correct version. Did you register the model in the ModelRegistryEvent using ModelLoader.setCustomModelResourceLocation
  17. Honestly it would probably be easier to restart from the ground in a new workspace.
  18. Two things Minecraft is a client only class. And either Minecraft.getMinecraft is returning null and which means you are calling this too soon or Minecraft#player is null and which would also mean you are calling this too soon.
  19. isFlying != can fly. You need to set allowFlying to true.
  20. What you are going to have to do, is after all your recipes have been added, you will need to remove and re-add the recipes to the registry.
  21. He isn't using any static initializers.
  22. The recommended way of adding recipes is with a JSON, why would it be too many? Create them with code if that is easier.
  23. At the top of the page on this website or this link or even a google search.

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.