Everything posted by Draco18s
-
[1.12] Drawing Line
I've had problems with it in the past, mainly by either not rendering anything at all, or by ignoring the line width specified.
-
[1.12] Drawing Line
GL_LINES are 1 pixel thick lines (and may not render at all). Quads is better.
-
[Solved] Register Entities
Sorry, I forgot that the ID changed from a number to a resource location. The answer is still "make a resource location that is your entity's ID." It can be freaking anything and it doesn't bloody matter. All that matters is that it is unique within your mod.
-
TESR problems
You do it with IModels The thread title is someone trying to render items with a TESR and diesieben07 explains how a TESR isn't needed. Mind, the item you want to have spinning does need to be a TESR, but the everything else can be a baked model.
-
[Solved] Register Entities
The ID of your entity which is unique to your mod. Aka "pick a bloody number."
-
1.11.2 Infinite Render not applying
...and this is why models larger than 1x1x1 are bad
-
[1.10.2] [unsolved] How do i make a static line between 2 points?
I believe that got replaces with something like .startDrawingQuads(), though I can't remember what I was even working on that I had to update some tessellator code. Find some other examples (eg vanilla usage) and see what they do.
-
[1.12] Recipes Not Working
Please stop capitalizing every word in your sentence. It looks stupid.
-
[1.10.2] [unsolved] How do i make a static line between 2 points?
Some conversion needs to be done to update this to 1.10 (Tessellator got renamed and some of the methods refactored, but I was able to update those in another place fairly easily; this code never got ported), but here's how I drew a line between two blocks https://github.com/Draco18s/HarderStuff/blob/master/src/main/java/com/draco18s/hazards/client/HazardsClientEventHandler.java#L371
-
Trying to understand how Forge works
Yes it will. Because in order to load the class (before any of the class code is even EXECUTED) the JVM has to look at the class and go "ok, here are all of the outbound calls to other classes: are they loaded into the JVM? No? Make sure they exist." The dedicated server performs this check on net.minecraft.Minecraft and discovers that it doesn't exist. The JVM then terminates with a ClassNotFoundException. The JVM cannot know for sure that the if(isRemote) check won't ever pass.
-
[1.12] Is there a way to get the hardness of a block in a non-deprecated way?
Yes, but all of the IBlockState methods call the deprecated Block methods. But that doesn't mean you shouldn't be using them.
-
[1.12] Is there a way to get the hardness of a block in a non-deprecated way?
You should be getting the hardness from the IBlockState. If you don't have one, use Block#getDefaultState()
-
Trying to understand how Forge works
You can't just go around arbitrarily tagging methods with SideOnly Yes. A better name for the variable is isClient
-
Trying to understand how Forge works
//on client if(world.isRemote) { //this will crash the dedicated server Minecraft mc = Minecraft.getMinecraft(); }
-
Trying to understand how Forge works
That depends. Yes, if it is on the server, the code will run. But keep in mind that if the else case (run only on client) weill not prevent crashes from loading client size only classes
-
Random Item
What do you mean "store the value" and "random item"? What are you trying to store where?
-
[1.7.10] Custom mobs not playing (Unable to play unknown soundEvent)
1.7.10 is no longer supported here.
-
All my 1.10.2 Mods on the same workspace - Is it possible?
When I was developing several related mods (one of which was a library shared by the other four) I used one workspace, but different gradle commands to build them as separate jar files. For unrelated mods, I'd suggest Ugdhar's method.
-
Regarding Minecraft 1.12, And policy changes.
I don't think so. Modifying code via bytecode manipulation requires extensive knowledge of the JVM stack and instruction set. You can't really "copy-paste" an injection and expect it to work on a new class. It might work, it might not. To Lex: I support these changes. I will continue to advocate that things should be done through forge and will likely not help people learn how to use ASM, at least not in a public setting, but I would instruct (to the best of my ability) how to coremod safely. I did a lot of it in 1.7.10 (and I'm not necessarily proud of it) and for the folks that merit knowing should be informed. Maintaining compatibility is important. The one thing we will want is an easily accessible guide on signing jars and how to share the singing details correctly. It definitely isn't something i know how to do off the top of my head and I'm not confident that I'd be able to search out a solution either. (Can I search, sure, but I read between the lines that there might be a step that has to be done a certain way and don't know if I would be able to find details). I'm also glad to see the appointment of someone to handle lingering PR requests and filtering, I know I had some that took a while to be approved. Even if in some cases it was my own fault for not following the guidelines, but again, best practices aren't something most people can pick up in an afternoon. Its easy to make mistakes (like knowing that X mistake was made in several places) and I know you don't have much time to impart that knowledge yourself. Don't hesitate to find a few helpers for Mezz, as well. Don't want to see him getting bogged down either.
-
[1.8.9] Override Block
You mean replace the textures? Yeah, just put them into your assets directory so that their path is the same as the vanilla texture.
-
Idea: Surf Server Mods
Oh sure, I code for fun. But here's the thing: Ideas are cheap. I have hundreds. Why should I work on yours?
-
Idea: Surf Server Mods
Sooo.... Are you looking for someone to program this for you? Because the only people around here that would do it either: a) are programmers of dubious quality b) would charge freelance rates by the hour
-
SOMEBODY PLEASE PLEASE PLEASE HELP!
That's because installing forge is as follows: 1) Download installer 2) Run installer
-
[Unsolved][1.8]When Postinit's items are rendered the game crashes
Oh gods yes. So many things wrong with the op's code. ALL OF THE REASONS.
-
[1.11.2] NBT is not read correctly
Ah! if (!nbt.getBoolean("isPublic")) { ids = nbt.getIntArray("ids"); } else ids = null; You never set the isPublic field. You read the bool from the nbt and do the right thing reading more data, but you never set the field.
IPS spam blocked by CleanTalk.