Jump to content

Tile entity not acting as it should and throws error


Yagoki

Recommended Posts

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.

Link to comment
Share on other sites

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.