Everything posted by Monstrous_Apple
-
Crafting Using ItemID's?
Nope removing the spaces did nothing?
-
[1.8.9] Crafting with Potions?
There was no problems...
-
Crafting Using ItemID's?
That wasn't said at all in this thread... and the spaces work for everything else... but okay I'll try that
-
Crafting Using ItemID's?
Is this how it should be? GameRegistry.addRecipe(new ItemStack (Items.spawn_egg, 1, 50), new Object [] { "A ", "A ", "A ", 'A', Items.iron_ingot, });
-
Crafting Using ItemID's?
Yeah just checking because that doesn't work either?
-
[1.8.9] Crafting with Potions?
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) });
-
Crafting Using ItemID's?
Like Creeper = 50?
-
[1.8.9] Crafting with Potions?
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?
-
Crafting Using ItemID's?
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
-
Crafting Using ItemID's?
Sorry I should have put in the title, I'm using 1.8.9
-
[1.8.9] Crafting with Potions?
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) });
-
Crafting Using ItemID's?
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?
-
Crafting Using ItemID's?
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.
-
[1.8.9] Crafting with Potions?
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?
-
[1.8.9] Crafting with Potions?
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) });
-
[1.8.9] Bow Pull Back Help
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); } }
-
More RAM To Forge Server
How do I add dedicate more RAM to my forge server?
-
[1.8.9] Bow Pull Back Help
Nope can't figure it out...
-
[1.8.9] Bow Pull Back Help
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?
-
[1.8.9] Bow Pull Back Help
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
-
[1.8.9] Bow Pull Back Help
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")); }
-
[1.8.9] Bow Pull Back Help
Sorry I can't figure it out still, what part of my code do I need to change?
-
[1.8.9] Bow Pull Back Help
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?
-
[1.8.9] Bow Pull Back Help
I'm gonna have a look again at what you said before to try and figure it out though
-
[1.8.9] Bow Pull Back Help
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"
IPS spam blocked by CleanTalk.