Everything posted by Draco18s
-
Initializing game java.lang.NullPointerException
Where I put it on Pastebin like a champ. http://pastebin.com/7QLw6KQV ModItems.blacktitaniumIngot is probably what's null. But I have no idea how or why because that'll involve at least two, probably three other classes. Post (on pastebin this time) your main mod class, your common proxy, and your ModItems class.
-
Initializing game java.lang.NullPointerException
Also don't create multiple threads. > at WGHxPERNAxBEAST.TutorialMod.handlers.RecipeHandler.registerCraftingRecipes(RecipeHandler.java:21) One of your recipes passes in a null item.
-
2 problems with my mod
This is a "bug" in Eclipse. Simply click on anything in the Project Explorer again and it'll be fine. Alternatively you can edit your project's run directory to be a hardlinked rather than a programatic one. It's annoying as fuck and only occurs because of the bug and how Forge's setup points Eclipse at the run directory. Go to the Run Configurations window, find the "Arguments" tab and at the bottom, change the working directory from ${project_loc} to ${workspace_loc:MDKExample}\run
-
How to assighn current priority level of enitity ai task.
Override shouldExecute() and return false when the animal is fed.
-
Why are item textures not displaying?
Show the game's output log. The game prints all texture loading problems there. Also: Don't use event.getSide() == Side.CLIENT, use a ClientProxy class. Also also: The fuk? Use ModelLoader.setCustomModelResourceLocation(...) Also also also: Jesus H Christ on a crutch. What nonsense is this? ModItems.chain_mail.getRegistryName()
-
Potentialy stupid question
...Like registering block and item models... (Model baking is what takes up 90% of the vanilla launch time, and my experience is that adding mods adds more blocks and items and that's what takes 90% of each mod's launch time)
-
[1.11] What was BiomeGenBase replaced with?
The Biome REGISTRY field would be better, probably.
-
State engine was incorrect
3) This is the mod developer forum. You want Support & Bug Reports next time.
-
Version Checking with Curse
Have a look at Curse's API. The third thing on the page OreCruncher linked is literally the thing you want.
-
[1.11.2] Blacklisting ingredients in JEI recipes
I don't think you can.
-
[1.10.2] (Texture) Block Rotation [SOLVED]
that's a question for the developer of WorldEdit.
-
[SOLVED] [1.10.2] Using Forge Energy
There should be a method with a similar name (because I don't have Eclipse open and don't feel like finding it for you). Its not static, you call it on the energy storage instance itself.
-
[SOLVED] [1.10.2] Using Forge Energy
myEnergyStorage.writeToNBT()
-
[1.10.2] [OpenGL] rendering rectangles and overlay?
Color is an unsigned integer.
-
[1.8.9] Custom Enchantments
https://github.com/Draco18s/ReasonableRealism/tree/master/src/main/java/com/draco18s/ores/enchantments
-
Forums Migration/Upgrade
Another problem: The last line of this post doesn't text-wrap and I have no idea why.
-
Block Textures?
The missing file may not be a problem. Because the blockstate failed to load (and therefor has no inventory variant) the game attempted to locate an item model file instead as a fallback (but there wasn't one of those either). Fixing the blockstate json will likely make the missing file error go away as well.
-
Block Textures?
^ This is not correct. { "forge_marker": 1, "defaults": { "textures": { "all": "MODID:TEXTURE" }, "model": "block/cube_all" }, "variants": { "normal": [{ }], "inventory": [{ }] } }
-
Block Textures?
And...the log file that tells you about model and texture loading problems?
-
Could anyone help with this?
Use the debugger. Find out why it's happening every tick instead of every 20 by examining the values at runtime.
-
Could anyone help with this?
1) Why are you storing the capability on the player and not on the item stack? 2) Why are you creating a stack tag compound and then doing jack all with it?
-
[1.10.2] [OpenGL] rendering rectangles and overlay?
Screen.width - 265 -> size of the rest of the screen not covered. I'm sure you can work out the rest.
-
Need way to control what is allowed into any inventory
Use capabilities.
-
[1.11.2] ISidedInventory#canInsertItem not being called
https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/block/BlockMillstone.java#L73-L95 Lines 77 and 83 are the important ones for your usage. Most of the rest of that method is just to give an achievement.
-
Version Checking with Curse
Bad modder, no cookie. https://mcforge.readthedocs.io/en/latest/gettingstarted/autoupdate/
IPS spam blocked by CleanTalk.