Jump to content

Rockinredross867

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Rockinredross867

  1. Well the thing is I'm not rendering it because someone has not yet answered my question. But here is my source code. package com.christmasmod.init; import com.christmasmod.items.ItemCandyCane; import com.christmasmod.items.WeaponChristmasBatton; import com.christmasmod.main.Reference; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraftforge.client.MinecraftForgeClient; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.fml.common.registry.GameRegistry; public class ModItems { private static Item candyCane; private static Item christmasBatton; public static void init() { candyCane = new ItemCandyCane(); christmasBatton = new WeaponChristmasBatton(); } public static void register() { GameRegistry.register(candyCane); GameRegistry.register(christmasBatton); } public static void registerRenders() { registerRender(candyCane); registerRender(christmasBatton); } private static void registerRender(Item item) { Minecraft.getMinecraft().getRenderItem().getItemModelMesher() .register(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory")); } } package com.christmasmod.items; import com.christmasmod.main.Reference; import net.minecraft.item.ItemSword; public class WeaponChristmasBatton extends ItemSword { public WeaponChristmasBatton() { super(ToolMaterial.DIAMOND); setUnlocalizedName(Reference.EModItems.CHRISTMAS_BATTON.getUnlocalizedName()); setRegistryName(Reference.EModItems.CHRISTMAS_BATTON.getRegistryName()); setFull3D(); } } package com.christmasmod.proxies; import com.christmasmod.init.ModItems; public class ClientProxy implements IProxy { @Override public void init() { ModItems.registerRenders(); } } package com.christmasmod.main; import com.christmasmod.init.ModItems; import com.christmasmod.proxies.IProxy; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; @Mod(modid = Reference.MOD_ID, version = Reference.VERSION, acceptedMinecraftVersions = Reference.ACCEPTED_VERSIONS) public class Main { @SidedProxy(clientSide = Reference.CLIENT_SIDED_PROXY_CLASS, serverSide = Reference.SERVER_SIDED_PROXY_CLASS) public static IProxy proxy; @EventHandler public void preInit(FMLPreInitializationEvent event) { ModItems.init(); ModItems.register(); } @EventHandler public void init(FMLInitializationEvent event) { proxy.init(); } @EventHandler public void postInit(FMLPostInitializationEvent event) { } } package com.christmasmod.main; public class Reference { public static final String MOD_ID = "christmasmod"; public static final String NAME = "Christmas Mod"; public static final String VERSION = "0.1"; public static final String ACCEPTED_VERSIONS = "[1.10]"; public static final String CLIENT_SIDED_PROXY_CLASS = "com.christmasmod.proxies.ClientProxy"; public static final String SERVER_SIDED_PROXY_CLASS = "com.christmasmod.proxies.ServerProxy"; public static enum EModItems { CANDY_CANE("candyCane", "ItemCandyCane"), CHRISTMAS_BATTON("christmasBatton", "WeaponChristmasBatton"); private String unlocalizedName; private String registryName; EModItems(String unlocalizedName, String registryName) { this.unlocalizedName = unlocalizedName; this.registryName = registryName; } public String getUnlocalizedName() { return unlocalizedName; } public String getRegistryName() { return registryName; } } } { "textures": { "texture0": "christmasmod:items/WeaponChristmasBatton0", "texture1": "christmasmod:items/WeaponChristmasBatton1", "particle": "christmasmod:items/WeaponChristmasBatton0" }, "elements": [ { "from": [ 8.0, 33.0, 7.0 ], "to": [ 9.0, 40.0, 8.0 ], "faces": { "down": { "uv": [ 1, 13, 2, 14 ], "texture": "#texture0"}, "up": { "uv": [ 1, 10, 2, 11 ], "texture": "#texture0"}, "north":{ "uv": [ 1, 1, 2, 8 ], "texture": "#texture0"}, "south":{ "uv": [ 4, 1, 5, 8 ], "texture": "#texture0"}, "west": { "uv": [ 10, 1, 11, 8 ], "texture": "#texture0"}, "east": { "uv": [ 7, 1, 8, 8 ], "texture": "#texture0"} } }, { "from": [ 8.0, 31.0, 7.0 ], "to": [ 9.0, 32.0, 8.0 ], "faces": { "down": { "uv": [ 4, 13, 5, 14 ], "texture": "#texture0"}, "up": { "uv": [ 4, 13, 5, 14 ], "texture": "#texture0"}, "north":{ "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "south":{ "uv": [ 4, 13, 5, 14 ], "texture": "#texture0"}, "west": { "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "east": { "uv": [ 4, 13, 5, 14 ], "texture": "#texture0"} } }, { "from": [ 7.0, 40.0, 7.0 ], "to": [ 8.0, 41.0, 8.0 ], "faces": { "down": { "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "up": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"}, "north":{ "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "south":{ "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "west": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"}, "east": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"} } }, { "from": [ 8.0, 40.0, 8.0 ], "to": [ 9.0, 41.0, 9.0 ], "faces": { "down": { "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "up": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"}, "north":{ "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "south":{ "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "west": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"}, "east": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"} } }, { "from": [ 9.0, 40.0, 7.0 ], "to": [ 10.0, 41.0, 8.0 ], "faces": { "down": { "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "up": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"}, "north":{ "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "south":{ "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "west": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"}, "east": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"} } }, { "from": [ 8.0, 32.0, 8.0 ], "to": [ 9.0, 33.0, 9.0 ], "faces": { "down": { "uv": [ 4, 13, 5, 14 ], "texture": "#texture0"}, "up": { "uv": [ 4, 13, 5, 14 ], "texture": "#texture0"}, "north":{ "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "south":{ "uv": [ 4, 13, 5, 14 ], "texture": "#texture0"}, "west": { "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "east": { "uv": [ 4, 13, 5, 14 ], "texture": "#texture0"} } }, { "from": [ 7.0, 32.0, 7.0 ], "to": [ 8.0, 33.0, 8.0 ], "faces": { "down": { "uv": [ 4, 13, 5, 14 ], "texture": "#texture0"}, "up": { "uv": [ 4, 13, 5, 14 ], "texture": "#texture0"}, "north":{ "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "south":{ "uv": [ 4, 13, 5, 14 ], "texture": "#texture0"}, "west": { "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "east": { "uv": [ 4, 13, 5, 14 ], "texture": "#texture0"} } }, { "from": [ 8.0, 32.0, 6.0 ], "to": [ 9.0, 33.0, 7.0 ], "faces": { "down": { "uv": [ 4, 13, 5, 14 ], "texture": "#texture0"}, "up": { "uv": [ 4, 13, 5, 14 ], "texture": "#texture0"}, "north":{ "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "south":{ "uv": [ 4, 13, 5, 14 ], "texture": "#texture0"}, "west": { "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "east": { "uv": [ 4, 13, 5, 14 ], "texture": "#texture0"} } }, { "from": [ 9.0, 32.0, 7.0 ], "to": [ 10.0, 33.0, 8.0 ], "faces": { "down": { "uv": [ 4, 13, 5, 14 ], "texture": "#texture0"}, "up": { "uv": [ 4, 13, 5, 14 ], "texture": "#texture0"}, "north":{ "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "south":{ "uv": [ 4, 13, 5, 14 ], "texture": "#texture0"}, "west": { "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "east": { "uv": [ 4, 13, 5, 14 ], "texture": "#texture0"} } }, { "from": [ 6.0, 41.0, 7.0 ], "to": [ 7.0, 54.0, 8.0 ], "faces": { "down": { "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "up": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"}, "north":{ "uv": [ 13, 1, 14, 14 ], "texture": "#texture0"}, "south":{ "uv": [ 13, 1, 14, 14 ], "texture": "#texture0"}, "west": { "uv": [ 1, 1, 2, 14 ], "texture": "#texture1"}, "east": { "uv": [ 1, 1, 2, 14 ], "texture": "#texture1"} } }, { "from": [ 7.0, 41.0, 6.0 ], "to": [ 8.0, 54.0, 9.0 ], "faces": { "down": { "uv": [ 9, 1, 10, 4 ], "texture": "#texture1"}, "up": { "uv": [ 10, 10, 11, 13 ], "texture": "#texture0"}, "north":{ "uv": [ 1, 1, 2, 14 ], "texture": "#texture1"}, "south":{ "uv": [ 1, 1, 2, 14 ], "texture": "#texture1"}, "west": { "uv": [ 4, 1, 7, 14 ], "texture": "#texture1"}, "east": { "uv": [ 4, 1, 7, 14 ], "texture": "#texture1"} } }, { "from": [ 9.0, 41.0, 6.0 ], "to": [ 10.0, 54.0, 9.0 ], "faces": { "down": { "uv": [ 9, 1, 10, 4 ], "texture": "#texture1"}, "up": { "uv": [ 10, 10, 11, 13 ], "texture": "#texture0"}, "north":{ "uv": [ 1, 1, 2, 14 ], "texture": "#texture1"}, "south":{ "uv": [ 1, 1, 2, 14 ], "texture": "#texture1"}, "west": { "uv": [ 4, 1, 7, 14 ], "texture": "#texture1"}, "east": { "uv": [ 4, 1, 7, 14 ], "texture": "#texture1"} } }, { "from": [ 8.0, 40.0, 6.0 ], "to": [ 9.0, 41.0, 7.0 ], "faces": { "down": { "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "up": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"}, "north":{ "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "south":{ "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "west": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"}, "east": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"} } }, { "from": [ 8.0, 40.0, 6.0 ], "to": [ 9.0, 41.0, 7.0 ], "faces": { "down": { "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "up": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"}, "north":{ "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "south":{ "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "west": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"}, "east": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"} } }, { "from": [ 8.0, 41.0, 5.0 ], "to": [ 9.0, 54.0, 6.0 ], "faces": { "down": { "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "up": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"}, "north":{ "uv": [ 13, 1, 14, 14 ], "texture": "#texture0"}, "south":{ "uv": [ 13, 1, 14, 14 ], "texture": "#texture0"}, "west": { "uv": [ 1, 1, 2, 14 ], "texture": "#texture1"}, "east": { "uv": [ 1, 1, 2, 14 ], "texture": "#texture1"} } }, { "from": [ 8.0, 41.0, 9.0 ], "to": [ 9.0, 54.0, 10.0 ], "faces": { "down": { "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "up": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"}, "north":{ "uv": [ 13, 1, 14, 14 ], "texture": "#texture0"}, "south":{ "uv": [ 13, 1, 14, 14 ], "texture": "#texture0"}, "west": { "uv": [ 1, 1, 2, 14 ], "texture": "#texture1"}, "east": { "uv": [ 1, 1, 2, 14 ], "texture": "#texture1"} } }, { "from": [ 10.0, 41.0, 7.0 ], "to": [ 11.0, 54.0, 8.0 ], "faces": { "down": { "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "up": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"}, "north":{ "uv": [ 13, 1, 14, 14 ], "texture": "#texture0"}, "south":{ "uv": [ 13, 1, 14, 14 ], "texture": "#texture0"}, "west": { "uv": [ 1, 1, 2, 14 ], "texture": "#texture1"}, "east": { "uv": [ 1, 1, 2, 14 ], "texture": "#texture1"} } }, { "from": [ 8.0, 54.0, 6.0 ], "to": [ 9.0, 55.0, 9.0 ], "faces": { "down": { "uv": [ 10, 10, 11, 13 ], "texture": "#texture0"}, "up": { "uv": [ 9, 1, 10, 4 ], "texture": "#texture1"}, "north":{ "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "south":{ "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "west": { "uv": [ 9, 6, 12, 7 ], "texture": "#texture1"}, "east": { "uv": [ 9, 6, 12, 7 ], "texture": "#texture1"} } }, { "from": [ 7.0, 54.0, 7.0 ], "to": [ 8.0, 55.0, 8.0 ], "faces": { "down": { "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "up": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"}, "north":{ "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "south":{ "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "west": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"}, "east": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"} } }, { "from": [ 8.0, 55.0, 7.0 ], "to": [ 9.0, 56.0, 8.0 ], "faces": { "down": { "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "up": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"}, "north":{ "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "south":{ "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "west": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"}, "east": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"} } }, { "from": [ 9.0, 54.0, 7.0 ], "to": [ 10.0, 55.0, 8.0 ], "faces": { "down": { "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "up": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"}, "north":{ "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "south":{ "uv": [ 4, 10, 5, 11 ], "texture": "#texture0"}, "west": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"}, "east": { "uv": [ 7, 10, 8, 11 ], "texture": "#texture0"} } } ] } This is all the code that I have relative to the Christmas Baton weapon.
  2. Alright I made a sword. I made a model. I converted the model into a JSON file and I still have no luck.
  3. I am new to modding minecraft 1.10. I do not have any idea on what to do. Could someone post links to tutorials please?
  4. I have been trying to figure this one out for a while. I am watching Mr. Crayfish's video series and it doesn't seem like anything is working. I have tried fixing my modid to lowercase. I made sure that everything that I did was right was right. The bottom of this thread is my source code. Sorry for no spoilers and such. The website won't let me insert them. Main.java package com.rockinredross.main; import com.rockinredross.init.ModItems; import com.rockinredross.proxy.IProxy; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.Mod.Instance; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; @Mod(modid = Reference.MOD_ID, name = Reference.NAME, version = Reference.VERSION, acceptedMinecraftVersions = Reference.ACCEPTED_VERSIONS) public class Main { @Instance public static Main instance = new Main(); @SidedProxy(clientSide = Reference.CLEINT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS) public static IProxy proxy; @EventHandler public void preInit(FMLPreInitializationEvent event) { System.out.println("Pre-Init"); ModItems.init(); ModItems.register(); } @EventHandler public void init(FMLInitializationEvent event) { System.out.println("Init"); proxy.init(); } @EventHandler public void postInit(FMLPostInitializationEvent event) { System.out.println("Post-Init"); } } Reference.java package com.rockinredross.main; public class Reference { public static final String MOD_ID = "giantsmod"; public static final String NAME = "The Giants Mod"; public static final String VERSION = "1.0"; public static final String ACCEPTED_VERSIONS = "[1.10]"; public static final String CLEINT_PROXY_CLASS = "com.rockinredross.proxy.ClientProxy"; public static final String SERVER_PROXY_CLASS = "com.rockinredross.proxy.ServerProxy"; public static enum EModItems { CHEESE("cheese", "ItemCheese"); private String unlocalizedName; private String registryName; EModItems(String unlocalizedName, String registryName) { this.unlocalizedName = unlocalizedName; this.registryName = registryName; } public String getUnlocalizedName() { return unlocalizedName; } public String getRegistryName() { return registryName; } } } ModItems.java package com.rockinredross.init; import com.rockinredross.items.ItemCheese; import com.rockinredross.main.Reference; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraftforge.fml.common.registry.GameRegistry; public class ModItems { public static Item cheese; public static void init() { cheese = new ItemCheese(); } public static void register() { GameRegistry.register(cheese); } public static void registerRenderers() { registerRender(cheese); } private static void registerRender(Item item) { Minecraft.getMinecraft().getRenderItem().getItemModelMesher() .register(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory")); } } ClientProxy.java package com.rockinredross.proxy; import com.rockinredross.init.ModItems; public class ClientProxy implements IProxy { @Override public void init() { ModItems.registerRenderers(); } } en_US.lang item.cheese.name=Cheese ItemCheese.json { "parent": "builtin/generated", "textures": { "layer0": "giantsmod:items/cheese" }, "display": { "thirdperson": { "rotation": [-90, 0, 0], "translation": [0, 1, -3], "scale": [0.55, 0.55, 0.55] }, "firstperson": { "rotation": [0, -135, 25], "translation": [0, 4, 2], "scale": [1.7, 1.7, 1.7] } } }
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.