Jump to content

OldManMorris

Members
  • Posts

    15
  • Joined

  • Last visited

Everything posted by OldManMorris

  1. Is there a way to selectively remove vanilla biomes (e.g. jungle) from spawning? The procedure for 1.12 doesn't work in 1.14
  2. I currently have my library of schematics (.nbt) in a file external to my mod. I would like to move the schematics into the resources/data portion of the mod but I can't figure out how to read/write access them from my code. I can't find an example of this in any existing mods. Any help would be appreciated
  3. This is works in 1.14.3 but the event is not called in 1.14.4. Same code, different results. Quite frustrating. What's going on? @SubscribeEvent public static void onBreak(final BlockEvent.BreakEvent event) {
  4. I found the solution inside WorldRenderer. Here's my slightly modified version: BlockPos blockpos = pos; IBlockState iblockstate = this.world.getBlockState(blockpos); red = ((color >> 16) & 0xff); green = ((color >> & 0xff) / 255f; blue = ((color) & 0xff) / 255f; alpha = 1.0f; GlStateManager.pushMatrix(); GlStateManager.enableBlend(); GlStateManager.blendFunc(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA); GlStateManager.disableDepthTest(); GlStateManager.lineWidth(3.0F); GlStateManager.disableTexture2D(); GlStateManager.depthMask(false); GlStateManager.matrixMode(5889); GlStateManager.scalef(1.0F, 1.0F, 0.999F); double d0 = player.lastTickPosX + (player.posX - player.lastTickPosX) * (double) partialTicks; double d1 = player.lastTickPosY + (player.posY - player.lastTickPosY) * (double) partialTicks; double d2 = player.lastTickPosZ + (player.posZ - player.lastTickPosZ) * (double) partialTicks; WorldRenderer.drawShape(iblockstate.getShape(this.world, blockpos), (double) blockpos.getX() - d0 - 1, (double) blockpos.getY() - d1, (double) blockpos.getZ() - d2, red, green, blue, 1.0F); GlStateManager.popMatrix(); GlStateManager.matrixMode(5888); GlStateManager.depthMask(true); GlStateManager.enableDepthTest(); GlStateManager.enableTexture2D(); GlStateManager.disableBlend();
  5. If it works for you, then the issue is probably in my configuration somehow. Still can't get it to work but I'm setting it aside for now till I can find 1.13/1.14 example that works. It works fine in my 1.12.2 version. Again, thanks for your time and help.
  6. OK. They're on https://github.com/ericlmorris/merlinsforge/tree/master/java BTW: Thanks.
  7. AxisAlignedBB box = new AxisAlignedBB(pos).expand(1, 1, 1); red = ((color >> 16) & 0xff); green =((color >> & 0xff) / 255f; blue = ((color) & 0xff) / 255f; alpha = 1.0f; GlStateManager.pushMatrix(); GlStateManager.disableTexture2D(); GlStateManager.disableDepthTest(); GlStateManager.enableBlend(); GlStateManager.blendFunc(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA); WorldRenderer.drawSelectionBoundingBox(box, red, green, blue, alpha); GlStateManager.enableDepthTest(); GlStateManager.disableBlend(); GlStateManager.enableTexture2D(); GlStateManager.popMatrix();
  8. I'm upgrading my mod from 1.12.2 to 1.13.2 and the block highlighting (WorldRenderer.drawSelectionBoundingBox(box, red, green, blue, alpha);) produces a miniature set of block images in a cluster rather than highlighting the blocks themselves as in DrawBlockHighlightEvent. Does anyone know how the new WorlRenderer/Bufferbuilder parameters need to be set? Thanks.
  9. I really appreciate your help and patience. Thank you very much.
  10. Got it. Apparently ran successfully. Thanks. Any idea why the windows installer didn't work? forge jar results.txt
  11. I'm running Java 151 under Windows 10 Creator. Minecraft the game runs fine. My development environment, Eclipse Neon, works fine with 1.12 v2387. When I download the Windows launcher for the recommended 1.12.2, it won't launch. There's no log message or error message to say what's wrong. It may have something to do with the Environment Variables but JAVA_HOME is set and working for my existing configuration. Any help would be appreciated.
  12. You asked the perfect question. I was getting the client-side world: player = ClientProxy.getClientPlayer(); world = player.world; When I shifted to client/server world, things worked just fine. I didn't realize there was a difference until now. Thanks for the quick reply and assistance.
  13. Any ideas? I'm stumped. Here's the code snippet: private static void buildSchematic() { // scan the structure and output blocks to world for (int ix = 0; ix < width; ++ix) { for (int iy = 0; iy < height; ++iy) { for (int iz = 0; iz < length; ++iz) { // locate the block to be loaded at this position int index = getIndex(ix, iy, iz); // get the block using the id Block blox = Block.getBlockById(blocks[index]); // set the block position in the world BlockPos pos = new BlockPos(player.posX + ix, player.posY + iy, player.posZ + iz); // get blockstate IBlockState iblockstate = world.getBlockState(pos); // set the block world.setBlockState(pos, blox.getDefaultState()); System.out.println("blox:" + blox + "/" + (player.posX + ix) + "/" + (player.posY + iy) + "/" + (player.posZ + iz)); } } } The loop and its calling method complete then comes this: Here's the error: [14:37:40] [Server thread/INFO]: Stopping server [14:37:40] [Server thread/INFO]: Saving players [14:37:40] [Server thread/INFO]: Player755 lost connection: TextComponent{text='Server closed', siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}} [14:37:40] [Server thread/INFO]: Player755 left the game [14:37:40] [Server thread/INFO]: Stopping singleplayer server as player logged out [14:37:40] [Server thread/INFO]: Saving worlds [14:37:40] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld [14:37:41] [Server thread/INFO]: Saving chunks for level 'New World'/Nether [14:37:41] [Server thread/INFO]: Saving chunks for level 'New World'/The End [14:37:41] [Server thread/INFO] [FML]: Unloading dimension 0 [14:37:41] [Server thread/INFO] [FML]: Unloading dimension -1 [14:37:41] [Server thread/INFO] [FML]: Unloading dimension 1 [14:37:41] [Server thread/INFO] [FML]: Applying holder lookups [14:37:41] [Server thread/INFO] [FML]: Holder lookups applied [14:37:42] [Client thread/FATAL]: Unreported exception thrown! java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextNode(Unknown Source) ~[?:1.8.0_131] at java.util.HashMap$KeyIterator.next(Unknown Source) ~[?:1.8.0_131] at net.minecraft.client.renderer.RenderGlobal.updateClouds(RenderGlobal.java:1208) ~[RenderGlobal.class:?] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1869) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1119) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:407) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_131] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_131] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_131] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_131] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_131] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_131] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] [14:37:42] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:600]: ---- Minecraft Crash Report ---- // Quite honestly, I wouldn't worry myself about that. Time: 6/24/17 2:37 PM Description: Unexpected error java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextNode(Unknown Source) at java.util.HashMap$KeyIterator.next(Unknown Source) at net.minecraft.client.renderer.RenderGlobal.updateClouds(RenderGlobal.java:1208) at net.minecraft.client.Minecraft.runTick(Minecraft.java:1869) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1119) at net.minecraft.client.Minecraft.run(Minecraft.java:407) at net.minecraft.client.main.Main.main(Main.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Client thread Stacktrace: at java.util.HashMap$HashIterator.nextNode(Unknown Source) at java.util.HashMap$KeyIterator.next(Unknown Source) at net.minecraft.client.renderer.RenderGlobal.updateClouds(RenderGlobal.java:1208) -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityPlayerSP['Player755'/122, l='MpServer', x=-355.50, y=4.00, z=-1744.50]] Chunk stats: MultiplayerChunkCache: 552, 552 Level seed: 0 Level generator: ID 01 - flat, ver 0. Features enabled: false Level generator options: Level spawn location: World: (-349,4,-1735), Chunk: (at 3,0,9 in -22,-109; contains blocks -352,0,-1744 to -337,255,-1729), Region: (-1,-4; contains chunks -32,-128 to -1,-97, blocks -512,0,-2048 to -1,255,-1537) Level time: 3159 game time, 3159 day time Level dimension: 0 Level storage version: 0x00000 - Unknown? Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false Forced entities: 40 total; [EntitySlime['Slime'/69, l='MpServer', x=-334.01, y=5.02, z=-1675.64], EntityPig['Pig'/83, l='MpServer', x=-309.50, y=4.00, z=-1784.50], EntityChicken['Chicken'/84, l='MpServer', x=-304.50, y=4.00, z=-1782.50], EntityChicken['Chicken'/85, l='MpServer', x=-306.12, y=4.00, z=-1779.88], EntitySlime['Slime'/87, l='MpServer', x=-306.89, y=4.00, z=-1667.13], EntitySlime['Slime'/24, l='MpServer', x=-426.28, y=4.00, z=-1782.61], EntitySlime['Slime'/89, l='MpServer', x=-309.71, y=5.17, z=-1666.27], EntityChicken['Chicken'/90, l='MpServer', x=-283.79, y=4.00, z=-1779.58], EntitySlime['Slime'/91, l='MpServer', x=-314.12, y=4.00, z=-1760.47], EntitySlime['Slime'/92, l='MpServer', x=-288.85, y=4.00, z=-1666.35], EntityChicken['Chicken'/29, l='MpServer', x=-433.50, y=4.00, z=-1668.50], EntitySlime['Slime'/93, l='MpServer', x=-304.78, y=4.00, z=-1665.81], EntitySlime['Slime'/94, l='MpServer', x=-304.38, y=4.00, z=-1683.90], EntitySlime['Slime'/21087, l='MpServer', x=-425.93, y=4.00, z=-1783.59], EntitySlime['Slime'/96, l='MpServer', x=-287.56, y=4.00, z=-1819.72], EntitySlime['Slime'/32, l='MpServer', x=-423.14, y=4.42, z=-1722.02], EntitySlime['Slime'/33, l='MpServer', x=-414.96, y=4.42, z=-1696.55], EntitySlime['Slime'/34, l='MpServer', x=-418.81, y=4.50, z=-1691.26], EntitySlime['Slime'/35, l='MpServer', x=-427.28, y=5.02, z=-1669.36], EntityChicken['Chicken'/36, l='MpServer', x=-436.07, y=4.00, z=-1672.07], EntitySlime['Slime'/100, l='MpServer', x=-276.76, y=5.25, z=-1787.53], EntitySlime['Slime'/38, l='MpServer', x=-418.15, y=4.00, z=-1677.09], EntitySlime['Slime'/102, l='MpServer', x=-280.27, y=4.42, z=-1749.22], EntitySlime['Slime'/39, l='MpServer', x=-409.50, y=4.00, z=-1687.00], EntitySlime['Slime'/8935, l='MpServer', x=-416.71, y=5.00, z=-1679.13], EntitySlime['Slime'/40, l='MpServer', x=-396.66, y=4.00, z=-1701.54], EntityPlayerSP['Player755'/122, l='MpServer', x=-355.50, y=4.00, z=-1744.50], EntitySlime['Slime'/41, l='MpServer', x=-386.88, y=4.00, z=-1704.53], EntitySlime['Slime'/42, l='MpServer', x=-379.03, y=5.18, z=-1702.83], EntitySlime['Slime'/58410, l='MpServer', x=-390.63, y=4.12, z=-1694.21], EntitySlime['Slime'/43, l='MpServer', x=-384.13, y=4.00, z=-1692.61], EntitySlime['Slime'/44, l='MpServer', x=-407.77, y=5.25, z=-1686.81], EntitySlime['Slime'/53548, l='MpServer', x=-301.66, y=4.00, z=-1670.17], EntitySlime['Slime'/45, l='MpServer', x=-383.15, y=4.00, z=-1695.91], EntitySlime['Slime'/23213, l='MpServer', x=-335.89, y=4.80, z=-1668.41], EntitySlime['Slime'/46, l='MpServer', x=-402.71, y=5.18, z=-1687.95], EntitySlime['Slime'/51, l='MpServer', x=-394.51, y=4.00, z=-1705.59], EntitySlime['Slime'/60, l='MpServer', x=-335.32, y=4.00, z=-1683.37], EntitySlime['Slime'/61, l='MpServer', x=-346.79, y=4.00, z=-1687.60], EntitySlime['Slime'/58430, l='MpServer', x=-279.85, y=4.00, z=-1814.84]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:456) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2774) at net.minecraft.client.Minecraft.run(Minecraft.java:436) at net.minecraft.client.main.Main.main(Main.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) -- System Details -- Details: Minecraft Version: 1.11.2 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_131, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 561722968 bytes (535 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.38 Powered by Forge 13.20.0.2228 5 mods loaded, 5 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCHIJAAAA minecraft{1.11.2} [Minecraft] (minecraft.jar) UCHIJAAAA mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UCHIJAAAA FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.11.2-13.20.0.2228.jar) UCHIJAAAA forge{13.20.0.2228} [Minecraft Forge] (forgeSrc-1.11.2-13.20.0.2228.jar) UCHIJAAAA merlinsbuildings{1.0} [merlinsbuildings] (bin) Loaded coremods (and transformers): GL info: ' Vendor: 'Intel' Version: '4.4.0 - Build 21.20.16.4534' Renderer: 'Intel(R) HD Graphics 620' Launched Version: 1.11.2 LWJGL: 2.9.4 OpenGL: Intel(R) HD Graphics 620 GL version 4.4.0 - Build 21.20.16.4534, Intel GL Caps: Using GL 1.3 multitexturing. Using GL 1.3 texture combiners. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Shaders are available because OpenGL 2.1 is supported. VBOs are available because OpenGL 1.5 is supported. Using VBOs: Yes Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: Current Language: English (US) Profiler Position: N/A (disabled) CPU: 4x Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz [14:37:42] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:600]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\ericl\Desktop\Minecraft\Development-1.11.2\MerlinsBuildings\forge-1.11.2-13.20.0.2228-mdk\run\.\crash-reports\crash-2017-06-24_14.37.42-client.txt AL lib: (EE) alc_cleanup: 1 device not closed Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
×
×
  • Create New...

Important Information

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