If I were to code a mod, that would make two mods work together.
Would, or Could I just import both of the pre-existing class files with a import code and then code the "bridge" mod to pull items or blocks from the imported mod class files?
(Example)
Create a new item with two different mods.
Pull item mineral from Mod (A) and Armour with Mod [B] ;
So im creating a new said armour between the two mods that uses their prexisting code?
Steven, can you add how to make Golem recipies, like when you arrange the five iron blocks without the crafting table to make an Iron Golem. That would be sick.
If I were to code a mod, that would make two mods work together.
Would, or Could I just import both of the pre-existing class files with a import code and then code the "bridge" mod to pull items or blocks from the imported mod class files?
(Example)
Create a new item with two different mods.
Pull item mineral from Mod (A) and Armour with Mod [B] ;
So im creating a new said armour between the two mods that uses their prexisting code?
I don't think you'd need a seperate mod to make that happen - you could possibly import the properties of the class you want to craft from into the armour class. Don't quote me though. I may very well have no idea what I'm talking about... if you try it though, let me know how it goes
Edit: I realise that's not completely conveying what I'm trying to say. You can add the class for your new armour to one of your existing mods, unless you're trying to use materials from mods you don't own. Not sure what the rules are on that.
Mod ideas in my profile info! Send me a message or post in one of the threads if you're interested.
To touch Divinity, one must first be prepared to brave reality.
I do the ore generation part and when I start up a new world, I have no idea how to find out if it generated.
I get no errors with the game and I have been mining through my world forever trying to find it.
I do the ore generation part and when I start up a new world, I have no idea how to find out if it generated.
I get no errors with the game and I have been mining through my world forever trying to find it.
If somebody who has found it can help me, thanks!
Try an Xray mod. That'll make the progress simpler.
could I get some help with the item creation section in my mods class file? I don't know the syntax for including some of my custom items in the in-game item creation.
eg
GameRegistry.addRecipe(new ItemStack(Modded item 3,1), new Object[]{
" "," M ","F F",'M',<insert Modded item 1>,'F',<insert Modded item 2>,
});
With normal item creation I know I put in item.<insert item> or block.<insert block> but I have no clue how to use modded items in this.
could I get some help with the item creation section in my mods class file? I don't know the syntax for including some of my custom items in the in-game item creation.
eg
GameRegistry.addRecipe(new ItemStack(Modded item 3,1), new Object[]{
" "," M ","F F",'M',<insert Modded item 1>,'F',<insert Modded item 2>,
});
With normal item creation I know I put in item.<insert item> or block.<insert block> but I have no clue how to use modded items in this.
when using a modded item you do ModdedItem instead of Item.ModdedItem
Same For a Block, ModdedBlock instead of Block.ModdedItem
This will work providing everything is in the same class
Would, or Could I just import both of the pre-existing class files with a import code and then code the "bridge" mod to pull items or blocks from the imported mod class files?
(Example)
Create a new item with two different mods.
Pull item mineral from Mod (A) and Armour with Mod [B] ;
So im creating a new said armour between the two mods that uses their prexisting code?
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumThanks,
Jrod71
P.S. Stevens Unite
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI don't think you'd need a seperate mod to make that happen - you could possibly import the properties of the class you want to craft from into the armour class. Don't quote me though. I may very well have no idea what I'm talking about... if you try it though, let me know how it goes
Edit: I realise that's not completely conveying what I'm trying to say. You can add the class for your new armour to one of your existing mods, unless you're trying to use materials from mods you don't own. Not sure what the rules are on that.
To touch Divinity, one must first be prepared to brave reality.
-
View User Profile
-
View Posts
-
Send Message
Curse Premium@SideOnly(Side.CLIENT) private Icon field_94393_a; @SideOnly(Side.CLIENT) private Icon field_94392_b; public Icon getIcon(int par1, int par2) { return par1 == 0 ? this.field_94392_b : (par1 == 1 ? this.field_94393_a : this.blockIcon); } public void registerIcons(IconRegister par1IconRegister) { this.blockIcon = par1IconRegister.registerIcon("Your Mod:Side Texture");//Side this.field_94393_a = par1IconRegister.registerIcon("Your Mod:Top Texture");//Top this.field_94392_b = par1IconRegister.registerIcon("Your Mod:Bottom Texture");//Bottom }This is also on my "Modding Tips" MCF Post, but u know, just replace ("Your Mod:Side Texture") and stuff to work with your mod.
Help modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist
Son of a beehive! He threw a rock at the nest! Way to go, Paul.
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumyup...
Help modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist
package c0dpr0ftw.MoarTrees; import net.minecraft.block.Block; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.Item; import net.minecraft.item.ItemFood; import net.minecraft.item.ItemStack; import net.minecraftforge.common.EnumHelper; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; @Mod(modid="MoarTrees",name="Moar Trees",version="v0.0.1") @NetworkMod(clientSideRequired=true,serverSideRequired=false) public class MoarTrees { public static Block BlueWood; public static Block RedWood; public void load(FMLInitializationEvent event){ BlueWood=new BlueWood(5803,"BlueWood").setUnlocalizedName("BlueWood").setHardness(2.0F).setStepSound(Block.soundWoodFootstep); GameRegistry.registerBlock(BlueWood, "BlueWood"); LanguageRegistry.addName(BlueWood, "Blue Wood"); RedWood = new RedWood(5805,"RedWood").setUnlocalizedName("RedWood").setHardness(2.0F).setStepSound(Block.soundWoodFootstep); GameRegistry.registerBlock(RedWood, "RedWood"); LanguageRegistry.addName(RedWood, "Red Wood Log"); } }package c0dpr0ftw.MoarTrees; import java.util.Random; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.registry.LanguageRegistry; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; public class BlueWood extends Block { public BlueWood(int par1, String texture) { super(par1, Material.wood); setCreativeTab(CreativeTabs.tabBlock); //place in creative tabs } //drops when broken with pickaxe public int idDropped(int par1, Random par2Random, int par3) { return MoarTrees.BlueWood.blockID; } public int quantityDropped(Random random) { return 1; } //texure the block (Not sure if it's required) public String getTextureFile(){ return "/textures/blocks/BlueWood.png"; } }package c0dpr0ftw.MoarTrees; import java.util.Random; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.registry.LanguageRegistry; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; public class RedWood extends Block { public RedWood(int par1, String texture) { super(par1, Material.wood); setCreativeTab(CreativeTabs.tabBlock); //place in creative tabs } //drops when broken with pickaxe public int idDropped(int par1, Random par2Random, int par3) { return MoarTrees.RedWood.blockID; } public int quantityDropped(Random random) { return 1; }<a href="https://albiononline.com/?ref=P2149ZEWG5" target="_blank" rel="nofollow"><img src="//d3tlyyvdb4qnu4.cloudfront.net/images/banner/970X250_01_Learn_More.jpg" alt="" border="0"></a>
try lowering the item ID's they might be too high
i have tried that. It did not work.
<a href="https://albiononline.com/?ref=P2149ZEWG5" target="_blank" rel="nofollow"><img src="//d3tlyyvdb4qnu4.cloudfront.net/images/banner/970X250_01_Learn_More.jpg" alt="" border="0"></a>
I tried to lower it to 2000
<a href="https://albiononline.com/?ref=P2149ZEWG5" target="_blank" rel="nofollow"><img src="//d3tlyyvdb4qnu4.cloudfront.net/images/banner/970X250_01_Learn_More.jpg" alt="" border="0"></a>
Try lowering the item ID to about 1,000-2,000
I do the ore generation part and when I start up a new world, I have no idea how to find out if it generated.
I get no errors with the game and I have been mining through my world forever trying to find it.
If somebody who has found it can help me, thanks!
2013-06-12 00:29:45 [INFO] [STDERR]
2013-06-12 00:29:45 [INFO] [STDERR] at AwesomeMod.Tutorial.AwesomeMod.<init>(AwesomeMod.java:1)
2013-06-12 00:29:45 [INFO] [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2013-06-12 00:29:45 [INFO] [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
2013-06-12 00:29:45 [INFO] [STDERR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
2013-06-12 00:29:45 [INFO] [STDERR] at java.lang.reflect.Constructor.newInstance(Unknown Source)
2013-06-12 00:29:45 [INFO] [STDERR] at java.lang.Class.newInstance0(Unknown Source)
2013-06-12 00:29:45 [INFO] [STDERR] at java.lang.Class.newInstance(Unknown Source)
2013-06-12 00:29:45 [INFO] [STDERR] at cpw.mods.fml.common.ILanguageAdapter$JavaAdapter.getNewInstance(ILanguageAdapter.java:36)
2013-06-12 00:29:45 [INFO] [STDERR] at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:466)
2013-06-12 00:29:45 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-06-12 00:29:45 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-06-12 00:29:45 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-06-12 00:29:45 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
2013-06-12 00:29:45 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2013-06-12 00:29:45 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2013-06-12 00:29:45 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
2013-06-12 00:29:45 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2013-06-12 00:29:45 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2013-06-12 00:29:45 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
2013-06-12 00:29:45 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-06-12 00:29:45 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-06-12 00:29:45 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-06-12 00:29:45 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
2013-06-12 00:29:45 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2013-06-12 00:29:45 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2013-06-12 00:29:45 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
2013-06-12 00:29:45 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2013-06-12 00:29:45 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2013-06-12 00:29:45 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
2013-06-12 00:29:45 [INFO] [STDERR] at cpw.mods.fml.common.Loader.loadMods(Loader.java:503)
2013-06-12 00:29:45 [INFO] [STDERR] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160)
2013-06-12 00:29:45 [INFO] [STDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:410)
2013-06-12 00:29:45 [INFO] [STDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
2013-06-12 00:29:45 [INFO] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:732)
2013-06-12 00:29:45 [INFO] [STDERR] at java.lang.Thread.run(Unknown Source)
Please Help
Try an Xray mod. That'll make the progress simpler.
eg
GameRegistry.addRecipe(new ItemStack(Modded item 3,1), new Object[]{
" "," M ","F F",'M',<insert Modded item 1>,'F',<insert Modded item 2>,
});
With normal item creation I know I put in item.<insert item> or block.<insert block> but I have no clue how to use modded items in this.
when using a modded item you do ModdedItem instead of Item.ModdedItem
Same For a Block, ModdedBlock instead of Block.ModdedItem
This will work providing everything is in the same class