
Monstrous_Apple
Members-
Posts
217 -
Joined
-
Last visited
Everything posted by Monstrous_Apple
-
Nope removing the spaces did nothing?
-
There was no problems...
-
That wasn't said at all in this thread... and the spaces work for everything else... but okay I'll try that
-
Is this how it should be? GameRegistry.addRecipe(new ItemStack (Items.spawn_egg, 1, 50), new Object [] { "A ", "A ", "A ", 'A', Items.iron_ingot, });
-
Yeah just checking because that doesn't work either?
-
I've already done that, unless you both mean something different? Is this not correct?: GameRegistry.addRecipe(new ItemStack (MAItems.InvisiBlade), new Object [] { "BBB", "BBB", "BAB", 'A', MAItems.ObsidianSword, 'B', new ItemStack (Items.potionitem, 1, 14) });
-
Like Creeper = 50?
-
I thought you meant the crafting grid in the code, I put this: https://scontent-lhr3-1.xx.fbcdn.net/v/t34.0-12/13236123_1001484379901445_1937307940_n.png?oh=2bb653c43c9223ecbaf985e5aba1ca54&oe=573FA565[/img] With each potion in the grid being the same potion shown. Is this what you meant?
-
Is there no way to craft using item ids? since one egg is 383:50 and another 383:51, etc? Also I went through a lot of trial and error (to find the eggs) going like this: //GameRegistry.addRecipe(new ItemStack (Items.spawn_egg, 1, 90), Spawn Egg - 'Spawn Pig' //GameRegistry.addRecipe(new ItemStack (Items.spawn_egg, 1, 91), Spawn Egg - 'Spawn Sheep' And now I'm on "(Items.spawn_egg,1, 427)," and still haven't found them all
-
Sorry I should have put in the title, I'm using 1.8.9
-
This is the exact code, the 1, 14 part is used to craft something into a Invisible Potion (3:00) but I can't craft using it? GameRegistry.addRecipe(new ItemStack (MAItems.InvisiBlade), new Object [] { "BBB", "BBB", "BAB", 'A', MAItems.ObsidianSword, 'B', new ItemStack (Items.potionitem, 1, 14) });
-
Not spawners I mean spawn eggs, I'm using it like this: GameRegistry.addRecipe(new ItemStack (Items.spawn_egg, 1, 383), new Object [] { " A", " A", " A", 'A', Items.diamond, }); And so far have found most but not all the spawner eggs numbering, this is probably the worst way to do this, if so what way should I bet doing it for the eggs?
-
I only use this way to make crafting recipes: //Blaze Hammer GameRegistry.addRecipe(new ItemStack (MAItems.BlazeHammer), new Object [] { "BBB", "BAB", " A ", 'A', Items.fire_charge, 'B', Items.blaze_rod }); (As an example) Is there a way so I can craft items using their ItemID's, I need this for spawn eggs because the metadata is a long process to find out.
-
Yeah I see what you mean and I tried it doing like this: "AAA" "AAA" "AAA" A = The Potion And this is to create a stone sword (just to test it) but it still doesn't work?
-
So I have my code, and this does work (like it creates the recipe for the new sword, as proven when I use the 'Just Enough Items' mod, it shows the recipe) but it doesn't craft the item using these potions, if that makes any sense then does anyone know why it doesn't work? GameRegistry.addRecipe(new ItemStack (MAItems.InvisiBlade), new Object [] { " ", "BB ", "AB ", 'A', MAItems.ObsidianSword, 'B', new ItemStack (Items.potionitem, 1, 14) });
-
I just can't see what I've done wrong? It's exactly like yours is in your example code, but I still have the error on getModelLocation ? package com.MonstrousApple.mod.proxy; import com.MonstrousApple.mod.items.MAItems; import com.MonstrousApple.mod.render.MABlockRender; import com.MonstrousApple.mod.render.MAGemRender; import com.MonstrousApple.mod.render.MAItemRender; import com.MonstrousApple.mod.render.MAOreRender; import net.minecraft.client.resources.model.ModelBakery; import net.minecraft.client.resources.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraft.util.ResourceLocation; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; public class ClientProxy extends CommonProxy { public void preInit(FMLPreInitializationEvent preEvent) { super.preInit(preEvent); ModelBakery.registerItemVariants(MAItems.ObsidianBow, new ModelResourceLocation(MAItems.ObsidianBow.getRegistryName(), "ObsidianBow")); //assets.ma.models/item/IronBow_pulling_0.json ModelBakery.registerItemVariants(MAItems.ObsidianBow, new ModelResourceLocation(MAItems.ObsidianBow.getRegistryName(), "ObsidianBow_pulling_0")); ModelBakery.registerItemVariants(MAItems.ObsidianBow, new ModelResourceLocation(MAItems.ObsidianBow.getRegistryName(), "ObsidianBow_pulling_1")); ModelBakery.registerItemVariants(MAItems.ObsidianBow, new ModelResourceLocation(MAItems.ObsidianBow.getRegistryName(), "ObsidianBow_pulling_2")); } //ModelBakery.registerItemVariants(MAItems.IronBow, new ModelResourceLocation(getModelLocation(), "IronBow_pulling_1")); //ModelBakery.registerItemVariants(MAItems.IronBow, new ModelResourceLocation(getModelLocation(), "IronBow_pulling_0")); //new ModelResourceLocation(MAItems.ObsidianBow.getRegistryName(), "IronBow_pulling_2") private void registerItemModels() { String locationBow = MAItems.ObsidianBow.getModelLocation(); //String locationContinuousBow = ModItems.continuousBow.getModelLocation(); for (int stage = 0; stage < 3; stage++) { // Add a variant for each stage's model ModelBakery.registerItemVariants(MAItems.ObsidianBow, new ModelResourceLocation(locationBow, "pulling_" + stage)); //ModelBakery.registerItemVariants(ModItems.modelTest, new ResourceLocation(TestMod3.MODID, "modeltest_" + stage)); //ModelBakery.registerItemVariants(ModItems.continuousBow, new ModelResourceLocation(locationContinuousBow, "pulling_" + stage)); } registerItemModel(MAItems.ObsidianBow, new ModelResourceLocation(locationBow, "standby")); } private void registerItemModel(Item item, ModelResourceLocation modelResourceLocation) { ModelLoader.setCustomModelResourceLocation(MAItems.ObsidianBow, 0, new ModelResourceLocation("ma:ObsidianBow_standby", "inventory")); //ModelLoader.setCustomModelResourceLocation(MAItems.ObsidianBow, 0, new ModelResourceLocation("ma:ObsidianBow_pulling_0", "inventory")); //ModelLoader.setCustomModelResourceLocation(MAItems.ObsidianBow, 0, new ModelResourceLocation("ma:ObsidianBow_pulling_1", "inventory")); //ModelLoader.setCustomModelResourceLocation(MAItems.ObsidianBow, 0, new ModelResourceLocation("ma:ObsidianBow_pulling_2", "inventory")); } public void init(FMLInitializationEvent event) { super.init(event); MABlockRender.registerBlockRender(); MAItemRender.registerItemRender(); MAOreRender.registerOreRender(); MAGemRender.registerGemRender(); } public void postInit(FMLPostInitializationEvent postEvent) { super.postInit(postEvent); } }
-
How do I add dedicate more RAM to my forge server?
-
Nope can't figure it out...
-
Yeah but I don't know what to add in, I still have a lot to learn like I know I need to change it but I don't know what to?
-
This part?: registerItemModel(MAItems.ObsidianBow, new ModelResourceLocation(locationBow, "standby")); Or this part?: private void registerItemModel(Item item, ModelResourceLocation modelResourceLocation) { Or both? I'm so clueless right now
-
Sorry just to clarify I need to change registerItemModel in this selection of code? private void registerItemModels() { String locationBow = MAItems.ObsidianBow.getModelLocation(); //String locationContinuousBow = ModItems.continuousBow.getModelLocation(); for (int stage = 0; stage < 3; stage++) { // Add a variant for each stage's model ModelBakery.registerItemVariants(MAItems.ObsidianBow, new ModelResourceLocation(locationBow, "pulling_" + stage)); //ModelBakery.registerItemVariants(ModItems.modelTest, new ResourceLocation(TestMod3.MODID, "modeltest_" + stage)); //ModelBakery.registerItemVariants(ModItems.continuousBow, new ModelResourceLocation(locationContinuousBow, "pulling_" + stage)); } registerItemModel(MAItems.ObsidianBow, new ModelResourceLocation(locationBow, "standby")); } private void registerItemModel(Item item, ModelResourceLocation modelResourceLocation) { ModelLoader.setCustomModelResourceLocation(MAItems.ObsidianBow, 0, new ModelResourceLocation("ma:ObsidianBow_standby", "inventory")); //ModelLoader.setCustomModelResourceLocation(MAItems.ObsidianBow, 0, new ModelResourceLocation("ma:ObsidianBow_pulling_0", "inventory")); //ModelLoader.setCustomModelResourceLocation(MAItems.ObsidianBow, 0, new ModelResourceLocation("ma:ObsidianBow_pulling_1", "inventory")); //ModelLoader.setCustomModelResourceLocation(MAItems.ObsidianBow, 0, new ModelResourceLocation("ma:ObsidianBow_pulling_2", "inventory")); }
-
Sorry I can't figure it out still, what part of my code do I need to change?
-
MAItems.ObsidianBow is a field of type Item , which doesn't have a getModelLocation method. Even though it currently contains an instance of MAObsidianBow (which does have that method), you haven't guaranteed that. It could contain an instance of Item or any subclass, so Java only lets you use methods that exist in the Item class. Either change the type of the field or cast the field's value before calling the method. Create the method as I described in my previous post. Sorry could you re-explan the first part? Well I mean what parts do I actually change?
-
I'm gonna have a look again at what you said before to try and figure it out though
-
Sorry I plan to learn Java full on soon it's just I started modding with different tutorials and got far into my mod and when I got around to making bows I was completely stuck on rendering though I managed to figure out how to get my bow to shoot properly after a while But yeah I have this now and there's no errors on this part: private void registerItemModel(Item item, ModelResourceLocation modelResourceLocation) { ModelLoader.setCustomModelResourceLocation(MAItems.ObsidianBow, 0, new ModelResourceLocation("ma:ObsidianBow_standby", "inventory")); ModelLoader.setCustomModelResourceLocation(MAItems.ObsidianBow, 0, new ModelResourceLocation("ma:ObsidianBow_pulling_0", "inventory")); ModelLoader.setCustomModelResourceLocation(MAItems.ObsidianBow, 0, new ModelResourceLocation("ma:ObsidianBow_pulling_1", "inventory")); ModelLoader.setCustomModelResourceLocation(MAItems.ObsidianBow, 0, new ModelResourceLocation("ma:ObsidianBow_pulling_2", "inventory")); } However I still have the first error: String locationBow = MAItems.ObsidianBow.getModelLocation(); on this part getModelLocation It's the one saying "The method getModelLocation() is undefined for the type Item"