Everything posted by Draco18s
-
[1.12.2] IBakedModel help
And where's that invoked from. Ultimately I need to know the IBakedModel modelMain object originates, as by the time it gets to BakedModelCurrencyFinalized, it's null.
-
Proxy system failed. Again.
https://github.com/swagster43/CardCraft---Base/blob/master/src/main/java/com/cardcraft/ccbase/proxy/ClientProxy.java#L12 There is no reason to rebuild the model resource location like this. item.getResourceName().toString() works just fine. Related to Code Style #3, you do not need this function. Using a class (ItemBase) for code reuse like this is an antipattern.
-
[1.12.2] IBakedModel help
Where is this invoked from?
-
Proxy system failed. Again.
Post more of your log. You've only posted the secondary error ("there was a problem with this model") and not the underlying error (e.g. "Caused by: FileNotFoundException")
-
Custom Biomes not Generating Properly
-
[Solved] Get String Representation of IProperty Value
Or mining machines or 3x3x3 hammers.
-
Mods not showing
Are you using the 1.12.2 versions of those mods? Also you're in the wrong place. This is for programming help while making mods.
-
Stairs?
You can't reference your objectholder fields until Init (ObjectHolders are filled at the end of the registry events, which run between PreInit and Init). If you want to pass the block to the stair, you need a local variable.
-
Stairs?
Common code runs in your main mod class. There is no reason to move it into a "common" proxy.
-
Stairs?
No, its null because @ObjectHolder annotations are handled after registration and the code I quoted is running before/during registration.
-
Stairs?
This is null. It needs to not be null.
-
[1.12.2] Get Block Facing Direction
Vanilla already has information for this. Its used for block placement, so check ItemBlock
-
"Fake" blocks surrounding chunk.
RenderTick != Tick
-
[SOLVED] [1.12.2] Variable recipe ingredients
Logs can be a variable: its called the ore dictionary. For axes, you will need to create your own IRecipe implementation (for these recpies) or a custom Ingredient (for multiple recipes).
-
Can't remove task from my entity
This is a basic java question.
-
Can't remove task from my entity
WARNING: UNINITIALIZED VARIABLE ERROR: NULL POINTER EXCEPTION
-
Can't remove task from my entity
Why are you calling new EntityUndead before dumping out on the client? Way to waste RAM and GC. Also, new EntityUndead is not the entity you clicked on. It's a new entity (as evidenced by the new keyword). Also, what the fuck is this: Why has your IDE not told you to remove this?
-
[1.12.2] Use #inventory variant for a .obj model
Also note that AI Pathfinding is similarly not affected by oversized blocks (as I see you already have invisible placeholders, that solves that problem, but it's a thing to be aware of).
-
[1.12.2] Replace world renderer
That answers the "how was that relevant" question. Cool. It still doesn't help you do what you want though. :P
-
[1.12.2] Replace world renderer
Great! That doesn't explain how they replaced the renderer.
-
[1.12.2] Replace world renderer
I found this youtube clip https://www.youtube.com/watch?v=Yek5Fu1cX7I And? Not sure how that's relevant to what I said.
-
is it possible to change a var in another mod's class?
No
-
'Launching Client' has encountered a problem.
...relative folder locations are a Thing
-
'Launching Client' has encountered a problem.
You can also replace those magic keywords with folder locations if you want. If you search the forums for ${project_loc} I've got a post about it somewhere.
-
Can someone help me?
Yes. That would be why its marked in red.
IPS spam blocked by CleanTalk.