Jump to content
  • 0

Can't paste or modify anything with world edit if there is a mob spawner in it.


Question

Posted

Everytime I try to //regen //paste anything, if it is going to affect a mob spawner I get the following error, this is a brand new tekkit 2 server started less than 24 hours ago, no plugins

2012-03-09 08:18:08 [sEVERE] java.lang.IllegalAccessError: tried to access field net.minecraft.server.TileEntityMobSpawner.mobName from class org.bukkit.craftbukkit.block.CraftCreatureSpawner

2012-03-09 08:18:08 [sEVERE] at org.bukkit.craftbukkit.block.CraftCreatureSpawner.getCreatureTypeId(CraftCreatureSpawner.java:29)

2012-03-09 08:18:08 [sEVERE] at com.sk89q.worldedit.bukkit.BukkitWorld.copyFromWorld(BukkitWorld.java:350)

2012-03-09 08:18:08 [sEVERE] at com.sk89q.worldedit.EditSession.rawGetBlock(EditSession.java:445)

2012-03-09 08:18:08 [sEVERE] at com.sk89q.worldedit.EditSession.getBlock(EditSession.java:365)

2012-03-09 08:18:08 [sEVERE] at com.sk89q.worldedit.EditSession.replaceBlocks(EditSession.java:1279)

2012-03-09 08:18:08 [sEVERE] at com.sk89q.worldedit.commands.RegionCommands.replace(RegionCommands.java:102)

2012-03-09 08:18:08 [sEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2012-03-09 08:18:08 [sEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

2012-03-09 08:18:08 [sEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

2012-03-09 08:18:08 [sEVERE] at java.lang.reflect.Method.invoke(Method.java:601)

2012-03-09 08:18:08 [sEVERE] at com.sk89q.minecraft.util.commands.CommandsManager.invokeMethod(CommandsManager.java:514)

2012-03-09 08:18:08 [sEVERE] at com.sk89q.worldedit.WorldEdit$1.invokeMethod(WorldEdit.java:182)

2012-03-09 08:18:08 [sEVERE] at com.sk89q.worldedit.WorldEdit$1.invokeMethod(WorldEdit.java:113)

2012-03-09 08:18:08 [sEVERE] at com.sk89q.minecraft.util.commands.CommandsManager.executeMethod(CommandsManager.java:501)

2012-03-09 08:18:08 [sEVERE] at com.sk89q.minecraft.util.commands.CommandsManager.execute(CommandsManager.java:419)

2012-03-09 08:18:08 [sEVERE] at com.sk89q.worldedit.WorldEdit.handleCommand(WorldEdit.java:1250)

2012-03-09 08:18:08 [sEVERE] at com.sk89q.worldedit.bukkit.WorldEditPlugin.onCommand(WorldEditPlugin.java:197)

2012-03-09 08:18:08 [sEVERE] at com.sk89q.bukkit.util.DynamicPluginCommand.execute(DynamicPluginCommand.java:40)

2012-03-09 08:18:08 [sEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)

2012-03-09 08:18:08 [sEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:403)

2012-03-09 08:18:08 [sEVERE] at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:791)

2012-03-09 08:18:08 [sEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:751)

2012-03-09 08:18:08 [sEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:739)

2012-03-09 08:18:08 [sEVERE] at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33)

2012-03-09 08:18:08 [sEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.java:231)

2012-03-09 08:18:08 [sEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:101)

2012-03-09 08:18:08 [sEVERE] at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)

2012-03-09 08:18:08 [sEVERE] at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:543)

2012-03-09 08:18:08 [sEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:441)

2012-03-09 08:18:08 [sEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)

EDIT: I fixed this and here is how.

Tekkit is currently using bukkit R4, I took the mobspawnertile class out of a bukkit R4 jar and replaced the one in tekkit...seems to work now

7 answers to this question

Recommended Posts

  • 0
Posted

I'm getting the same error :( so frustrating.

Read the bottom of the OP

EDIT: I fixed this and here is how.

Tekkit is currently using bukkit R4, I took the mobspawnertile class out of a bukkit R4 jar and replaced the one in tekkit...seems to work now

  • 0
Posted

Would anyone mind giving location of the mobspawnertile is in the jar? Friday the 13th has trolled me enough today /:

  • 0
Posted

To answer the last question in this thread which wants to know exactly what files are involved and what to do, here is my explanation. First, you check the very top error message in the list that are shown, and you see that what failed was a bukkit file trying to access a part of "tried to access field net.minecraft.server.TileEntityMobSpawner.mobName", or in other words, the mobName function of the TileEntityMobSpawner class within the net.minecraft.server object, or in other words, the TileEntityMobSpawner.class file contained within the main jar file Tekkit.jar, and then within the net\minecraft\server\ subdirectory of that jar file.

Therefore, here is how I fixed it:

I downloaded CraftBukkit for 1.1.0-R4 from http://dl.bukkit.org/downloads/craftbukkit/view/00719_1.1-R4/ and then browsed the net\minecraft\server jar and copied TileEntityMobSpawner.class into my %appdata%\Tekkit_Server_2.1.1\Tekkit.jar in its net\minecraft\server subfolder. I use 7zip to browse the jar files and drag and drop files.

Note: make a backup of your Tekkit.jar file before modding it!

THIS THREAD NEEDS TO BE HIGHER IN THE GOOGLE SEARCH RESULTS! I bet it is very common that people get this error, because for example if you ever try to use the WorldEdit "//regen" command, it will often run into mob spawners and screw up. Either that, or somebody who develops Tekkit needs to replace this ONE class file within the jar file they are distributing with the tekkit pack.

  • 0
Posted

Thanks scourge :D

I'll go try that here in a moment.

And yes it should be higher up because the error seems like it would happen to any world edit users.

I was just trying to make a giant dome D: how many mobspawners can there possibly be???

But ya, thanks :D

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...