MinecartCommandBlock entities not working in Sponge

I tried placing command block minecarts but they wouldn’t place, and then I tried summoning one and it said it could not do it. So I checked the console and found it flooded with errors.

MinecartCommandBlocks fail to exist in Sponge. Here is an error that resulted from summoning a MinecartCommandBlock:

[23:47:18 ERROR] [STDERR]: java.lang.reflect.InvocationTargetException [23:47:18 ERROR] [STDERR]: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [23:47:18 ERROR] [STDERR]: at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [23:47:18 ERROR] [STDERR]: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [23:47:18 ERROR] [STDERR]: at java.lang.reflect.Constructor.newInstance(Constructor.java:423) [23:47:18 ERROR] [STDERR]: at net.minecraft.entity.EntityList.func_75615_a(SourceFile:182) [23:47:18 ERROR] [STDERR]: at net.minecraft.command.server.CommandSummon.func_71515_b(SourceFile:87) [23:47:18 ERROR] [STDERR]: at net.minecraft.command.CommandHandler.func_175786_a(SourceFile:80) [23:47:18 ERROR] [STDERR]: at org.spongepowered.common.command.MinecraftCommandWrapper.tryExecute(MinecraftCommandWrapper.java:145) [23:47:18 ERROR] [STDERR]: at org.spongepowered.common.command.MinecraftCommandWrapper.process(MinecraftCommandWrapper.java:131) [23:47:18 ERROR] [STDERR]: at org.spongepowered.api.command.dispatcher.SimpleDispatcher.process(SimpleDispatcher.java:331) [23:47:18 ERROR] [STDERR]: at org.spongepowered.common.command.SpongeCommandManager.process(SpongeCommandManager.java:252) [23:47:18 ERROR] [STDERR]: at net.minecraft.command.ServerCommandManager.func_71556_a(SourceFile:83) [23:47:18 ERROR] [STDERR]: at net.minecraft.network.NetHandlerPlayServer.func_147361_d(SourceFile:690) [23:47:18 ERROR] [STDERR]: at net.minecraft.network.NetHandlerPlayServer.func_147354_a(SourceFile:677) [23:47:18 ERROR] [STDERR]: at net.minecraft.network.play.client.C01PacketChatMessage.func_148833_a(SourceFile:37) [23:47:18 ERROR] [STDERR]: at net.minecraft.network.play.client.C01PacketChatMessage.func_148833_a(SourceFile:9) [23:47:18 ERROR] [STDERR]: at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:106) [23:47:18 ERROR] [STDERR]: at net.minecraft.network.PacketThreadUtil$1.onProcessPacket(SourceFile:51) [23:47:18 ERROR] [STDERR]: at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) [23:47:18 ERROR] [STDERR]: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [23:47:18 ERROR] [STDERR]: at java.util.concurrent.FutureTask.run(FutureTask.java:266) [23:47:18 ERROR] [STDERR]: at net.minecraft.util.Util.func_181617_a(SourceFile:44) [23:47:18 ERROR] [STDERR]: at net.minecraft.server.MinecraftServer.func_71190_q(SourceFile:143) [23:47:18 ERROR] [STDERR]: at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(SourceFile:299) [23:47:18 ERROR] [STDERR]: at net.minecraft.server.MinecraftServer.func_71217_p(SourceFile:535) [23:47:18 ERROR] [STDERR]: at net.minecraft.server.MinecraftServer.run(SourceFile:451) [23:47:18 ERROR] [STDERR]: at java.lang.Thread.run(Thread.java:745) [23:47:18 ERROR] [STDERR]: Caused by: java.lang.NullPointerException [23:47:18 ERROR] [STDERR]: at net.minecraft.entity.EntityMinecartCommandBlock.getWorld(SourceFile:49) [23:47:18 ERROR] [STDERR]: at net.minecraft.entity.Entity.getTransform(SourceFile:484) [23:47:18 ERROR] [STDERR]: at net.minecraft.entity.Entity.onConstructed(SourceFile:53) [23:47:18 ERROR] [STDERR]: at net.minecraft.entity.Entity.<init>(SourceFile:163) [23:47:18 ERROR] [STDERR]: at net.minecraft.entity.item.EntityMinecart.<init>(SourceFile:87) [23:47:18 ERROR] [STDERR]: at net.minecraft.entity.EntityMinecartCommandBlock.<init>(SourceFile:62) [23:47:18 ERROR] [STDERR]: ... 27 more [23:47:18 WARN]: Skipping Entity with id MinecartCommandBlock

SpongeForge or SpongeVanilla? Does this happen on the latest build?

This was on SpongeVanilla. I don’t have access to my server right now so I’ll need to make a test server to test the latest build, etc.

I tested it in my test server. The same issue is in the latest version of SpongeVanilla.
I also tested without plugins and I have the same issue.

But here’s something interesting. They work in SpongeForge. Just not in SpongeVanilla.
Then when closing and loading with SpongeVanilla, all the carts disappear with a load of those errors in console.

I can confirm there is an issue with command block minecarts on SpongeVanilla. You can use SpongeForge at least until the issue is fixed

1 Like

I have fixed the issue

Build 295 and greater should no longer crash with minecart command blocks