I just made my first mod

Everything else goes here!
Post Reply
User avatar
Xan
Premium 1
Accountname: subzeroshark
Posts: 39
Joined: Jun 17, 2013
Last login: 3 years ago
Played: 480 hours
Blocks Mined: 79,558
Achievements: 63
Contact:

I just made my first mod

Post by Xan » Wed Mar 18, 2015 5:19 pm

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);
Undertale Prediction: Undertale Is Not A Series That I Do Because Undertale Is Not Real ...

User avatar
Toguno
Premium 6
Accountname: toguno
Posts: 1043
Joined: Feb 17, 2013
Last login: 6 years ago
Played: 1,412 hours
Blocks Mined: 421,492
Achievements: 133

Re: I just made my first mod

Post by Toguno » Wed Mar 18, 2015 6:32 pm

I do not really understand coding, but congrats.

User avatar
Fightface
Premium 4
Location: Location could not be loaded due to system error code Jav.lang.string.isempty()Z
Accountname: Fightr2021
Posts: 538
Joined: Oct 08, 2012
Last login: 1 year ago
Played: 1,526 hours
Blocks Mined: 226,099
Achievements: 123
Contact:

Re: I just made my first mod

Post by Fightface » Thu Mar 26, 2015 2:23 am

Where did you learn coding at? Online? An irl class?

USER_AVATAR
Kye
Premium 6
Location: Defiantly not behind you.
Accountname: Respawnage
Posts: 1149
Joined: Feb 26, 2014
Last login: 5 years ago
Played: 3,717 hours
Blocks Mined: 8,877,512
Achievements: 218

Re: I just made my first mod

Post by Kye » Thu Mar 26, 2015 4:36 am

Grates I have no clue what this even does but grates
Busy firing potatoes out of my butt.


In other news Derpy wins the Award for most Jailbait.

User avatar
RidleyWing
Location: New Jersey, USA
Posts: 59
Joined: Jun 09, 2013
Last login: 7 years ago
Played: 293 hours
Blocks Mined: 25,459
Achievements: 39

Re: I just made my first mod

Post by RidleyWing » Fri Mar 27, 2015 1:07 am

Try to make my first mod using a program. Annoying as hell
You try to kill me, I'll just come back 60 @$%*ing times

Certified Dovahkin

My name is Commander RidleyWing, and this is my favorite server in Minecraft.

User avatar
Xan
Premium 1
Accountname: subzeroshark
Posts: 39
Joined: Jun 17, 2013
Last login: 3 years ago
Played: 480 hours
Blocks Mined: 79,558
Achievements: 63
Contact:

Re: I just made my first mod

Post by Xan » Sat Mar 28, 2015 1:43 am

I tried taking Java classes to better understand it, but the classes ended up "refreshing" my coding knowledge.

In a sense, I taught myself.
Undertale Prediction: Undertale Is Not A Series That I Do Because Undertale Is Not Real ...

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests