For episode 8, you said you would show us how to export our mod, I found out how to do this myself and it really is a very quick process, so could you also include a tutorial on how to code lets say armour? Also my friend wants me to make a mod where creating a new world generates this structure close to spawn. I hope you can do a tutorial on structure generation within a few episodes. Thanks
For episode 8, you said you would show us how to export our mod, I found out how to do this myself and it really is a very quick process, so could you also include a tutorial on how to code lets say armour? Also my friend wants me to make a mod where creating a new world generates this structure close to spawn. I hope you can do a tutorial on structure generation within a few episodes. Thanks
Yes I will go over armor soon, but episode 8 is now creative tabs
Steven. I really need help with a part of my mod. I need to know how to add effects to a sword. Like whatever a sword hits gets poisoned. Can you please help me with that? I want to be able to get this mod done. Thanks for reading this!
Could you PLEASE do a direction placement tutorial in forge!?!?! All my blocks/TE's face the same way!!! It's killing me......I've asked for help everywhere and people are like sure but then never help....Please help! this is my code example https://github.com/x...ity-EXAMPLE.git
Hey Steven? Do you need the new Forge Smelting Code? Well I will give you a explanation: FurnaceRecipes.smelting().addSmelting(tutorialblock.blockID, 0, new ItemStack(tutorialitem, 9), 1F);
Explanation: FurnaceRecipies is the java file that contains all the Smelting recipies in Minecraft. .smelting() is a method that returns an instance of that file.
.addSmelting() which is a non-static method so it helps us create our recipie
The first parameter inside .addSmelting() is the block or item that you want to be the input your block or item needs to be followed with .blockID, and if its an Item make it .itemID. The code in the parenthesis after 'ItemStack' is the output and how much of the item you want after smelting the input.
The second parameter is the metadata value for the item (if you have a metadata).
The third parameter is an ItemStack which means it can have metadata, size, and enchantments etc.
The last parameter is the Xp value you get from smelting. For example 0.1F is Cobblestone, and 1F is Diamond Ore.
Hey, do you know where the class file for the sun is? I'm making a flare and it needs to project a 20x20 square of light onto the area under it. The basic setLightValue isn't nearly enough light (especially since said flare is high above the ground). I'm thinking making a mini sun might do the job, but if you know of a better way of doing the job, let me know. thanks
Hallo There.
So I been following your tutorial and even added some more code that you have.... And today I managed to cleen up my Code and I got following error whan trying to start minecraft
Is it possible to help me?
2013-06-27 21:57:53 [INFO] [ForgeModLoader] Forge Mod Loader version 5.2.2.684 for Minecraft 1.5.2 loading
2013-06-27 21:57:53 [INFO] [ForgeModLoader] Java is Java HotSpotâ„¢ 64-Bit Server VM, version 1.8.0-ea, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre8
2013-06-27 21:57:53 [INFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
2013-06-27 21:57:58 [INFO] [STDOUT] FMLRelauncher.relaunchApplet
2013-06-27 21:57:58 [INFO] [STDERR] java.lang.reflect.InvocationTargetException
2013-06-27 21:57:58 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-06-27 21:57:58 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2013-06-27 21:57:58 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2013-06-27 21:57:58 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:491)
2013-06-27 21:57:58 [INFO] [STDERR] at cpw.mods.fml.relauncher.FMLRelauncher.relaunchApplet(FMLRelauncher.java:247)
2013-06-27 21:57:58 [INFO] [STDERR] at cpw.mods.fml.relauncher.FMLRelauncher.appletEntry(FMLRelauncher.java:229)
2013-06-27 21:57:58 [INFO] [STDERR] at net.minecraft.client.MinecraftApplet.init(MinecraftApplet.java:25)
2013-06-27 21:57:58 [INFO] [STDERR] at net.minecraft.client.Minecraft.fmlReentry(Minecraft.java:2335)
2013-06-27 21:57:58 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-06-27 21:57:58 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2013-06-27 21:57:58 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2013-06-27 21:57:58 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:491)
2013-06-27 21:57:58 [INFO] [STDERR] at cpw.mods.fml.relauncher.FMLRelauncher.relaunchClient(FMLRelauncher.java:123)
2013-06-27 21:57:58 [INFO] [STDERR] at cpw.mods.fml.relauncher.FMLRelauncher.handleClientRelaunch(FMLRelauncher.java:38)
2013-06-27 21:57:58 [INFO] [STDERR] at net.minecraft.client.Minecraft.main(Minecraft.java:2236)
2013-06-27 21:57:58 [INFO] [STDERR] at Start.main(Start.java:29)
2013-06-27 21:57:58 [INFO] [STDERR] Caused by: java.lang.ExceptionInInitializerError
2013-06-27 21:57:58 [INFO] [STDERR] at net.minecraft.client.Minecraft.(Minecraft.java:293)
2013-06-27 21:57:58 [INFO] [STDERR] at net.minecraft.client.MinecraftAppletImpl.(MinecraftAppletImpl.java:19)
2013-06-27 21:57:58 [INFO] [STDERR] at net.minecraft.client.MinecraftApplet.fmlInitReentry(MinecraftApplet.java:32)
2013-06-27 21:57:58 [INFO] [STDERR] ... 16 more
2013-06-27 21:57:58 [INFO] [STDERR] Caused by: java.lang.NullPointerException
2013-06-27 21:57:58 [INFO] [STDERR] at net.minecraft.stats.StatList.initMinableStats(StatList.java:185)
2013-06-27 21:57:58 [INFO] [STDERR] at net.minecraft.stats.StatList.(StatList.java:96)
2013-06-27 21:57:58 [INFO] [STDERR] ... 19 more
2013-06-27 21:57:58 [INFO] [STDERR] java.lang.reflect.InvocationTargetException
2013-06-27 21:57:58 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-06-27 21:57:58 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2013-06-27 21:57:58 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2013-06-27 21:57:58 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:491)
2013-06-27 21:57:58 [INFO] [STDERR] at cpw.mods.fml.relauncher.FMLRelauncher.relaunchClient(FMLRelauncher.java:123)
2013-06-27 21:57:58 [INFO] [STDERR] at cpw.mods.fml.relauncher.FMLRelauncher.handleClientRelaunch(FMLRelauncher.java:38)
2013-06-27 21:57:58 [INFO] [STDERR] at net.minecraft.client.Minecraft.main(Minecraft.java:2236)
2013-06-27 21:57:58 [INFO] [STDERR] at Start.main(Start.java:29)
2013-06-27 21:57:58 [INFO] [STDERR] Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
2013-06-27 21:57:58 [INFO] [STDERR] at cpw.mods.fml.relauncher.FMLRelauncher.relaunchApplet(FMLRelauncher.java:254)
2013-06-27 21:57:58 [INFO] [STDERR] at cpw.mods.fml.relauncher.FMLRelauncher.appletEntry(FMLRelauncher.java:229)
2013-06-27 21:57:58 [INFO] [STDERR] at net.minecraft.client.MinecraftApplet.init(MinecraftApplet.java:25)
2013-06-27 21:57:58 [INFO] [STDERR] at net.minecraft.client.Minecraft.fmlReentry(Minecraft.java:2335)
2013-06-27 21:57:58 [INFO] [STDERR] ... 8 more
2013-06-27 21:57:58 [INFO] [STDERR] Caused by: java.lang.reflect.InvocationTargetException
2013-06-27 21:57:58 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-06-27 21:57:58 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2013-06-27 21:57:58 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2013-06-27 21:57:58 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:491)
2013-06-27 21:57:58 [INFO] [STDERR] at cpw.mods.fml.relauncher.FMLRelauncher.relaunchApplet(FMLRelauncher.java:247)
2013-06-27 21:57:58 [INFO] [STDERR] ... 11 more
2013-06-27 21:57:58 [INFO] [STDERR] Caused by: java.lang.ExceptionInInitializerError
2013-06-27 21:57:58 [INFO] [STDERR] at net.minecraft.client.Minecraft.(Minecraft.java:293)
2013-06-27 21:57:58 [INFO] [STDERR] at net.minecraft.client.MinecraftAppletImpl.(MinecraftAppletImpl.java:19)
2013-06-27 21:57:58 [INFO] [STDERR] at net.minecraft.client.MinecraftApplet.fmlInitReentry(MinecraftApplet.java:32)
2013-06-27 21:57:58 [INFO] [STDERR] ... 16 more
2013-06-27 21:57:58 [INFO] [STDERR] Caused by: java.lang.NullPointerException
2013-06-27 21:57:58 [INFO] [STDERR] at net.minecraft.stats.StatList.initMinableStats(StatList.java:185)
2013-06-27 21:57:58 [INFO] [STDERR] at net.minecraft.stats.StatList.(StatList.java:96)
2013-06-27 21:57:58 [INFO] [STDERR] ... 19 more
2013-06-27 21:58:03 [INFO] [STDERR] Someone is closing me!
Java HotSpotâ„¢ 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
maybe take the mod out of src, then run "cleanup.bat" then "decompile.bat"? see if that works....
just make the block code and in the block class file, put "extends BlockStair"
or you can instead making the stairs own class file, you can put "BlockStair" instead of "BlockBloodStair" or what ever u named it. If you do it this way, you have to change the BlockStair class to public...
Can you do a quick tutorial on how to recompile the mod in forge and where to find the files after you compile it... Because I want to send the different versions of my Mod to my friends who are helping me with it ..
Can you do a quick tutorial on how to recompile the mod in forge and where to find the files after you compile it... Because I want to send the different versions of my Mod to my friends who are helping me with it ..
There is a lot of tutorials on the internet, and just go to your src/net/minecraft then the beginning of your package should be there. Then the java files should be, and then you go back to your mcp folder and click recompile, then once that is done you click reobfuscate then once that is done, go to your reobf folder than your mod should be there in the layout of your package.
//tools
public static Item MythrilAxe;
public static Item MythrilShovel;
public static Item MythrilSword;
public static Item MythrilPickaxe;
public static Item MythrilHoe;
//blocks
public static Block MythrilBlock;
public static Block MythrilOre;
//Declaring Init
@Init
public void load(FMLInitializationEvent event){
// define items/blocks
MythrilBlock = new MythrilBlock(2014, "MythrilBlock").setUnlocalizedName("blockMythril").setHardness(4.0F).setStepSound(Block.soundMetalFootstep).setResistance(10.0F);
GameRegistry.registerBlock(MythrilBlock, "MythrilBlock");
LanguageRegistry.addName(MythrilBlock, "Mythril Block");
//tools
MythrilAxe = new GudjonsAxe(2017, EnumToolMaterialMythril).setUnlocalizedName("MythrilAxe");
MythrilShovel = new GudjonsShovel(2018, EnumToolMaterialMythril).setUnlocalizedName("MythrilShovel");
MythrilPickaxe = new GudjonsPickaxe(2019, EnumToolMaterialMythril).setUnlocalizedName("MythrilPickaxe");
MythrilHoe = new GudjonsHoe(2020, EnumToolMaterialMythril).setUnlocalizedName("MythrilHoe");
MythrilSword = new GudjonsSword(2021, EnumToolMaterialMythril).setUnlocalizedName("MythrilSword");
MythrilOre = new MythrilOre(2015, "MythrilOre").setUnlocalizedName("oreMythril").setHardness(6.0F).setStepSound(Block.soundStoneFootstep).setResistance(10.0F);
GameRegistry.registerBlock(MythrilOre, "MythrilOre");
LanguageRegistry.addName(MythrilOre, "Mythril Ore");
Mythril = new Ingots(2013).setUnlocalizedName("Mythril ingot");
I am having problems finding code for some block formats for advanced block Render types.
If you know the code for the flowing blocks please post them here:
Blocks:
> Stairs
> Slabs
> Cobblestone Wall
> Glass Pane / Iron Bars
> Fence
> Fence Gate
> Trap Door
> wooden door / iron door
> String (The Block)
> ladder
> Flower Pot
> Pressure Plates
> Buttons
Full code or just render type would be grate thanks
I just wanted to hop in and say thank you for making these tutorial videos, man. This has been the first instance where I've felt that making a mod is possible for me! It really makes me want to learn more about how all of this works, etc. Keep up the good work!
//tools
public static Item MythrilAxe;
public static Item MythrilShovel;
public static Item MythrilSword;
public static Item MythrilPickaxe;
public static Item MythrilHoe;
//blocks
public static Block MythrilBlock;
public static Block MythrilOre;
//Declaring Init
@Init
public void load(FMLInitializationEvent event){
// define items/blocks
MythrilBlock = new MythrilBlock(2014, "MythrilBlock").setUnlocalizedName("blockMythril").setHardness(4.0F).setStepSound(Block.soundMetalFootstep).setResistance(10.0F);
GameRegistry.registerBlock(MythrilBlock, "MythrilBlock");
LanguageRegistry.addName(MythrilBlock, "Mythril Block");
//tools
MythrilAxe = new GudjonsAxe(2017, EnumToolMaterialMythril).setUnlocalizedName("MythrilAxe");
MythrilShovel = new GudjonsShovel(2018, EnumToolMaterialMythril).setUnlocalizedName("MythrilShovel");
MythrilPickaxe = new GudjonsPickaxe(2019, EnumToolMaterialMythril).setUnlocalizedName("MythrilPickaxe");
MythrilHoe = new GudjonsHoe(2020, EnumToolMaterialMythril).setUnlocalizedName("MythrilHoe");
MythrilSword = new GudjonsSword(2021, EnumToolMaterialMythril).setUnlocalizedName("MythrilSword");
MythrilOre = new MythrilOre(2015, "MythrilOre").setUnlocalizedName("oreMythril").setHardness(6.0F).setStepSound(Block.soundStoneFootstep).setResistance(10.0F);
GameRegistry.registerBlock(MythrilOre, "MythrilOre");
LanguageRegistry.addName(MythrilOre, "Mythril Ore");
Mythril = new Ingots(2013).setUnlocalizedName("Mythril ingot");
I am having problems finding code for some block formats for advanced block Render types.
If you know the code for the flowing blocks please post them here:
Blocks:
> Stairs
> Slabs
> Cobblestone Wall
> Glass Pane / Iron Bars
> Fence
> Fence Gate
> Trap Door
> wooden door / iron door
> String (The Block)
> ladder
> Flower Pot
> Pressure Plates
> Buttons
Full code or just render type would be grate thanks
i know for the fences, stairs, slabs, make the new block of that, and implement "BlockStiars" or what ever. i haven't tried for buttons and stuff...
or you can (in the main class) have all that code for the block, and put "new BlockStairs" instead of "new BlockQuartzStair" or what ever. But if u do it this way, you have to change the star block class to "public"
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumi think it's because the item id "1069" is already taken...
Help modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist
Yes I will go over armor soon, but episode 8 is now creative tabs
Explanation: FurnaceRecipies is the java file that contains all the Smelting recipies in Minecraft. .smelting() is a method that returns an instance of that file.
.addSmelting() which is a non-static method so it helps us create our recipie
The first parameter inside .addSmelting() is the block or item that you want to be the input your block or item needs to be followed with .blockID, and if its an Item make it .itemID. The code in the parenthesis after 'ItemStack' is the output and how much of the item you want after smelting the input.
The second parameter is the metadata value for the item (if you have a metadata).
The third parameter is an ItemStack which means it can have metadata, size, and enchantments etc.
The last parameter is the Xp value you get from smelting. For example 0.1F is Cobblestone, and 1F is Diamond Ore.
I hoped this helped everyone!
-
View User Profile
-
View Posts
-
Send Message
Curse Premiummaybe take the mod out of src, then run "cleanup.bat" then "decompile.bat"? see if that works....
just make the block code and in the block class file, put "extends BlockStair"
or you can instead making the stairs own class file, you can put "BlockStair" instead of "BlockBloodStair" or what ever u named it. If you do it this way, you have to change the BlockStair class to public...
Help modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist
AKA new kind/type of armor
Google is your friend my friend.
My Mythril ingot lost it's name.
And the codes ofc.
/*
* Basic importing
*/
import net.minecraft.block.Block;
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;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
/*
* Basic needed forge stuff
*/
@Mod(modid="MythrilMod",name="Mythril Mod",version="v1")
@NetworkMod(clientSideRequired=true,serverSideRequired=false)
public class MythrilMod {
/*
* ToolMaterial
*/
static EnumToolMaterial EnumToolMaterialMythril= EnumHelper.addToolMaterial("HighPower", 3, 1500, 9.0F, 4, 15);
//Telling forge that we are creating these
//items
public static Item Mythril;
//tools
public static Item MythrilAxe;
public static Item MythrilShovel;
public static Item MythrilSword;
public static Item MythrilPickaxe;
public static Item MythrilHoe;
//blocks
public static Block MythrilBlock;
public static Block MythrilOre;
//Declaring Init
@Init
public void load(FMLInitializationEvent event){
// define items/blocks
MythrilBlock = new MythrilBlock(2014, "MythrilBlock").setUnlocalizedName("blockMythril").setHardness(4.0F).setStepSound(Block.soundMetalFootstep).setResistance(10.0F);
GameRegistry.registerBlock(MythrilBlock, "MythrilBlock");
LanguageRegistry.addName(MythrilBlock, "Mythril Block");
//tools
MythrilAxe = new GudjonsAxe(2017, EnumToolMaterialMythril).setUnlocalizedName("MythrilAxe");
MythrilShovel = new GudjonsShovel(2018, EnumToolMaterialMythril).setUnlocalizedName("MythrilShovel");
MythrilPickaxe = new GudjonsPickaxe(2019, EnumToolMaterialMythril).setUnlocalizedName("MythrilPickaxe");
MythrilHoe = new GudjonsHoe(2020, EnumToolMaterialMythril).setUnlocalizedName("MythrilHoe");
MythrilSword = new GudjonsSword(2021, EnumToolMaterialMythril).setUnlocalizedName("MythrilSword");
MythrilOre = new MythrilOre(2015, "MythrilOre").setUnlocalizedName("oreMythril").setHardness(6.0F).setStepSound(Block.soundStoneFootstep).setResistance(10.0F);
GameRegistry.registerBlock(MythrilOre, "MythrilOre");
LanguageRegistry.addName(MythrilOre, "Mythril Ore");
Mythril = new Ingots(2013).setUnlocalizedName("Mythril ingot");
//adding names
LanguageRegistry.addName(MythrilAxe, "Mythril Axe");
LanguageRegistry.addName(MythrilShovel, "Mythril Shovel");
LanguageRegistry.addName(MythrilPickaxe, "Mythril Pickaxe");
LanguageRegistry.addName(MythrilHoe, "Mythril Hoe");
LanguageRegistry.addName(MythrilSword, "Mythril Sword");
//crafting
GameRegistry.addRecipe(new ItemStack(MythrilBlock,1), new Object[]{
"MMM","MMM","MMM",'M',Mythril,
});
GameRegistry.addRecipe(new ItemStack(MythrilAxe,1), new Object[]{
" MM"," SM"," S ",'M',Mythril, 'S' , Item.stick
});
GameRegistry.addRecipe(new ItemStack(MythrilShovel,1), new Object[]{
" M "," S "," S ",'M',Mythril, 'S' , Item.stick
});
GameRegistry.addRecipe(new ItemStack(MythrilPickaxe,1), new Object[]{
"MMM"," S "," S ",'M',Mythril, 'S' , Item.stick
});
GameRegistry.addRecipe(new ItemStack(MythrilHoe,1), new Object[]{
" MM"," S "," S ",'M',Mythril, 'S' , Item.stick
});
GameRegistry.addRecipe(new ItemStack(MythrilSword,1), new Object[]{
" M "," M "," S ",'M',Mythril, 'S' , Item.stick
});
//reverse
GameRegistry.addShapelessRecipe(new ItemStack(Mythril,9), new Object[]{
MythrilBlock});
//world gen
GameRegistry.registerWorldGenerator(new WorldGeneratorGud());
}
}
Hi there
If you know the code for the flowing blocks please post them here:
Blocks:
> Stairs
> Slabs
> Cobblestone Wall
> Glass Pane / Iron Bars
> Fence
> Fence Gate
> Trap Door
> wooden door / iron door
> String (The Block)
> ladder
> Flower Pot
> Pressure Plates
> Buttons
Full code or just render type would be grate thanks
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumi think your missing the language registry for the ingot...
i know for the fences, stairs, slabs, make the new block of that, and implement "BlockStiars" or what ever. i haven't tried for buttons and stuff...
or you can (in the main class) have all that code for the block, and put "new BlockStairs" instead of "new BlockQuartzStair" or what ever. But if u do it this way, you have to change the star block class to "public"
Help modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist