Jump to content

ianno1993

Members
  • Posts

    13
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

ianno1993's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Well, I want to provide the Javadocs online. ATM i'm uploading them to my webserver. But it came to my intention that you amazing people don't want that to happen. My question: Are you fine with me uploading them as soon they are available? My reason: Well some people like Me and my friend are working on a project, but sometimes we have questions about things, or make tutorial's for certain things. but we want to sent each other to the documentation of a certain thing. So i set them online, so people can directly link to the correct page. I will upload the latest from forge-1.7.2-10.12.0.1046 And At the top will be the recommended one. Also I hope I dont break any rule, but i have the page done for now. and i will add the following Javadocs from now on. Here is the page: http://dutchminecraftmodteam.iblogger.org/ForgeJavadocs/ Note 1: I have there a disclaimer that says it's NOT my work. I only host the site online. Note 2: I also dont get ANY money from the site due to no ads or anything like that. Note 3: Yes i'm a noob im PHP, so it's all in HTML. BUT I will update it ASAP as there is a Forge update! Also If you want me to take it down, because you think you totally dislike the page. Just post it here with all the hate. I can take it! or message me. And I will remove it ASAP from my server. As last I want to thank you all for the hard work you have done for the community! It's stunning me every time you add something new. Thanks allot. Greetings, Ianno. PS. English isn't my first language and I will fix any misspells and language derps.
  2. hhmm Thanks, But does anyone know such a world gen code? Who i can use, of course people WILL and NEED to get credits! So if anyone knows about one. let me know!
  3. NVM that should fix any derps... like we will have the default route to the textures and stuff like that. Thanks you allot! You are a true Coding God Hhmm okay, If we dont could that cause strange derps in the mod if we dont sync everything, like we have here:
  4. Hhmm okay, If we dont could that cause strange derps in the mod if we dont sync everything, like we have here:
  5. Well we want to spawn BIG stone veins but if we have the max vein size have on 256 the game just insta-crashes in the def zone. Our question is how to fix that, we want to have vein sizes of like 1024+, I mean like the veins of red and black granite from Gregtech. Here is our current world gen code: http://pastebin.com/ynkQ8G3q
  6. Well the thing is, we are using Github to sync stuff between me and my friend, and the name of the repository is the name of the folder it syncs with. so the name main was inconvenient to use as the repository name. The problem we have now is everything works the name from the en_US.lang file, but not the textures. Here is our map structure: The code we use for the texture: package dmmt.dp.blocks.rawores; import java.util.Random; import dmmt.dp.main.Main; import dmmt.dp.main.ModInfo; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; public class TitaniumOre extends Block { public TitaniumOre(int i, Material par2Material) { super(par2Material); setHardness(5.0F); setStepSound(Block.soundTypeStone); setBlockName("titaniumOre"); setCreativeTab(CreativeTabs.tabBlock); setBlockTextureName(ModInfo.NAME.toLowerCase() + ":titaniumOre"); } } And the modinfo.java code: package dmmt.dp.main; public class ModInfo { public static final String ID = "dmmt-dutchpower"; public static final String NAME = "dmmt-dutchpower"; public static final String VERSION = "1.7.2 - 0.0.00A"; public static final String CLIENTPROXY = "dmmt.dp.main.client."; public static final String COMMONPROXY = "dmmt.dp.main."; }
  7. Well we are almost done with setting up our modding environment, but we have a question about the path we want to use. Well our question is if we can change the "main" folder in the mods name. We mean the following folder:
  8. Well i have added a hammer to make me some Diamond dust. it works. but it uses the hammer, And i don't know how i can return it with damage. IF That's to hard. I want to have it return into the player inventory. i use the following code to use it to craft: To Set the Items to craft: ItemStack Diamond = new ItemStack(Item.diamond); ItemStack WGMHammer = new ItemStack(this.WGMHammer); ItemStack DiaDust = new ItemStack(this.diamondDust); To Craft the Diamond Dust: GameRegistry.addShapelessRecipe(DiaDust, Diamond, WGMHammer); The Hammer's Code in the main class: public final Item WGMHammer = new WGMHammer(5002, HammerMaterial).setCreativeTab(CreativeTabs.tabTools).setUnlocalizedName("WGMHammer").setTextureName("WorldGenPlus:WGMHammer"); I also Used a Custom Material, so it only has 125 usages: public EnumToolMaterial HammerMaterial = EnumHelper.addToolMaterial("HammerMaterial", 1, 125, 4.0F, 5.0F, 22); Also i have made the tool work on cobble, that is also within the 125 durability, if it's possible. Thanks for reading this, and i hope anyone can help me. Greetings, The Dutch Guy. ps. i have some experience, but not allot.
  9. OH MY! i will lock this, im such a derp! i have fixed it!
  10. Well hello everyone. I'm new to Forge modding and relative new to Java, But i understand enough to program a mod. But i have problems with a adding ore with custom drops. it doesn't seems to recognize my custom drop. And i have no idea what i have to paste, I will paste just the code i have so far. Also before hand, i will say sorry for not using the "Insert code" option, but it didn't work. EDIT: N.V.M, it worked in a other browser. The main .java: package ianno.worldgenplus; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.item.Item; import net.minecraftforge.common.MinecraftForge; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid="WorldGenPlus", name="WorldGenPlus", version="0.0.0") @NetworkMod(clientSideRequired=true, serverSideRequired=false) public class WorldGenPlus { public final static Block carbyneOre = new carbyneOre(500, Material.rock); public final static Item carbyneCompound = new CarbyneCompound(5000); // The instance of your mod that Forge uses. @Instance("WorldGenPlus") public static WorldGenPlus instance; // Says where the client and server 'proxy' code is loaded. @SidedProxy(clientSide="ianno.worldgenplus.client.ClientProxy", serverSide="ianno.worldgenplus.CommonProxy") public static CommonProxy proxy; @EventHandler public void preInit(FMLPreInitializationEvent event) { // Stub Method } @EventHandler public void load(FMLInitializationEvent event) { proxy.registerRenderers(); GameRegistry.registerBlock(carbyneOre, "carbyneOre"); LanguageRegistry.addName(carbyneOre, "Carbyne Ore"); MinecraftForge.setBlockHarvestLevel(carbyneOre, "pickaxe", 3); GameRegistry.registerItem(carbyneCompound, "carbyneCompound"); LanguageRegistry.addName(carbyneCompound,"Carbyne Compound"); } @EventHandler public void postInit(FMLPostInitializationEvent event) { // Stub Method } } The Ore.java: package ianno.worldgenplus; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.item.Item; import net.minecraftforge.common.MinecraftForge; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid="WorldGenPlus", name="WorldGenPlus", version="0.0.0") @NetworkMod(clientSideRequired=true, serverSideRequired=false) public class WorldGenPlus { public final static Block carbyneOre = new carbyneOre(500, Material.rock); public final static Item carbyneCompound = new CarbyneCompound(5000); // The instance of your mod that Forge uses. @Instance("WorldGenPlus") public static WorldGenPlus instance; // Says where the client and server 'proxy' code is loaded. @SidedProxy(clientSide="ianno.worldgenplus.client.ClientProxy", serverSide="ianno.worldgenplus.CommonProxy") public static CommonProxy proxy; @EventHandler public void preInit(FMLPreInitializationEvent event) { // Stub Method } @EventHandler public void load(FMLInitializationEvent event) { proxy.registerRenderers(); GameRegistry.registerBlock(carbyneOre, "carbyneOre"); LanguageRegistry.addName(carbyneOre, "Carbyne Ore"); MinecraftForge.setBlockHarvestLevel(carbyneOre, "pickaxe", 3); GameRegistry.registerItem(carbyneCompound, "carbyneCompound"); LanguageRegistry.addName(carbyneCompound,"Carbyne Compound"); } @EventHandler public void postInit(FMLPostInitializationEvent event) { // Stub Method } } The OreDrop.java: package ianno.worldgenplus; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; public class CarbyneCompound extends Item { public CarbyneCompound(int id) { super(id); setMaxStackSize(64); setCreativeTab(CreativeTabs.tabMaterials); setUnlocalizedName("carbyneCompound"); } } Thanks for spending time to watch this. and i hope you are able to help me. Also IF you have a better option to this, i will change my post. Greetings, The Dutch Guy
  11. Well First watch the following to learn Java: http://thenewboston.org/list.php?cat=31 That helped me ALLOT! After you think you know the basics. I recommend the following modding series. because they are short, and short: http://www.youtube.com/playlist?list=PLrnh7I7rzm5zvPDCW6eGWhTVQh3BPh2bu
  12. For the furnace, and im not totally sure because i started modding a week age, but i think it's in net.minecraft.block.BlockFurnace.
×
×
  • Create New...

Important Information

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