Everything posted by Draco18s
-
'Launching Client' has encountered a problem.
Click a file in the project somewhere. Eclipse has this habit of forgetting what project is open.
-
Can someone help me?
Because 1.7 is FOUR YEARS OLD. It's fucking ancient. Update.
-
Can someone help me?
No. Also your thread title is useless. A better title would have been "my player skills aren't saving"
-
Newbie problem
You never call this (based on the code you posted). Code Style Issue #3 You do not need this at all ever. All items need models and none of the information required to register one is private.
-
[1.12.2] Replace world renderer
ASM is java code that lets you modify java code while it's running. It's literally dangerous if not done correctly. But in the vast majority of situations you ever find yourself in, ASM is not needed. The order of things to try first goes: Own code (extending, implementing) Events (handle existing hooks) Reflection (access private values) Making a PR to Forge to insert new events (and then doing #2) Not doing anything at all (stop touching it) Starting a new project (I said stop) ASM
-
Anvil durability
Also note that anvils don't have durability the way items have durability. They have a probabilistic chance of going from "newly made" to "worn" to "damaged" to "gone." The falling action is also probabilistic: Number of blocks fallen * 5%.
-
PathNodeType being an enum is a big problem for custom path finding
: is a colon.
-
[1.12.2] Replace world renderer
Please do not instruct how to use ASM on the forums. Doing ASM wrong leaves your code fragile and prone to breaking unexpectedly, especially when other mods get involved, and when Minecraft crashes there will be no evidence that its YOUR code that caused the problem. If you do not know how to use ASM already, then you should not be using ASM.
-
[Solved][1.12] Entity#setAir(int air) does nothing
The only mod that I know of that did it is GalactiCraft and they had to completely rewrite entire classes (in non-compatible ways) to do it.
-
[Solved][1.12] Entity#setAir(int air) does nothing
Suffocation only occurs when an entity is inside a solid block or under water. If it's in "air" (or what the game believes to be air) the amount of air isn't even queried. For example: You can't drown in lava. Try it.
-
Recipe Result Data Same as Ingredient
You need a custom IRecipe implementation. Check out Choonster's iron-to-gold helmet upgrade recipe: https://github.com/Choonster-Minecraft-Mods/TestMod3/tree/1.12.1/src/main/resources/assets/testmod3
-
EnumFacing 1.12.2
Look at the vanilla Fence, Ladder, Door, Fence Gate, or other similar block.
-
[Solved][1.12.2] Json number value as byte
You don't have to write a JSON parser. All you have to do is ask the existing JSON parser to get the values you want. https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/api/recipes/RecipeToolMold.java#L248-L265
-
[SOLVED]Sword/Shield item problems
...Or just shove your ItemBlock into the ModItems.ITEMS array? Like the guy these people are copying from does anyway? You literally don't need a second array, ItemBlocks ARE ITEMS, that's the whole point.
-
How can I generate ore in the nether or end?
Something like "mod.eot3000"
-
How do I create custom loot tables for vanilla mobs? 1.12.2
Loot tables. There's a couple ways to go about it.
-
Minecraft Auto Repair Item 1.10.2
I did something like this once https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/components/ComponentRepairOther.java
-
Naming My Mod
Also, mod IDs can be up to 64 characters in length.
-
How do I add an empty item to a loot table?
You can't. The point of loot tables is to generate something when the dice roll up sixes. If you want it to be a Sometimes thing, look at how vanilla handles iron golem roses.
-
IHasBorked.it (lol)
With a null and no @ObjectHolder it stays null. I didn't say how to make it non-null just that it should be made so.
-
[1.12] Player control riding custom entity
Good, don't stringly type your code. http://wiki.c2.com/?StringlyTyped
-
[1.12.2] Any idea how to craft a potion on the crafting table?
NBT data tags. https://minecraft.gamepedia.com/Player.dat_format#Potion_Effects
-
I have a problem with coding a new mod
See where it says null? Make that null something else.
-
I have a problem with coding a new mod
Your string fields aren't final. Second, they are null.
-
Custom player rendering
A fix to what? What's broken? You haven't given us any information about how to diagnose what's wrong. All you've said is "doctor, it hurts."
IPS spam blocked by CleanTalk.