//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 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");
SC, can you make tutorials that "how to make blocks spread trough other blocks and burn when set on fire" and "how to make 3D modeled item using Techne"?
To add a spreadable block use this code
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
{
if (!par1World.isRemote)
{
if (par1World.getBlockLightValue(par2, par3 + 1, par4) < 4 && par1World.getBlockLightOpacity(par2, par3 + 1, par4) > 2)
{
par1World.setBlock(par2, par3, par4, the class the block is in.the block you want to spread over other blocks.blockID);
}
else if (par1World.getBlockLightValue(par2, par3 + 1, par4) >= 9)
{
for (int l = 0; l < 45; ++l)
{
int i1 = par2 + par5Random.nextInt(3) - 1;
int j1 = par3 + par5Random.nextInt(5) - 3;
int k1 = par4 + par5Random.nextInt(3) - 1;
int l1 = par1World.getBlockId(i1, j1 + 1, k1);
if (par1World.getBlockId(i1, j1, k1) == the class the block is in.the block you want to spread over.blockID && par1World.getBlockLightValue(i1, j1 + 1, k1) >= 4 && par1World.getBlockLightOpacity(i1, j1 + 1, k1) <= 2)
{
par1World.setBlock(i1, j1, k1, the class the block is in.the block you want to spread over other blocks.blockID);
}
}
}
}
}
}
keep in mind you must put this code in the block class that you want to spread over other blocks
SCMowns, thanks so much for this tutorial! It's super awesome and helped me through a lot of the beginning stuff in learning modding.
I do have a question, though. I enchanted certain pieces of custom armor with potions in my mod (e.g., helmet with Night Vision for seeing underwater), and I would like for the potion names to not show up beside the inventory GUI. Any way to do this?
Suggestions Mr.SCMowns
How bout' fuels?
but please add the the smelting code first (And the armor)..
also some explosive blocks....
and lighter stuffs like flint and steel or the fire charge
I have an issue trying to work out how to resize texture maps for Techne. Textures larger than 32x32 won't resize properly, and attempting to resize in GIMP is screwing the texture map up - loading in the resized texture just pastes the larger one in over the smaller one, rather than replacing it, and only a small portion of the new texture map affects the mob. Does anyone know what I'm doing wrong?
Rollback Post to RevisionRollBack
A.K.A user_316165.
To touch Divinity, one must be prepared to brave Reality.
Thanks a lot for all the great tutorials Steven, with your tutorials and some of my own knowledge I am now creating my own modded server! And also I was wondering how you made grenades and other bows and also if there is a way to give an item a light level like a redstone torch?
Thanks, Dylan.
Hey scmowns, I was wondering if you could make a tutorial on armor and or how to make a new torch! If you could it would be greatly appreciated! Thanks!
Hey scmowns, I was wondering if you could make a tutorial on armor and or how to make a new torch! If you could it would be greatly appreciated! Thanks!
i don't know armor, but i can torches, i just released a new version of my mod that adds torches....redstone and normal
Some suggestions, not sure if all of them are already suggested but heres a list:
Item Rendered (Creating 3D rendering items.)
Boss mobs (Such as special attacks, BOSS HUD display etc.)
New GUIs
Structure Generation (Simple Structure generation & Schematic Generation if possible)
I might list more, but this is all I can think of.
Also SCMowns, you've inspired me to get back into the modding of Minecraft. I plan on releasing an original mod soon and I'll make sure I include you in my credits as "inspiration",
hey i've started over recently, and i cant find the download for eclipse classic on the eclipse downloads page. i clicked the link you posted but the page doesn't have the classic version. any help?
when looking at your src, it looks fine =/ Have you tried to close everything you have worked on and recompile it and check it after that?
Thank you!
it's similar to modloader
Adding that to the list =)
Heres a link to it http://www.minecraftforum.net/topic/1864713-flyingminerlinks-fmlcraft-mod-main-topic/
dude you never added a name to your ingot add in your language registry
LanguageRegistry.addName(Mythril, "Mythril Ingot");
To add a spreadable block use this code
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
{
if (!par1World.isRemote)
{
if (par1World.getBlockLightValue(par2, par3 + 1, par4) < 4 && par1World.getBlockLightOpacity(par2, par3 + 1, par4) > 2)
{
par1World.setBlock(par2, par3, par4, the class the block is in.the block you want to spread over other blocks.blockID);
}
else if (par1World.getBlockLightValue(par2, par3 + 1, par4) >= 9)
{
for (int l = 0; l < 45; ++l)
{
int i1 = par2 + par5Random.nextInt(3) - 1;
int j1 = par3 + par5Random.nextInt(5) - 3;
int k1 = par4 + par5Random.nextInt(3) - 1;
int l1 = par1World.getBlockId(i1, j1 + 1, k1);
if (par1World.getBlockId(i1, j1, k1) == the class the block is in.the block you want to spread over.blockID && par1World.getBlockLightValue(i1, j1 + 1, k1) >= 4 && par1World.getBlockLightOpacity(i1, j1 + 1, k1) <= 2)
{
par1World.setBlock(i1, j1, k1, the class the block is in.the block you want to spread over other blocks.blockID);
}
}
}
}
}
}
keep in mind you must put this code in the block class that you want to spread over other blocks
I do have a question, though. I enchanted certain pieces of custom armor with potions in my mod (e.g., helmet with Night Vision for seeing underwater), and I would like for the potion names to not show up beside the inventory GUI. Any way to do this?
I'm also known as TANNAR in some places.
How bout' fuels?
but please add the the smelting code first (And the armor)..
also some explosive blocks....
and lighter stuffs like flint and steel or the fire charge
Thank you!
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumHelp modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist
To touch Divinity, one must be prepared to brave Reality.
Thanks, Dylan.
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumi don't know armor, but i can torches, i just released a new version of my mod that adds torches....redstone and normal
Help modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist
please make a mod on ARMOR Set!
btw way i subscribed and gave you an emeraled
Same as for 1.4.x to 1.5.x
Item Rendered (Creating 3D rendering items.)
Boss mobs (Such as special attacks, BOSS HUD display etc.)
New GUIs
Structure Generation (Simple Structure generation & Schematic Generation if possible)
I might list more, but this is all I can think of.
Also SCMowns, you've inspired me to get back into the modding of Minecraft. I plan on releasing an original mod soon and I'll make sure I include you in my credits as "inspiration",
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumit's ItemSpade
Help modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist