-
Recently Browsing
No registered users viewing this page.
-
Posts
-
That code from the original mod is not going to work regardless of the side it is on, as spawning ItemEntity in the world must be done on the server side. However, the Minecraft class (used in your if statement) is client side only. In your case, you might want to look at how proxies work.
-
And how to make a survival tab, like a creative tab just on survival?
-
what is posX, posY, posZ? I'm not very good at "this" but I think you need "this".
-
So what would be the correct solution (in 1.10.2)?I thought my code was bad, but not completely broken, since in fact I don't get any NoClassDefFoundError or ClassNotFoundException, and the server doesn't crash. By contrast, I notice that the following code (originally provided with the mod, in the ComputerBlock class) does cause both those exceptions (even though the server doesn't crash either): public void breakBlock(World worldIn, BlockPos pos, IBlockState state) { // If not in creative mode: survival, etc. break and drop the block itself if (!Minecraft.getMinecraft().thePlayer.capabilities.isCreativeMode) { // Make the block drop itself // [...] // Give it a random drop speed // [...] // Spawn the item in the world // [...] // Super MUST be called last because it removes the tile entity super.breakBlock(worldIn, pos, state); } else { // If in creative mode, don't drop the block super.breakBlock(worldIn, pos, state); } }
-
By Reapers_Core · Posted
You know what I completely didn't read the EAQ before posting I just saw it I'm gonna go read it and see if it helps also idk how to delete posts I'm so sorry rip Edit: read it, please tell me what I'm doing wrong when posting i've literally never done this before I just wanna get this fixed and idk how
-
-
Topics
-
Who's Online (See full list)