Jump to content

superminerJG

Members
  • Posts

    47
  • Joined

  • Last visited

Everything posted by superminerJG

  1. I don't see a GuiContainer. I see ShulkerBoxContainer, HopperContainer, LoomContainer, etc.
  2. The GUI system is totally revamped right now. Even I don't get it.
  3. I remember that a machine-like block has 4 things in 1.12.2: block, tile entity, container and GUI. It appears that there is Container, but not GUI. I would suggest looking at the decompiled code for the furnace and/or barrel.
  4. I have both JDK 8 and JDK 12. When I try to run Minecraft from Eclipse, ForgeGradle doesn't see my JDK 8, thus giving me: FAILURE: Build failed with an exception. * Where: Build file 'C:\Users\jeffg\Desktop\JGDev-Eclipse\Mods\Fluxed Machinery\build.gradle' line: 11 * What went wrong: A problem occurred evaluating root project 'Fluxed Machinery'. > Failed to apply plugin [id 'net.minecraftforge.gradle'] > Found java version 12.0.1. Minimum required is 1.8.0_101. Versions 11.0.0 and newer are not supported yet. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. ------------------------STUFF BELOW PROBABLY DOESN'T MATTER----------------------------------- * Get more help at https://help.gradle.org Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/4.9/userguide/command_line_interface.html#sec:command_line_warnings How do I get ForgeGradle to see java 8?
  5. Here is my procedure: Extracted Forge MDK into ...\Mods\Fluxed Machinery gradlew eclipse gradlew genEclipseRuns Imported to Eclipse as Gradle Project from ...\Mods Only these two ...\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.14.3-27.0.25_mapped_snapshot_20190621-1.14.2\forge-1.14.3-27.0.25_mapped_snapshot_20190621-1.14.2.jar ...\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.14.3-27.0.25_mapped_snapshot_20190621-1.14.2\forge-1.14.3-27.0.25_mapped_snapshot_20190621-1.14.2-launcher.jar seem to be like this at the moment.
  6. BTW, crash logs aren't enough. Do you happen to have the source code on GitHub? It would help quite a bit.
  7. MC 1.14.3 - Forge 27.0.25 When I open decompiled Minecraft source code, shows me this. I've already tried clicking the button higlighted in yellow in this image, reconfiguring, and doing it again. Do I need to do anything extra for this to work?
  8. return (worldIn.getLight(pos) >= 8 || worldIn.canSeeSky(pos)) && soil.getBlock() == ModBlocks.diamondCrop; This returns true if it has enough light or can see the sky and is placed on top of a diamond crop. And since you planted it on farmland, it breaks as soon as it's updated, since you said that it needs to be sitting on top of another diamond crop. Here is a potential solution: return (worldIn.getLight(pos) >= 8 || worldIn.canSeeSky(pos)) && this.canSustainBush(soil); Hope that helps!
  9. I'm used to loading from a special Eclipse folder. Do I simply run gradlew eclipse ? EDIT 2: well yes, but actually no
  10. Having experience frome 1.12.2 modding, the first thing I did after extracting the MDK zip was run gradlew setupDecompWorkspace on the project folder. Gradle fails, saying: FAILURE: Build failed with an exception. * What went wrong: Task 'setupDecompWorkspace' not found in root project 'Fluxed Machinery'. * Try: Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/4.9/userguide/command_line_interface.html#sec:command_line_warnings What am I supposed to do to setup Forge? (Please move to ForgeGradle if neccessary)
  11. Code is at https://github.com/JGgithub2018/Simple-Batteries The machine is the BlockAlloyFurnace and related classes. What I'm trying to accomplish is a way to only allow players to interact with the slots. Hoppers shouldn't insert anywhere. I've created an ItemHandler that cannot be modified externally as well.
  12. Yeah. I used tutorial by Harry Talks, for the Machine stuff because I had no idea how that stuff works.
  13. I have attempted to add an alloy furnace, and this has happened. I have no idea why the NullPointerException is thrown, and how I can fix it. Crash Log and GitHub repo
  14. I would suggest using something in the range 13-15, considering there are the 12 records already using 1-12.
  15. I am trying to implement an FE-storing item. However, I am quite confused. I don't know how the Capability implementation is supposed to fit together.
  16. Here's what he's suggesting: //Registering models //What I do: I call the interface Modelable instead of IHasModel. for (Item item : ModItems.ITEMS) { if (Item instanceof Modelable) { ((Modelable) item).registerModels(); } } //What he's suggesting (because all items have registerItemRenderer) for (Item item : ModItems.ITEMS) { Main.proxy.registerItemRenderer(/*i forgot what goes in here*/); } //Making an item in ModItems //what I use: constructor specifies item's name and creative tab public static final Item FIRST_ITEM = new FirstItem("first_item", CreativeTabs.MATERIALS); //what forge lets you do: look at how long that is... public static final Item SECOND_ITEM = new Item().setUnlocalizedName("second_item").setRegistryName("second_item").setCreativeTab(CreativeTabs.MATERIALS);
  17. So I'm trying to add tools, and when I have them all, Forge seems to crash on startup, throwing a RuntimeException. This appears to be due to Forge trying to make an ItemPickaxe reference refer to a subclass of ItemHoe. Here's a gist with the crash log. Using version 14.23.5.2800.
  18. I am using Eclipse to develop 1.12.2 mods, but because I can't use JDK 8 (you need an account and they ask for your job and I'm only 12 and I don't have a job) I use JDK 12. Sadly, I noticed the most weird error in one of Forge's internal classes, this one being net.minecraftforge.gradle.GradleForgeHacks. URLClassLoader urlClassLoader = (URLClassLoader) GradleStartCommon.class.getClassLoader(); Now, there is a problem! You just cast a class to one of its subclasses! I thought that would be obvious.
×
×
  • Create New...

Important Information

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