-
Posts
2617 -
Joined
-
Last visited
-
Days Won
37
Everything posted by Ugdhar
-
Don't bump after 2 hours, give people some time. In a lot of places, it's really early morning and people are probably still sleeping.
-
[SOLVED] NullPointerException when giving BlockItem
Ugdhar replied to HappyHippo77's topic in Modder Support
Not what you want to hear, but you honestly should probably be learning basic Java/OOP. Not knowing what a constructor is is a bad thing. -
I believe it should be textures.item package, no s at the end.
-
You should post your entire mod as a github project, it helps people see the big picture. Have you used your IDEs debugger to ensure that this code is being called? I've seen a few threads about OreGen on here, so if you use the forum search you will probably find more information.
-
You can, but will not be able to receive support from this website since it is a really really old version. So you can still download it and use it, but if it breaks, you're on your own or will have to look elsewhere for support. The LTS link at the top of every page has more information on which versions will be supported going forward and why.
-
I haven't tried this using RegistryObject yet, but I believe Cadiboo has a custom spawn egg that takes a Supplier in the constructor in his example mod on github. https://github.com/Cadiboo/Example-Mod/blob/1.15.2/src/main/java/io/github/cadiboo/examplemod/item/ModdedSpawnEggItem.java I haven't messed with it myself, so your mileage may vary, but seems like a good place to start until something proper is done about the spawn egg mess.
-
my CodeChickenLib keeps crashing my minecraft
Ugdhar replied to matjay1978's topic in Support & Bug Reports
1.12 is no longer support on this forum due to age. Please update to a modern version to receive support. More information can be found in the LTS link at the top of every page. -
1.12 is no longer support on this forum due to age. Please update to a modern version to receive support. More information can be found in the LTS link at the top of every page.
-
The log files generated when you run through eclipse are in the run/logs folder within your project folder. If you're using debug, I would guess you'd need to check debug.log to see if your note gets printed. I just tested myself using the latest 1.15.2 build, and it worked fine for me. *edit: Not sure if it matters, but I would change the name of your logger so it is not exactly the same as the class name. Make it all caps or something
-
Reference for shapeless recipe json format: https://minecraft.gamepedia.com/Recipe#crafting_shapeless
-
Spend time browsing the minecraft sourcecode for things you are interested in trying or how they work. Make good use of google and the search on this forum. I find searching class/method names that I'm working with yields decent results most of the time. Make sure you have a decent grasp on Java, if you are confused by the basics (or even advanced features) of the language, stop to go back and figure them out.
-
Make sure you read the whole log
-
I don't use optifine, I would check their website for instructions. My best guess, not using it at all, would be run its installer again and look for an uninstall option. edit: and I would double check [C:\Users\hidve\AppData\Roaming\.minecraft\mods for Optifine, since it says that's where it is.
-
[1.14.4 / 1.15.2] Please make PotionBrewing.addMix public.
Ugdhar replied to Saturnin_UFOlud's topic in Suggestions
Brewing recipes can't be made with json at this time. This is a known/open issue, hopefully it gets worked on so ugly hacks don't have to be used to add brewing recipes https://github.com/MinecraftForge/MinecraftForge/issues/5814 In the meantime I found this link with some info on getting around it: https://www.minecraftforge.net/forum/topic/73496-1132-alternative-to-potionbrewingaddmix-solved/-
- 1
-
Looks like it is still trying to load Optifine
-
It appears you have the correct file, but you must have java ( use Java 8 ) installed. If you do, try running Jarfix (google will find it for you), as it appears your system associates .jar files with an archive manager rather than the JVM.
-
I know you said ignore, but if you'd like any feedback/opinions, Intellij Dark looks best/easiest to read IMO (I am using the dark forum theme).
-
Using Eclipse, I had to run the eclipse tasks (from the commandline) twice to get it to let me to view sources, both when originally setting up the project and when updating forge/mappings in build.gradle. Otherwise when trying to look up classes and such it would tell me source was not available. No clue why, but like I said, running the tasks once, then opening in eclipse won't let me view sources, close it down, rerun tasks again, and I can view sources. This was using eclipse 2019-12.
-
Yes, it's part of the minecraft sourcecode that is setup as part of a mod development project. I don't know anything about mcreator, so I cannot help with that in any way.
-
the entity models are java code, not json. They are in the net.minecraft.client.renderer.entity.model package.
-
[Solved][1.15.2]How do you generate custom ores
Ugdhar replied to Nexus_Developer's topic in Modder Support
Have you looked at the DefaultBiomeFeatures class to see how vanilla ores get spawned? What exactly have you tried? (post code/links to github) What were the exact results? I haven't tried it yet myself, but looking in the class I mentioned above shows things like public static void addOres(Biome biomeIn) { biomeIn.addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE.withConfiguration(new OreFeatureConfig(OreFeatureConfig.FillerBlockType.NATURAL_STONE, COAL_ORE, 17)).func_227228_a_(Placement.COUNT_RANGE.func_227446_a_(new CountRangeConfig(20, 0, 0, 128)))); biomeIn.addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE.withConfiguration(new OreFeatureConfig(OreFeatureConfig.FillerBlockType.NATURAL_STONE, IRON_ORE, 9)).func_227228_a_(Placement.COUNT_RANGE.func_227446_a_(new CountRangeConfig(20, 0, 0, 64)))); biomeIn.addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE.withConfiguration(new OreFeatureConfig(OreFeatureConfig.FillerBlockType.NATURAL_STONE, GOLD_ORE, 9)).func_227228_a_(Placement.COUNT_RANGE.func_227446_a_(new CountRangeConfig(2, 0, 0, 32)))); biomeIn.addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE.withConfiguration(new OreFeatureConfig(OreFeatureConfig.FillerBlockType.NATURAL_STONE, REDSTONE_ORE, 8)).func_227228_a_(Placement.COUNT_RANGE.func_227446_a_(new CountRangeConfig(8, 0, 0, 16)))); biomeIn.addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE.withConfiguration(new OreFeatureConfig(OreFeatureConfig.FillerBlockType.NATURAL_STONE, DIAMOND_ORE, 8)).func_227228_a_(Placement.COUNT_RANGE.func_227446_a_(new CountRangeConfig(1, 0, 0, 16)))); biomeIn.addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE.withConfiguration(new OreFeatureConfig(OreFeatureConfig.FillerBlockType.NATURAL_STONE, LAPIS_ORE, 7)).func_227228_a_(Placement.COUNT_DEPTH_AVERAGE.func_227446_a_(new DepthAverageConfig(1, 16, 16)))); } and seems like a good place to start looking -
Try deleting the config folder in the run folder of your project, then rerun.
-
1.7 is no longer supported on these forums due to age. Please update to a modern version to receive support. See the LTS link at the top of every page for more information.
-
1.8 is no longer supported on this forum due to age. Please update to a modern version to receive support. See the LTS link at the top of every page for more information.
-
Version folder doesn't appear in game files
Ugdhar replied to CytrynQa22's topic in Support & Bug Reports
Just for grins did you double check the top of the list? On mine, 1.12 is at the bottom, but the 1.15 versions are at the top. Just wanna make sure!