-
Posts
2793 -
Joined
-
Last visited
-
Days Won
44
Everything posted by Ugdhar
-
".Effect" is StrikeThrough in My food Class - 1.15.2
Ugdhar replied to thepillager's topic in Modder Support
It has a capital B, open the Food class and find the nested Builder class. You should be able to right click on the method name in your own code and go to definition or something like that (I don't use IntelliJ so don't know what they call it, eclipse says "Open Declaration") -
".Effect" is StrikeThrough in My food Class - 1.15.2
Ugdhar replied to thepillager's topic in Modder Support
Look at the Food.Builder class, it tells you why it is deprecated right in the code. -
[SOLVED] Problem with 1.16.1 mod! Armor issues.
Ugdhar replied to Anonomys's topic in Modder Support
Just a heads up, it probably took so long because you included some folders that were not necessary for a buildable repo. You do not need: .gradle folder .idea folder build folder -
Your debug.log will tell you exactly why. Please post it
-
If you kept reading the posts after the original poster, you would see that really old versions are no longer supported. Please update to a modern version if you wish to receive support. More information on supported versions can be found in the LTS link at the top of every page.
-
No, however whoever is running the server will need to allow and forward the port the server using through their router in order to make it visible to the outside world, and the remote player would need to know the public IP address (not the 192.168.x.x IP of the internal computer) of the host in order to connect.
-
What does your main mod class look like?
-
Can you cite a source on that? I'm almost positive I've seen it advised to do stuff in CommonSetup (using DeferredWorkQueue for thread safety which I forgot to mention above) *edit: also, was just looking at Tropicraft, and it does the ore generation setup in FLMCommonSetupEvent (https://github.com/Tropicraft/Tropicraft/blob/17bcace66cbcbe1535e52a50bab48ccdd533ab9a/src/main/java/net/tropicraft/Tropicraft.java#L125) Thanks!
-
Most of the changes from 1.14 -> 1.15 were rendering I believe. https://gist.github.com/williewillus/30d7e3f775fe93c503bddf054ef3f93e has info on some of the 1.15 changes
-
Looks like you're trying to setup ore generation in your constructor, which is before any registry stuff has happened, so your ore doesn't exist. Try moving ore generation setup into FMLCommonSetupEvent Also, you should update to 1.15.2, as 1.14.4 is going to be out of support once there is a RB for 1.16.x.
-
Double check your system environment variables for I think it's JAVA_OPTS or something like that that is setting -Xmx2G
-
If you're trying to follow a tutorial, use these: https://wiki.mcjty.eu/modding/index.php?title=YouTube-Tutorials They're the most up to date, and best laid out, and are the ones suggested if you ask about tutorials on the forge discord. McJty is also one of the few tutorial makers that doesn't force you to sit there and watch a video, as he has a text based version to go with them.
-
Positive, any perceived order after Blocks -> Items could change at any time. I've seen people that know what they're talking about (including Lex) say it a million times.
-
Just to make sure this fact is known, the only order of registration that you can rely on is Blocks -> Items -> Everything else, in a non-specified order. The order of any other registrations besides blocks and items is subject to change, even between different runs.
-
There are no updates for the 1.16.1 mappings currently. It is being worked on.
-
How To Add A New Kind Of Tree To The Game In 1.15?
Ugdhar replied to Luo_Shijian's topic in Modder Support
Have you looked at the DefaultBiomeFeatures class? It is in the net.minecraft.world.biome package. It contains methods such as addForestTrees and addOakAndSpruceTrees that you can look at to see how vanilla generates trees. -
The official documentation is not meant to be a tutorial. It's more of a getting started and concepts guide. If you click the "Youtube tutorial step by step" link on that page you linked to, you'll get the txt version of the tutorials.
-
Can you run the eclipse gradle task?
-
The gradle project is still not setup, if you right-click on the project, select Gradle -> Refresh Gradle Project it should fix that. If it errors, try the gradlew --stop from the commandline in your project folder. If it gives errors after that, please post them so we can see what's up.
-
I would start with the MDK, because it looks like you haven't got a mods.toml in your resources anywhere. You are also not using any sort of useful package name. Using the MDK as it comes will start you out with a skeleton project you can edit to your needs. Once you've extracted the appropriate MDK files into a folder, import that folder into eclipse as an existing gradle project. It will do it's thing (if it doesn't, from the cmd prompt in your project folder, try gradlew --stop then refresh gradle projects) When that finishes, run the genEclipseRuns gradle task. Then you'll be ready to rock.
-
What would an official example look like? I mean, we can read the sourcecode. . .I don't think it gets more official than that. I've found tons and tons of examples searching the forums and google for what I was looking for, sometimes even finding stuff I didn't know about. And as long as it's a supported version, we are free to ask questions here and on the forge discord. The forge docs give all the information needed to get a workspace setup, and as far as the basics, everyone that's ever made (or tried making) a tutorial at least makes it to blocks and items I guess what I should ask is, what exactly are you looking for? And of course, the forge documentation is on github, so if you'd like something added/changed, you can make contributions/pull requests.
-
There's no manual, but you can look at the code of both forge stuff and vanilla MC stuff within your IDE. It is also searchable. Also, if you are unaware, definitely learn features of your IDE like looking up call hierarchy (will show places where the method/field is called from) and looking up type hierarchy (will show the tree of super/subclasses for the selected class). Things like this are invaluable.
-
Step 1: Learn Java Here are some links to help you get started Official documentation: https://docs.oracle.com/javase/tutorial/ Absolute basics with an interactive editor: https://www.codecademy.com/learn/learn-java Ongoing online course with assignments: https://java-programming.mooc.fi/ Once you have worked on learning Java for a few weeks, use the Docs link at the top of the forums here, and start from the Getting Started section.
-
You should elaborate on this, you will likely get a better response