Jump to content

Matthbo

Members
  • Posts

    28
  • Joined

  • Last visited

Everything posted by Matthbo

  1. Oh i see the problem... Thanks for the help.
  2. I do call openGui: @Override public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumFacing side, float hitX, float hitY, float hitZ) { if(!world.isRemote) { player.openGui(MatthProject.instance, 10, world, pos.getX(), pos.getY(), pos.getZ()); //FMLNetworkHandler.openGui(player, MatthProject.instance, 10, world, pos.getX(), pos.getY(), pos.getZ()); } return true; } But I believe this is not the problem, I did everything as I used to do on a 1.7 mod. I didn't find any changes for 1.8.9 on the internet. For more code visit my github repo: https://github.com/Matthbo/MatthProject
  3. Hello, I'm having a strange problem I'm trying to open a gui when I rightclick a block, the problem is that nothing happens. I did some research and found that forge sees my GuiHandler class but doesn't register the getServerGuiElement & getClientGuiElement methods. Did I do something wrong? GuiHandler: public class GuiHandler implements IGuiHandler { @Override public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { return null; } @Override public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { if(ID == 10) return new GuiMachineBlock(); return null; } } Init: @Mod.EventHandler public void init(FMLInitializationEvent event){ proxy.init(); NetworkRegistry.INSTANCE.registerGuiHandler(MatthProject.instance, new GuiHandler()); } Debug:
  4. I'm updating to mc 1.8 but I can't seem to find a fix for this crash: ---- Minecraft Crash Report ---- // Daisy, daisy... Time: 7-2-15 16:35 Description: Tesselating block in world java.lang.ClassCastException: matthbo.mods.darkworld.block.BlockDarkTallGrass cannot be cast to net.minecraft.block.BlockLiquid at net.minecraft.client.renderer.BlockFluidRenderer.renderFluid(BlockFluidRenderer.java:39) at net.minecraft.client.renderer.BlockRendererDispatcher.renderBlock(BlockRendererDispatcher.java:72) at net.minecraft.client.renderer.chunk.RenderChunk.rebuildChunk(RenderChunk.java:178) at net.minecraft.client.renderer.chunk.ChunkRenderWorker.processTask(ChunkRenderWorker.java:100) at net.minecraft.client.renderer.chunk.ChunkRenderDispatcher.updateChunkNow(ChunkRenderDispatcher.java:144) at net.minecraft.client.renderer.RenderGlobal.setupTerrain(RenderGlobal.java:882) at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1264) at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1207) at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1032) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1049) at net.minecraft.client.Minecraft.run(Minecraft.java:345) at net.minecraft.client.main.Main.main(Main.java:117) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) at GradleStart.main(GradleStart.java:45) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at net.minecraft.client.renderer.BlockFluidRenderer.renderFluid(BlockFluidRenderer.java:39) -- Block being tesselated -- Details: Block type: ID #211 (tile.darkworld:darktallgrass // matthbo.mods.darkworld.block.BlockDarkTallGrass) Block data value: 0 / 0x0 / 0b0000 Block location: World: (172,77,265), Chunk: (at 12,4,9 in 10,16; contains blocks 160,0,256 to 175,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511) Stacktrace: at net.minecraft.client.renderer.BlockRendererDispatcher.renderBlock(BlockRendererDispatcher.java:72) at net.minecraft.client.renderer.chunk.RenderChunk.rebuildChunk(RenderChunk.java:178) at net.minecraft.client.renderer.chunk.ChunkRenderWorker.processTask(ChunkRenderWorker.java:100) at net.minecraft.client.renderer.chunk.ChunkRenderDispatcher.updateChunkNow(ChunkRenderDispatcher.java:144) at net.minecraft.client.renderer.RenderGlobal.setupTerrain(RenderGlobal.java:882) at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1264) at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1207) -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityPlayerSP['Player828'/160, l='MpServer', x=158,40, y=67,47, z=245,50]] Chunk stats: MultiplayerChunkCache: 10, 10 Level seed: 0 Level generator: ID 00 - default, ver 1. Features enabled: false Level generator options: Level spawn location: 164,00,64,00,252,00 - World: (164,64,252), Chunk: (at 4,4,12 in 10,15; contains blocks 160,0,240 to 175,255,255), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511) Level time: 55 game time, 55 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: 17 total; [EntitySheep['Sheep'/102, l='MpServer', x=152,50, y=69,00, z=251,50], EntitySheep['Sheep'/103, l='MpServer', x=154,19, y=69,00, z=252,44], EntitySheep['Sheep'/101, l='MpServer', x=154,50, y=69,00, z=249,50], EntitySheep['Sheep'/104, l='MpServer', x=155,53, y=70,00, z=253,81], EntityPlayerSP['Player828'/160, l='MpServer', x=158,40, y=67,47, z=245,50], EntityWolf['Wolf'/85, l='MpServer', x=144,50, y=69,00, z=259,50], EntitySheep['Sheep'/84, l='MpServer', x=148,50, y=68,00, z=252,50], EntityWolf['Wolf'/87, l='MpServer', x=142,31, y=70,06, z=259,91], EntityWolf['Wolf'/86, l='MpServer', x=142,50, y=69,00, z=258,50], EntitySheep['Sheep'/81, l='MpServer', x=144,50, y=69,00, z=259,50], EntitySheep['Sheep'/83, l='MpServer', x=148,16, y=69,00, z=257,13], EntitySheep['Sheep'/82, l='MpServer', x=147,44, y=69,00, z=256,44], EntityChicken['Chicken'/92, l='MpServer', x=146,50, y=68,00, z=254,50], EntityChicken['Chicken'/89, l='MpServer', x=151,50, y=68,00, z=248,50], EntityWolf['Wolf'/88, l='MpServer', x=140,81, y=69,00, z=259,16], EntityChicken['Chicken'/91, l='MpServer', x=146,50, y=68,00, z=254,50], EntityChicken['Chicken'/90, l='MpServer', x=150,50, y=68,00, z=251,50]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:350) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2489) at net.minecraft.client.Minecraft.run(Minecraft.java:366) at net.minecraft.client.main.Main.main(Main.java:117) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) at GradleStart.main(GradleStart.java:45) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134) -- System Details -- Details: Minecraft Version: 1.8 Operating System: Windows 8.1 (amd64) version 6.3 Java Version: 1.7.0_67, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 647243840 bytes (617 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95 FML: MCP v9.10 FML v8.0.26.1305 Minecraft Forge 11.14.1.1305 6 mods loaded, 6 mods active mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available FML{8.0.26.1305} [Forge Mod Loader] (forgeSrc-1.8-11.14.1.1305.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{11.14.1.1305} [Minecraft Forge] (forgeSrc-1.8-11.14.1.1305.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available DarkWorld{1.7.10-0.2} [Dark World] (main) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Testmod{1.7.10-1.1} [Test Mod] (main) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available TMM{0.1} [Too Many Mods] (main) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Launched Version: 1.8 LWJGL: 2.9.1 OpenGL: GeForce GT 630/PCIe/SSE2 GL version 4.5.0 NVIDIA 347.25, NVIDIA Corporation 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: No 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) My Github repo: http://github.com/matthbo/darkworld
      • 1
      • Like
  5. thanks! I tried using setGraphicsLevel before but it didn't work(I just tried to use the two fields but that didn't work of course), but now it does
  6. I'm making custom leaves and I would like to make leaves opaque when needed, but I have no idea how to get a players graphics level. I've tried Minecraft.isFancyGraphicsEnabled() but that only works in singleplayer (why is isOpaqueCube() needed in multiplayer?).
  7. http://en.lmgtfy.com/?q=java+break+statements
  8. I don't know know what "sender" is, but looking at the code it should work.
  9. A lot of mods that require coremods do this
  10. I think the best is to upload the normal mod and core mod, and let the normal mod download the core mod if it's missing. if you do that people only need to download the normal mod.
  11. if you look at the WorldGenMinable(Main.endOre, 40)) you see that the standard target block is stone, you can change this to: WorldGenMinable(block, blocksPerVein, targetBlock))
  12. now that normal stone is changed to my custom stone it doesn't generate caves and such. I know it's because of my custom block because it removes biomes top and filler blocks but it can't remove my custom stone.
  13. thanks for helping! this fixes everything!
  14. found the solution, I changed createChunkProvider to createChunkGenerator. stupid mistake here but I have another problem now. not only all the stone is changed to my custom stone, the biome blocks (filler and top blocks generated by a biome) is also my custom stone.
  15. I think I know what the problem is, It doesn't even read the ChunkProvider class. I'm looking for a solution right now... Code: Main class: https://github.com/Matthbo/DarkWorld/blob/master/src/main/java/matthbo/mods/darkworld/DarkWorld.java World Provider: https://github.com/Matthbo/DarkWorld/blob/master/src/main/java/matthbo/mods/darkworld/world/WorldProviderDarkWorld.java Chunk Provider: https://github.com/Matthbo/DarkWorld/blob/master/src/main/java/matthbo/mods/darkworld/world/ChunkProviderDarkWorldBeta.java
  16. I would like to change every vanilla block to my own block, only for my dimension I've been trying to change some stuff in the func_147424_a method but nothing changed
  17. This is my github repo for the mod: https://github.com/Matthbo/DarkWorld
  18. Hi guys, I'm making a mod which adds a new dimension. I want to spawn biomes using custom blocks. The point is that I don't know how to generate custom stone instead of minecraft's stone. I have been looking in the ChunkProvider and tried some things but that doesn't work.
  19. maybe this will help http://www.minecraftforge.net/wiki/Create_a_Fluid#Create_the_fluid this may also adjust the speed it pushes the player
  20. i can't seem to find the ModFluids.init(); in the main class
  21. 'Ruby' needs to change to 'rubymod' since that's the modID: @Override public void registerBlockIcons(IIconRegister p_149651_1_) { this.blockIcon = p_149651_1_.registerIcon("rubymod:oreRuby"); }
  22. for example: @SideOnly(Side.CLIENT) public void registerIcons(IIconRegister reg){ this.itemIcon = reg.registerIcon("ruby mod : rubypickaxe"); }
  23. there is a wiki page for addons, it's incomplete but it may become handy http://www.minecraftforge.net/wiki/Developing_Addons_for_Existing_Mods
  24. you need to register like this: "modid : textureName" modid is the lower case modid the textureName is the name of the texture
  25. you need to make the video public if you want help
×
×
  • Create New...

Important Information

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