Jump to content

Recommended Posts

Posted

Hello, my log isn't working right, when I place it the game crashes, here's the crash:

[17:35:25] [server thread/FATAL]: Error executing task
java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Cannot set property PropertyEnum{name=axis, clazz=class com.Egietje.degeweldigemod.blocks.CheeseLog$EnumAxis, values=[x, y, z, none]} as it does not exist in BlockStateContainer{block=dgm:cheese_log, properties=[axis]}
at java.util.concurrent.FutureTask.report(Unknown Source) ~[?:1.8.0_111]
at java.util.concurrent.FutureTask.get(Unknown Source) ~[?:1.8.0_111]
at net.minecraft.util.Util.runTask(Util.java:27) [util.class:?]
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:753) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:698) [MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:156) [integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:547) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]
Caused by: java.lang.IllegalArgumentException: Cannot set property PropertyEnum{name=axis, clazz=class com.Egietje.degeweldigemod.blocks.CheeseLog$EnumAxis, values=[x, y, z, none]} as it does not exist in BlockStateContainer{block=dgm:cheese_log, properties=[axis]}
at net.minecraft.block.state.BlockStateContainer$StateImplementation.withProperty(BlockStateContainer.java:215) ~[blockStateContainer$StateImplementation.class:?]
at com.Egietje.degeweldigemod.blocks.CheeseLog.getStateForPlacement(CheeseLog.java:50) ~[CheeseLog.class:?]
at net.minecraft.block.Block.getStateForPlacement(Block.java:2320) ~[block.class:?]
at net.minecraft.item.ItemBlock.onItemUse(ItemBlock.java:52) ~[itemBlock.class:?]
at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:812) ~[ForgeHooks.class:?]
at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:179) ~[itemStack.class:?]
at net.minecraft.server.management.PlayerInteractionManager.processRightClickBlock(PlayerInteractionManager.java:506) ~[PlayerInteractionManager.class:?]
at net.minecraft.network.NetHandlerPlayServer.processTryUseItemOnBlock(NetHandlerPlayServer.java:712) ~[NetHandlerPlayServer.class:?]
at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(CPacketPlayerTryUseItemOnBlock.java:68) ~[CPacketPlayerTryUseItemOnBlock.class:?]
at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(CPacketPlayerTryUseItemOnBlock.java:13) ~[CPacketPlayerTryUseItemOnBlock.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:15) ~[PacketThreadUtil$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:1.8.0_111]
at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:1.8.0_111]
at net.minecraft.util.Util.runTask(Util.java:26) ~[util.class:?]
... 5 more

My code is at my github.

Classes: 94

Lines of code: 12173

Other files: 206

Github repo: https://github.com/KokkieBeer/DeGeweldigeMod

Posted

Caused by: java.lang.IllegalArgumentException: Cannot set property PropertyEnum{name=axis, clazz=class com.Egietje.degeweldigemod.blocks.CheeseLog$EnumAxis, values=[x, y, z, none]} as it does not exist in BlockStateContainer{block=dgm:cheese_log, properties=[axis]}

 

You can't set the property because it doesn't exist in the block state container.

The reason it doesn't is because you created a new axis property here rather than using the existing one from the parent class.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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