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. lookForStruct() == 4 Is a boolean, and you even called it a boolean lol.
  2. The same way as you did for the normal TESR except render your FX only when the boolean is true.
  3. You can do that with a FastTESR as far as I know, I believe I have done it before.
  4. That won't work, the update method in TEs don't have access to rendering. You will need to use a FastTESR.
  5. int xCoord = (getPos().getX() >> 4) + 1; int zCoord = (getPos().getZ() >> 4) + 1; worldObj.getChunkFromChunkCoords(xCoord, zCoord); This will get a chunk that is offset by one in the x and z (chunk)position.
  6. Where are you calling it from?
  7. Not quite adding 16, it is a bit shift. Tou are doing more processes the way you are doing it.
  8. Why are you using World#getChunkFromChunkCoords and then to get the chunk coords you get the chunk from the block coords... Just use World#getChunkFromBlockCoords(BlockPos).
  9. That is because you are printing the count after setting it to 0...
  10. public void update() { structureCheck(); } public int structureCheck() { int structureCount = 0; for (int i = 0; i < 10; i++) { structureCount++; } return structureCount; } What is the value of structureCheck every time it is called?
  11. Think Local not global.
  12. Check if one doesn't exist rather than if they all exist.
  13. SaveScanMessage line 59
  14. And the error says?
  15. I want to say this imposes the limit. NBTSizeTracker(200097152L))
  16. Instead of new Slot do new SlotItemHandler
  17. Show the code where you do that.
  18. ...Obviously it is being called because it is erroring on line 25. And try removing any calls to send the packet. Make sure that you check if you are sending the correct packet. Does ModelTogglePacket extend PacketSyncData?
  19. To do what Choonster said you cant use a world Capability. Instead use just the events he suggested. Mainly the ChunkDataEvent ones. They will allow you to save specifically to a chunk. Through the usage of the ChunkDataEvent.Load/Save#getData which returns an NBTTagCompound. I didn't know these events existed and glossed over the ChunkDataEvent in Choonsters post. You can use a World capability to store the Map at runtime, it just won't save the data to NBT itself; that will be handled with ChunkDataEvent.Load / Save . Then what is the point of having the capability? You could just store it in the event then access the event through the instance of your mod.
  20. To do what Choonster said you cant use a world Capability. Instead use just the events he suggested. Mainly the ChunkDataEvent ones. They will allow you to save specifically to a chunk. Through the usage of the ChunkDataEvent.Load/Save#getData which returns an NBTTagCompound. I didn't know these events existed and glossed over the ChunkDataEvent in Choonsters post.
  21. This is not going to work. cap.chunkData.put(event.getChunk().getPos(), cap.getVoidEnergyStored(event.getChunk().getPos())); Think about it.
  22. Well then the value is null. Post your ChunkLoad Event
  23. Then it should work.
  24. You will be getting an Integer. Yes I know that, but what would I put into the get method ( What obj ) A ChunkPos(your key). Did you read that link I sent you? Yes but I dont have access to a chunkPos.. Should include that in the parameters? Yes

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.