
Raycoms
Members-
Posts
383 -
Joined
-
Last visited
Everything posted by Raycoms
-
We are implementing minecolonies. A colony gets created around the center of the "TownHallBlock" you placed, when you place it the first time. The workerHuts (Lumberjack,miner etc) also get created at the place you first placed their "Hutblock". Now when I have the townhall in my hand and rightclick the bed, the colony gets created but the chest not placed. I only want to create the colony when I'm totally sure the chest has been placed.
-
I'm checking if it is my own block, but the problem is that sometimes when executing this action the block does not get placed (like when you rightclick a bed with your block in the hand) I need to be able to cancel the event and be able to detect if it really has been placed.
-
Just print out every item of the line: Minecraft.getMinecraft().getNetHandler().getPlayerInfo(Minecraft.getMinecraft().thePlayer.getUniqueID()).getResponseTime(); before you call it to check which one of them is null. Like Log.getLogger().info(getNetHandler() != null) etc for the playerinfo etc
-
Finally, I thought it was crashing in a completely other line for the whole time.
-
Put a debug point where it crashes and then start the game in debug mode until it reaches that line and then set a watch on all variables which are involved in that line.
-
Did you try to debug into it to check what of the items is null?
-
add a ")" ....
-
just before you call: Minecraft.getMinecraft().fontRendererObj.drawString("FPS: " + fps, 10, 10, Color.ORANGE.getRGB());
-
can you test: if(Minecraft.getMinecraft().fontRendererObj) != null) ?
-
"[08:15:30] [Client thread/ERROR] [FML]: Could not load vanilla model parent 'minecraft:item/generateed' for 'net.minecraft.client.renderer.block.model.ModelBlock@5ff6431a" I bet there is no "item/generateed" between the minecraft models.
-
Which line is line 148?
-
Solved it, Unittests were failing.
-
Just replace every reference of the other form in your whole code and models with the new one.
-
Is this line 148? if(Minecraft.getMinecraft().thePlayer != null){ ? Minecraft.getMinecraft() should only work on the clientSide. To be double sure with my event I did this: @SideOnly(Side.CLIENT) @SubscribeEvent public void onDebugOverlay(final RenderGameOverlayEvent.Text event) { if (FMLCommonHandler.instance().getEffectiveSide().isClient()) { ... Minecraft.getMinecraft()
-
Hi there, We're currently using the following event to handle our actions: @SubscribeEvent public void onPlayerInteract(@NotNull final PlayerInteractEvent.RightClickBlock event) { What we want is, if a player places one of our blocks certain actions should be executed. But, unfortunately, this event also gets called when the player right clicks a bed with the block or an itemRack or similar. The block doesn't get placed but the event does get executed. Is there a way around this? Thanks
-
Something with the forgegradle build changed?
-
When I build it locally with gradle it also doesn't deobfuscate it, seems like a problem with gradle.
-
How do I check it?
-
where can I check this? We cleaned the cache: https://www.dropbox.com/sh/9cnqcjl0nan57cy/AABwIl1FNcVF-SL_ak1tlv1ea/branch/version/1.11/minecolonies-universal-1.11-0.6.1982.jar?dl=0 And build again, does this work?
-
https://www.dropbox.com/sh/9cnqcjl0nan57cy/AAAOKw2mIOZKB4TxgLe7Dmbaa/branch/version/1.11/minecolonies-universal-1.11-0.6.1977.jar?dl=0
-
Yes, we're using travis with gradle to build it.
-
I'm building it like always, like I did in 1.10. We use a build engine to do that for us.
-
Hey there, I have the following class: public abstract class AbstractBlockHut extends Block implements ITileEntityProvider { public static final PropertyDirection FACING = BlockHorizontal.FACING; Users get the following errors: ---- Minecraft Crash Report ---- WARNING: coremods are present: LoadingPlugin (ChunkAnimator-MC1.11-1.2.jar) FMLPlugin (InventoryTweaks-1.62-dev-74.jar) Contact their authors BEFORE contacting forge // Why is it breaking Time: 12/10/16 3:42 PM Description: There was a severe problem during mod loading that has caused the game to fail net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from MineColonies (minecolonies) Caused by: java.lang.NoSuchFieldError: FACING at com.minecolonies.coremod.blocks.AbstractBlockHut.<clinit>(AbstractBlockHut.java:40) at com.minecolonies.coremod.blocks.ModBlocks.<clinit>(ModBlocks.java:15) at com.minecolonies.coremod.util.RecipeHandler.init(RecipeHandler.java:31) at com.minecolonies.coremod.MineColonies.init(MineColonies.java:100) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:616) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:243) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:221) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:145) at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:796) at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:331) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:519) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:350) at net.minecraft.client.main.Main.main(SourceFile:124) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.11 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_25, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 229474744 bytes (218 MB) / 606007296 bytes (577 MB) up to 4281597952 bytes (4083 MB) JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx4G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.35 Powered by Forge 13.19.1.2188 Optifine OptiFine_1.11_HD_U_B2 18 mods loaded, 18 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCHI mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UCHI FML{8.0.99.99} [Forge Mod Loader] (forge-1.11-13.19.1.2188.jar) UCHI forge{13.19.1.2188} [Minecraft Forge] (forge-1.11-13.19.1.2188.jar) UCHI AutoSapling{1.3.4} [AutoSapling] (Autosapling-1.3.4-MC1.11.jar) UCHI biomesoplenty{6.0.0.2125} [biomes O' Plenty] (BiomesOPlenty-1.11-6.0.0.2125-universal.jar) UCHI ChunkAnimator{1.2} [Chunk Animator] (ChunkAnimator-MC1.11-1.2.jar) UCHI gravestone{1.6.1} [Gravestone] (GraveStone Mod 1.6.1.jar) UCHI inventorytweaks{1.62-dev-74-f3105ea} [inventory Tweaks] (InventoryTweaks-1.62-dev-74.jar) UCHI jei{4.0.4.199} [Just Enough Items] (jei_1.11-4.0.4.199.jar) UCHI levelup{${version}} [Level Up!] (LevelUp!-0.13-1.11.jar) UCHE minecolonies{1.11-0.6.1977} [MineColonies] (minecolonies-universal-1.11-0.6.1977.jar) UCHI oreexcavation{1.3.52} [OreExcavation] (OreExcavation-1.3.52.jar) UCHI subcommonlib{1.1.3.0} [subaraki's Common Library] (petbuddy-1.11-2.3.1.1.jar) UCHI petbuddy{1.10.2 2.3.1.1} [Pet Buddy] (petbuddy-1.11-2.3.1.1.jar) UCHI roughmobs{1.0} [Rough Mobs] (roughMobs1.0.9-1.11.jar) UCHI torohealthmod{1.10.2-1} [ToroHealth Damage Indicators] (torohealth-1.11-2.jar) UCHI vc{v4.0.0a-mc1.11.0} [ViesCraft] (ViesCraft-4.0.0a-mc1.11.0.jar) UCHI xaerominimap{1.11.5} [Xaero's Minimap] (Xaeros_Minimap_FP1.11.5_Forge_1.11.jar) Loaded coremods (and transformers): LoadingPlugin (ChunkAnimator-MC1.11-1.2.jar) lumien.chunkanimator.asm.ClassTransformer FMLPlugin (InventoryTweaks-1.62-dev-74.jar) invtweaks.forge.asm.ContainerTransformer GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 376.09' Renderer: 'GeForce GTX 970M/PCIe/SSE2' OptiFine Version: OptiFine_1.11_HD_U_B2 Render Distance Chunks: 8 Mipmaps: 4 Anisotropic Filtering: 1 Antialiasing: 0 Multitexture: false Shaders: null OpenGlVersion: 4.5.0 NVIDIA 376.09 OpenGlRenderer: GeForce GTX 970M/PCIe/SSE2 OpenGlVendor: NVIDIA Corporation CpuCount: 8 Thanks
-
In 1.10 I stored item information in the onItemUse function to nbt to save the progress of a certain action. @NotNull @Override public EnumActionResult onItemUse( final ItemStack stack, final EntityPlayer playerIn, final World worldIn, final BlockPos pos, final EnumHand hand, final EnumFacing facing, final float hitX, final float hitY, final float hitZ) { if (!stack.hasTagCompound()) { stack.setTagCompound(new NBTTagCompound()); } final NBTTagCompound compound = stack.getTagCompound(); if (!compound.hasKey("pos1")) { BlockPosUtil.writeToNBT(compound, "pos1", pos); if (worldIn.isRemote) { LanguageHandler.sendPlayerLocalizedMessage(playerIn, "item.scepterSteel.point"); } return EnumActionResult.SUCCESS; } else if (!compound.hasKey("pos2")) { @NotNull final BlockPos pos1 = BlockPosUtil.readFromNBT(compound, "pos1"); @NotNull final BlockPos pos2 = pos; if (pos2.distanceSq(pos1) > 0) { BlockPosUtil.writeToNBT(compound, "pos2", pos2); if (worldIn.isRemote) { LanguageHandler.sendPlayerLocalizedMessage(playerIn, "item.scepterSteel.point2"); } return EnumActionResult.SUCCESS; } if (worldIn.isRemote) { LanguageHandler.sendPlayerLocalizedMessage(playerIn, "item.scepterSteel.samePoint"); } return EnumActionResult.FAIL; } else { @NotNull final BlockPos pos1 = BlockPosUtil.readFromNBT(compound, "pos1"); @NotNull final BlockPos pos2 = BlockPosUtil.readFromNBT(compound, "pos2"); if (!worldIn.isRemote) { saveStructure(worldIn, pos1, pos2, playerIn); } compound.removeTag("pos1"); compound.removeTag("pos2"); return EnumActionResult.SUCCESS; } } In 1.10 though, the onItemUse does not offer the itemStack and the position variable at the same time. I tried this but it won't work: @NotNull @Override public EnumActionResult onItemUse( final EntityPlayer playerIn, final World worldIn, final BlockPos pos, final EnumHand hand, final EnumFacing facing, final float hitX, final float hitY, final float hitZ) { ItemStack stack = playerIn.getActiveItemStack(); if (!stack.hasTagCompound()) { stack.setTagCompound(new NBTTagCompound()); } final NBTTagCompound compound = stack.getTagCompound(); if (!compound.hasKey("pos1")) { BlockPosUtil.writeToNBT(compound, "pos1", pos); if (worldIn.isRemote) { LanguageHandler.sendPlayerLocalizedMessage(playerIn, "item.scepterSteel.point"); } return EnumActionResult.SUCCESS; } else if (!compound.hasKey("pos2")) { @NotNull final BlockPos pos1 = BlockPosUtil.readFromNBT(compound, "pos1"); @NotNull final BlockPos pos2 = pos; if (pos2.distanceSq(pos1) > 0) { BlockPosUtil.writeToNBT(compound, "pos2", pos2); if (worldIn.isRemote) { LanguageHandler.sendPlayerLocalizedMessage(playerIn, "item.scepterSteel.point2"); } return EnumActionResult.SUCCESS; } if (worldIn.isRemote) { LanguageHandler.sendPlayerLocalizedMessage(playerIn, "item.scepterSteel.samePoint"); } return EnumActionResult.FAIL; } else { @NotNull final BlockPos pos1 = BlockPosUtil.readFromNBT(compound, "pos1"); @NotNull final BlockPos pos2 = BlockPosUtil.readFromNBT(compound, "pos2"); if (!worldIn.isRemote) { saveStructure(worldIn, pos1, pos2, playerIn); } compound.removeTag("pos1"); compound.removeTag("pos2"); return EnumActionResult.SUCCESS; } } What can I do to make it work again?
-
I'm currently porting our mod to 1.11 and I noticed that minecraft tries to load all our resources in lower case only. Do we have to change all the filenames to lowerCase or did I configure something wrongly?