Page 1 of 1

I just made my first mod

Posted: Wed Mar 18, 2015 5:19 pm
by Xan
Works with Forge 1.8
Adds the Craftland block "Shadow stone" and my own version of the Cursed Blade, oh the little texture thief I am.
It also adds "Fire Shadow Stone" which is Light Shadow Stone but red instead of green, and "Cold Shadow Stone".

I won't explain recipes (which the sword "just a bit" OP for the given recipe), so you can just look at the recipe code-block.

Code: Select all

GameRegistry.addRecipe(new ItemStack(shadowStone, 8), new Object[]{
	"ABA",
	"BAB",
	"ABA",
	'A', Blocks.cobblestone, 'B', Blocks.coal_block
});
		
GameRegistry.addRecipe(new ItemStack(shadowStone, 1), new Object[]{
	"ABA",
	"BAB",
	"ABA",
	'A', Blocks.cobblestone, 'B', Items.coal
});
		
GameRegistry.addRecipe(new ItemStack(shadowSword), new Object[]{
	"A",
	"A",
	"B",
	'A', shadowStone, 'B', Items.stick
});
		
GameRegistry.addShapelessRecipe(new ItemStack(lightShadowStone), Blocks.glowstone, shadowStone);
		
GameRegistry.addShapelessRecipe(new ItemStack(flameShadowStone, 2), Items.lava_bucket, lightShadowStone);

GameRegistry.addShapelessRecipe(new ItemStack(lightShadowStone), Items.water_bucket, flameShadowStone);
		
GameRegistry.addShapelessRecipe(new ItemStack(coldShadowStone, 2), Blocks.ice, lightShadowStone);
		
GameRegistry.addShapelessRecipe(new ItemStack(coldShadowStone, 2), Blocks.packed_ice, lightShadowStone);

Re: I just made my first mod

Posted: Wed Mar 18, 2015 6:32 pm
by Toguno
I do not really understand coding, but congrats.

Re: I just made my first mod

Posted: Thu Mar 26, 2015 2:23 am
by Fightface
Where did you learn coding at? Online? An irl class?

Re: I just made my first mod

Posted: Thu Mar 26, 2015 4:36 am
by Kye
Grates I have no clue what this even does but grates

Re: I just made my first mod

Posted: Fri Mar 27, 2015 1:07 am
by RidleyWing
Try to make my first mod using a program. Annoying as hell

Re: I just made my first mod

Posted: Sat Mar 28, 2015 1:43 am
by Xan
I tried taking Java classes to better understand it, but the classes ended up "refreshing" my coding knowledge.

In a sense, I taught myself.