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'm trying to create a tile entity which pulls nearby entities towards it. looking at other peoples code for tile entities I put together the following class (how the class currently affects the player is just to see if it's working, [also i changed some stuff without cleaning my code to see whether it was just variables being too small for me to notice the effect])

http://gw.minecraftforge.net/84qY

 

The block class is here: http://gw.minecraftforge.net/hbiC

 

when i run the game it throws the following error:

2013-02-24 17:48:38 [sEVERE] [ForgeModLoader] A TileEntity type yagoki.mods.mtech.blocks.tile.TileEntityAttractor has throw an exception trying to write state. It will not persist. Report this to the mod author
java.lang.RuntimeException: class yagoki.mods.mtech.blocks.tile.TileEntityAttractor is missing a mapping! This is a bug!
at net.minecraft.tileentity.TileEntity.writeToNBT(TileEntity.java:107)
at net.minecraft.world.chunk.storage.AnvilChunkLoader.writeChunkToNBT(AnvilChunkLoader.java:311)
at net.minecraft.world.chunk.storage.AnvilChunkLoader.saveChunk(AnvilChunkLoader.java:127)
at net.minecraft.world.gen.ChunkProviderServer.safeSaveChunk(ChunkProviderServer.java:232)
at net.minecraft.world.gen.ChunkProviderServer.saveChunks(ChunkProviderServer.java:284)
at net.minecraft.world.WorldServer.saveAllChunks(WorldServer.java:844)
at net.minecraft.server.MinecraftServer.saveAllWorlds(MinecraftServer.java:373)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:497)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)

 

can someone tell me how to resolve this, as I've not (as far as I can tell) done anything different to the classes I learnt form which all, supposedly, work fine.

  • Author

ok that was a bit of a derp moment, moved it there earlier without thinking to make the code look neater.

Thanks for pointing that out.  :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.