So Minecraft 1.11 is about to be released, and I decided I'd make a mod for 1.10 before the corresponding Forge version is developed. Everything implemented into the mod seems to be working fine, but the one small issue I'm having is that I can't seem to get my ItemMeshDefinition class to work.
The items are supposed to have textures like these (only 4 are listed examples):
package toontownrecrafted.items;
import toontownrecrafted.ToontownRecrafted;
import net.minecraft.client.renderer.ItemMeshDefinition;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.model.ModelLoader;
public class GlobalItemMesh implements ItemMeshDefinition
{
@Override
public ModelResourceLocation getModelLocation(ItemStack stack)
{
if(stack.hasTagCompound())
{
NBTTagCompound nbt = stack.getTagCompound();
if(nbt.hasKey("ItemVariant"))
{
ModelResourceLocation variantModel = new ModelResourceLocation(new ResourceLocation(ToontownRecrafted.MODID, nbt.getString("ItemVariant")), "inventory");
System.out.println("Found model: "+variantModel);
return variantModel;
}
}
System.out.println("Found no model location");
return null;
}
}
I'm a little confused as to why this is happening; I called the registerRenders() method in preInit(), the default item texture loads fine, and I can't seem to figure out what I'm doing wrong.
The only available mod on that page is for Minecraft 1.6.4, but I'm working a version for 1.7.10 that I might release as an early alpha build. It's probably going to be experimental for a while, though; I don't know how many alpha or beta versions it's going to have.
I keep on trying to craft it but i don't think I'm doing it right. Can u send me a picture of how the crafting grid should look like? also, how do i get the lighter?
You can make Jellybeans from any Vanilla Minecraft Dye. There currently isn't a way to obtain the lighter, though the team and I could come up with some way to make it work.
0
Because I might need the item's damage for durability or something like it.
That seemed to work; thanks for the helpful tip!
0
Are you ever going to port this mod to later versions such as 1.8 or 1.10?
0
So Minecraft 1.11 is about to be released, and I decided I'd make a mod for 1.10 before the corresponding Forge version is developed. Everything implemented into the mod seems to be working fine, but the one small issue I'm having is that I can't seem to get my ItemMeshDefinition class to work.
The items are supposed to have textures like these (only 4 are listed examples):
But this is how they appear in the inventory:
The holder for all the item variables:
The ItemMeshDefinition class:
I'm a little confused as to why this is happening; I called the registerRenders() method in preInit(), the default item texture loads fine, and I can't seem to figure out what I'm doing wrong.
0
Don't worry, I've got my own versions of the mod in the works: http://minecraft.curseforge.com/projects/toontown-on-minecraft
The only available mod on that page is for Minecraft 1.6.4, but I'm working a version for 1.7.10 that I might release as an early alpha build. It's probably going to be experimental for a while, though; I don't know how many alpha or beta versions it's going to have.
0
I doubt it. This mod hasn't been updated in forever.
0
Is it possible to use ForgeMultipart dev in 1.6.4 modding environments? If so, how?
0
It might be a while before the mod gets updated, so be patient.
0
Sorry, but we can't let just anyone on the team unless they have some knowledge of coding or texturing or modeling.
If you really want to learn Java, I suggest you look here for some tutorials: http://docs.oracle.com/javase/tutorial/
0
Have you had any experience in Minecraft modding?
0
Nope. It's made of steel, aluminum, wires and fiberglass just like the rest of the characters.
0
0
0
You're welcome!
0
http://minecraftrecipedesigner.com/creations/71035.png
You can make Jellybeans from any Vanilla Minecraft Dye. There currently isn't a way to obtain the lighter, though the team and I could come up with some way to make it work.
I'll keep you all updated!
0
You simply craft some Jellybean Blocks and place them in a Nether-Portal-like frame. You have to use the mod's "Custom Lighter", though.