Everything posted by Draco18s
-
Textures/Jason not loading in game[1.10]
Convert it to a string..toString()
-
Textures/Jason not loading in game[1.10]
new ModelResourceLocation(item.getRegistryName(), ...
-
Mod Item not showing up
This will crash the dedicated server. The ModelRegistryEvent is client side only. You should set your unlocalized name to your registry name; Problematic Code #10 . There is no reason for this to be in the Item class, all items need models and you can make that call externally just fine: HanksMod.proxy.registerItemRenderer(ModItems.copperIngot, 0, copperIngot.getRegistryName())
-
Textures/Jason not loading in game[1.10]
Problematic Code #2
-
Textures/Jason not loading in game[1.10]
1) You do not need the display tags if you use item/generated (or item/handheld for tools) instead of builtin/generated 2) Show your log 3) Show where you register your item models
-
1.12.2 Does not generate the slab recipe
- 1.12.2 Does not generate the slab recipe
1) Do not include completely empty lines in your recipe. Those spaces force the slab to be made in the bottom row of the crafting grid, not "anywhere it fits" as all vanilla recipes do. 2) Post the log, there might be an error in it.- [Solved].....Crash creating items
item is a local variable. So no, your code there won't work.- [Solved] java.lang.ExceptionInInitializerError
Because of static initializers. In order for your BlockBase class to add its ItemBlock to ModItems.ITEMS, all your other static fields have to be initialized. But it can't, and there's no line number because of how static initializers are constructed.- Potion Effects on Armor
Rather than get(0), there is a method that will get an item stack based on its equipment type. Use that.- net.minecraft.src doesn't exist
Uh. You're looking at it. "src" means "source" it is not itself a class or package.- [Solved] Config enum value text
Cough. EnumHelper, supplied by Forge. Cough. Also, if this is your own class, why the hell do you need reflection to do this?- SOLVED [1.12.2] Lang file doesn't work
In addition, registry names (and therefor, by extension, unlocalized names) should be all lower case, as you should be using item.setUnlocalizedName(item.getRegistryName()) so that your mod ID is part of your item's unlocalized name.- [Solved].....Crash creating items
item.setUnlocalizedName(item.getRegistryName().toString());- [Solved].....Crash creating items
Also, don't set the registry name to the unlocalized name. Set the unlocaled name to the registry name. Unlocalized names should be used for displaying the item's name only. Problematic Code #7- 1.12.2 Slabs not rendering in inventory
"parent": "em:block/bottom_ruby_refined_slab" ?- [Solved].....Crash creating items
...code? Also, 1.8 is ancient. If you want to use 1.8, at least use 1.8.9- Extraction only for certain slots
Here's an example of an IItemHandler that does not allow extraction. https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/api/internal/inventory/OutputItemStackHandler.java- Method Not Found From MinecraftServer.getPort()
Yes, that is asking an external device to reply to you.- Method Not Found From MinecraftServer.getPort()
No, a computational device only knows it's local IP address. It don't know the external IP address of every router and other system it sits behind. In fact, it can't know its public IP without asking an external source, "Hey, what IP did this message come from?" And even then, if the external source is not properly chosen (e.g. another device on the same internal network), it still doesn't know its "public" IP.- Potion Effects on Armor
Get the player's equipped items Check them against your armor types- Dynamic block textures after model baking
You need to take the model from the target block and combine it with a model that has the overlay, then bake and return that.- [1.12.2]Container Crash: Ticking player
Why are you doing this and not implementing an Energy Capability? Capabilities are the solution to the stacks of mod-supplied interfaces.- [1.12.2]Container Crash: Ticking player
Show your EntityTable class. Try pixels, measured from the top left.- Detecting creation of ItemStack (specific item)
Option a: have your machines call onUpdate() on their stacks Option b: have your machines give the stacks the NBT No That's false. /** * Called when item is crafted/smelted. Used only by maps so far. */ public void onCreated(ItemStack stack, World worldIn, EntityPlayer playerIn) { } - 1.12.2 Does not generate the slab recipe
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.