Jump to content

SeanOMik

Members
  • Posts

    98
  • Joined

  • Last visited

Everything posted by SeanOMik

  1. Yeah, I actually just finished one last night and everything with it seems to work, so I'm gonna try adding that functionality now. But where would I put that function, in my tile entity?
  2. Okay, well I fixed it, but it still seems to crash, here's the updated class: It seems to be the same error, because I had to shut the client down with a task manager it didn't create a crash report, but here's the log:
  3. Well I want it to only generate that one block, which is a plant. But I looked at your code, changed it slightly to make it work with the world gen type 'WorldGenBush' and it still crashes. realFoodsWorldGeneration.class Here's the new crash report: Btw the name of that crash report file indicates that its a server crash with the name 'crash-2018-05-11_21.02.51-server'
  4. Yeah seems like it is completely obsolete, this function: GameRegistry.registerCraftingHandler(new CraftingHandler()); Does not exist anymore.
  5. The title says the issue. The world gen class is registered as a worldgen class in the Init function of the main class using this line: GameRegistry.registerWorldGenerator(new realFoodsWorldGenerator(), 0); realFoodsWorldGenerator.class (The world gen class) And here's a crash report: Not sure what is causing it, I've tried 4 different runGenerator functions, and remade the script to see what the issue was, but I cant fix it with what ever I do...
  6. I couldn't find anything on it.
  7. Ya that's what I mean, but how could I do that?
  8. I have a pan that would be filled with dough. This would be put into the furnace and cooked to receive bread, but the pan would be disintegrated. And the point of this mod into be "realistic". So would it be possible to make the item stay inside the furnace, but not the crafting grid. I know how to make it stay in the crafting grid but not in the furnace.
  9. I fixed it. In the GUI class there's this line: private static final ResourceLocation TEXTURES = new ResourceLocation(Reference.MOD_ID + ":textures/gui/stove.png"); But instead of that it needs to be: private static final ResourceLocation TEXTURES = new ResourceLocation(Reference.MOD_ID, "textures/gui/stove.png"); That seemed to fix it for me, hopefully it will for the future people who see this post!
  10. Right now I'm working on a stove for my mod, I got the texture working and the model created for the block. But the GUI texture is not working at all, its just one huge purple and black block. I looked through the log and here's the error: [17:39:19] [main/WARN] [net.minecraft.client.renderer.texture.TextureManager]: Failed to load texture: realfoods:textures/gui/stove.png java.io.FileNotFoundException: realfoods:textures/gui/stove.png at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:69) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:65) ~[SimpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.texture.SimpleTexture.loadTexture(SimpleTexture.java:34) ~[SimpleTexture.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:69) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.bindTexture(TextureManager.java:44) [TextureManager.class:?] at com.SeanOMik.realfoods.objects.gui.GuiStove.drawGuiContainerBackgroundLayer(GuiStove.java:36) [GuiStove.class:?] at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:93) [GuiContainer.class:?] at net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:368) [ForgeHooksClient.class:?] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1177) [EntityRenderer.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1207) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:441) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_151] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_151] 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_151] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_151] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:25) [start/:?] The texture is there, but it isn't showing. So here's my GuiStove class: I'm not sure why this isn't working please help! EDIT: This is supposed to look something like a normal furnace!
  11. Yeah, I guess I'll fix those by making another forum post on it, as I have no idea what those are caused by... But thanks for teaching me how to read logs because that would help a lot!
  12. Dangit, sorry, I forgot here it is:
  13. That's insane, I don't see how a block class could get that long. What does that block do? Okay, I'll do that when I know this first block is working, I just want to get it working before I put even more time into it. But do you know any other reason that this could be happening?
  14. For some reason the post above wont show the other text I added so here: And here's the new tomato_plant class
  15. Okay so after adding the functions you wanted me to add, plus calling setDefaultState, I thought the blockClass was too big so I created another class that tomato_plant class extends I called it realDouble. I'll probably change it later but I would like to fix this soon, I've spent way to much time on this. Anyway, the block is placed and stays there, but it still doesn't have the texture and is just two purple and black blocks sitting on top of each other. realDouble.java The new, cleaner, tomato_plant class Also I didn't add any optional classes, just the needed ones.
  16. Not sure, do what MoeBoy76 said and post a screen shot or the text in the window
  17. Okay well it doesn't crash on boot anymore. Here's the new updated class tomato_plant.java When I place the block both blocks are placed for a moment but then disappears after a tick or so, its not broken because it doesn't drop anything, doesn't make a sound, and it doesn't make any particles. And I don't see anything in the log either:
  18. Right click on the .bat and select "edit", notepad should pop-up and then copy and paste all the text in the file and post it here.
  19. Yes, what's the file extension of the file you're using to start the server?
  20. No I don't, I'm new to modding, I'll look at those functions though
  21. Yeah I just fixed it, I was thinking quickly
  22. To your start.bat add -Xms=4G -Xms=4G That only applies to you if your using a bat file to start and on windows! Adding this is adding 4 gigabytes of dedicated RAM for your server, if the server slows down try to add more.
  23. yeah sorry, I added these: But its crashing with this error: java.lang.IllegalArgumentException: Don't know how to convert realfoods:tomato_plant[half=upper,variant=sunflower] back into data... 1. Where is the variant sunflower coming from? 2. What does this error mean? Btw I did change tomato_plant.json blockstate: tomato_plant.json (Blockstate) { "forge_marker": 1, "variants": { "half": { "lower": { "model": "realfoods:tomato_plant_bottom" }, "upper": { "model": "realfoods:tomato_plant_top" } } } } Edit: I added that code to the tomato plant block class (tomato_plant.java)
  24. Okay after searching through the code I found out how it works... After placing the bottom block it places a 2nd block of the same above it and changes the variant to half=upper. Making the texture change the upper block from the original lower block. So I scrapped the old tomato_plant class. But after using this function: @Override public void onBlockPlacedBy(World worldIn, BlockPos pos, IBlockState state, EntityLivingBase placer, ItemStack stack) { worldIn.setBlockState(pos.up(), this.getDefaultState()); } It places the block above the one placed by the player, but then maybe a tick later the block breaks and drops to the floor. How could I fix that issue, I looked through the Vanilla script and couldn't find where they do this. Also while I'm here, how could I change the variant of a block so the texture changes?
×
×
  • Create New...

Important Information

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