Everything posted by Choonster
-
net.minecraft.client.renderer.RenderBlocks#getBlockIconFromSideAndMetadata in 1.10.2?
The main problem you'll run into is that blocks no longer have textures, they now have models. An IBakedModel can have any number of BakedQuads, each of which belongs to an EnumFacing (or null) and has a texture. You can use IBakedModel#getQuads to get the BakedQuads for an optional IBlockState and optional EnumFacing. You'll need to work out what to do if the model has either zero or more than one BakedQuads for EnumFacing.UP (probably blacklist that state from being smoothed). Look at BlockRendererDispatcher#renderBlock to see how it gets the actual state from the in-world state, the model from the actual state and the extended state from the actual state before rendering the model.
-
[1.12][SOLVED] Meta Items / Variants
I'm not seeing any obvious issues. Is ItemRenderRegister.registerItems being called? Are models being registered for each of your Items? Step through the code in the debugger if you're not sure. I'll need to debug your code locally to help you further. Please create a Git repository of your mod on a site like GitHub (if you haven't already) and link it here. See my repository and its .gitignore file for an example of the structure to use and which files to include.
-
net.minecraft.client.renderer.RenderBlocks#getBlockIconFromSideAndMetadata in 1.10.2?
But what are you trying to render? Where are you rendering it? IIcon and RenderBlocks were replaced by the baked model system, but it's hard to tell you what you need to do when we don't actually know what you're trying to do.
-
net.minecraft.client.renderer.RenderBlocks#getBlockIconFromSideAndMetadata in 1.10.2?
What "stuff"? You're being very vague, which makes it hard to help you.
-
net.minecraft.client.renderer.RenderBlocks#getBlockIconFromSideAndMetadata in 1.10.2?
What is your overall goal? What feature is this code a part of? We need some more context than a snippet of code.
-
Dont know why
Post the FML log from 1.12 (logs/fml-client-latest.log in the game directory) using Gist or Pastebin.
-
[1.12][SOLVED] Meta Items / Variants
The logging of missing models was broken in Forge 1.12-14.21.0.2363 (commit dc043ac) and fixed in Forge 1.12-14.21.1.2390 (commit ede05a2). Update Forge and run Minecraft again to see the model errors. Where is the dimensionshiftmain:item/standard_item model located? Blockstates files only load models from the models/block directory, so it should be located at assets/dimensionshiftmain/models/block/item/standard_item.json. You should extend minecraft:item/generated instead of copying it.
-
[1.12][SOLVED] Meta Items / Variants
Post your model registration code and JSON files (including the and the dimensionshiftmain:item/standard_item model) and the FML log.
-
[1.12][SOLVED] Meta Items / Variants
Minecraft uses = to separate properties and values in variant strings, not :. Instead of "test:2", use "test=2". If each metadata value has its own variant in the blockstates file, make sure you use that variant in the ModelResourceLocation you pass to ModelLoader.setCustomModelResourceLocation. e.g. Instead of hardcoding "test=2", use "test=" + meta.
-
ForgeGradle has the wrong JDK location
Gradle uses the JDK specified by the JAVA_HOME environment variable, it looks like it's pointing to a JRE on your machine.
-
[1.7.10] Help rendering armor/weapons on custom mob
Some people on Minecraft Forum still provide support for 1.7.10. I strongly recommend updating to a modern version of Minecraft, though.
-
I use a Mac OS x
Forge works on any OS that runs the desktop edition of Minecraft, there aren't any OS-specific versions.
-
[1.7.10] Help rendering armor/weapons on custom mob
1.7.10 is no longer supported on this forum, update if you want help.
-
[SOLVED] Client side mod to monitor player's hunger
You'll need to monitor the food stats on ClientTickEvent, since there aren't any events fired on the client when the food stats change. Make sure you check the event's Phase to avoid running your code twice per tick.
-
Trying to register armor 1.12 MC
That's not the full error, the NoClassDefFoundError was almost certainly caused by another exception that indicates what actually went wrong. The FML event bus (FMLCommonHandler#bus) has been deprecated since 1.8.9 (when it was merged with the Forge event bus), don't use it. As explained in Forge's documentation on events, registering an instance with an event bus will only register the non-static @SubscribeEvent methods and registering the Class object (or annotating the class with @Mod.EventBusSubscriber) will only register the static @SubscribeEvent methods. If you're using @Mod.EventBusSubscriber, you don't need to manually register your class with the Forge event bus. Your code is quite hard to read on the dark theme. In future, please paste your code into the post without formatting and use the built-in syntax highlighting of the code blocks. Alternatively, post your code using Gist or Pastebin.
-
How to custom fix armor being held by player like a sword rather than an Item?
This is controlled by the display transformations specified in the item model (or its parent). It looks like you've extended minecraft:item/handheld (used by swords and tools) rather than minecraft:item/generated (the basic item model with the standard display transformations).
-
[1.12] Custom Crafting with OreDictionary?
For a recipe to be unlocked when a player first has its ingredients, you need to create an advancement that unlocks it. If you don't, the recipe will only be unlocked when the player first crafts it.
-
1.12 Biomes O' Plenty Crash on Startup
The version of BoP you're using hasn't been updated to the recommended build of Forge and is still using the old names of some classes. This was fixed in BoP 1.12-7.0.0.2279, so update to the latest version.
-
[1.12] Custom Crafting with OreDictionary?
It looks like this is a known issue.
-
How to update to a new version of minecraft?
Yes, you'll almost certainly need to update to a 1.12 mappings version. You can find the latest mappings on the MCPBot website.
-
How to update to a new version of minecraft?
You need to update ForgeGradle to 2.3 to use Minecraft 1.12.
-
idk what to do plz help
Open the game directory by selecting your profile in the "Launch options" tab of the launcher and then clicking the "Go to folder" button next to the "Game directory" option. Open the logs directory in the game directory. Find the fml-client-latest.log file. Upload it to Gist or Pastebin and link it here.
-
[1.11.2] Adding Mobs to All Biomes
If you want the mob to spawn in every single biome rather than biomes of a certain type, use IForgeRegistry#getValues to get a List of every registered Biome. You then need to convert this to an array and pass it as the vararg parameter of EntityRegistry.addSpawn.
-
Cant use /give commands for IC2 items
I don't think you can get the full help list at once, but you can run the /help command once for each help page and copy the output from the log (logs/fml-client-latest.log in the game directory).
-
[1.11.2] Adding Mobs to All Biomes
No, the ForgeRegistries class was first added in 1.9 and the Biome registry has been in it since then.
IPS spam blocked by CleanTalk.