-
Posts
47 -
Joined
-
Last visited
Everything posted by superminerJG
-
Container.
-
I don't see a GuiContainer. I see ShulkerBoxContainer, HopperContainer, LoomContainer, etc.
-
The GUI system is totally revamped right now. Even I don't get it.
-
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.
-
OOF please move to Modder Support
-
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?
-
Eclipse messing with decompiled MC source?
superminerJG replied to superminerJG's topic in Modder Support
[this is deleted] -
Eclipse messing with decompiled MC source?
superminerJG replied to superminerJG's topic in Modder Support
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. -
1.12.2 entity has a duplicate stat with launching
superminerJG replied to ijdtm7's topic in Modder Support
BTW, crash logs aren't enough. Do you happen to have the source code on GitHub? It would help quite a bit. -
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?
-
When 2 plants are next to eachother, they break? (1.12.2)
superminerJG replied to matthyplayz's topic in Modder Support
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! -
I'm used to loading from a special Eclipse folder. Do I simply run gradlew eclipse ? EDIT 2: well yes, but actually no
-
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)
-
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.
-
How do I get a NullPointerException here?
superminerJG replied to superminerJG's topic in Modder Support
Yeah. I used tutorial by Harry Talks, for the Machine stuff because I had no idea how that stuff works. -
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
-
I would suggest using something in the range 13-15, considering there are the 12 records already using 1-12.
-
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.
-
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);
-
Forge attempting to cast my pickaxe to a hoe?
superminerJG replied to superminerJG's topic in Modder Support
Oof, I didn't even realize! Thanks! -
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.
-
Forge 14.23.5.2678 attempts to cast to subclass
superminerJG posted a topic in Support & Bug Reports
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.