Minecraft Blogs

[Modding Tutorial #2] Simple Block.

  • 3 diamonds
  • 596 views, 0 today
  • 8 comments
  • 0 favorites
  • 3
  • 0
  • 8
avatar Twinklez
Level 76 : Legendary Modder
320
Number 2 of this whole series. Please if you have any errors / problems just comment or PM me :)
YOU MUST READ THE FIRST TUTORIAL IF YOU DON'T KNOW HOW TO SET UP MCP with ECLIPSE!!!

So today we are going to make a new simple block with the statistics as like pretty much a normal block.

You must create two files. One being the main ModLoader class extender, and the Block file.
Open these spoilers to get the code. The " // " means a comment AKA it's just explaining. The code doesn't read the comments. So these are pretty safe to copy and paste.

BUT SINCE THIS IS A CUSTOM BLOCK USING THE BLOCK.CLASS YOU DO NOT NEED TO MAKE A NEW BLOCK!!!! :D

mod_YOURMOD [Change YOURMOD to any name
Tags

3 Update Logs

Update #3 : 12/07/2012 11:42:26 pmDec 7th, 2012

Changed methods for easier learning.
LOAD MORE LOGS

1
03/19/2013 10:06 pm
Level 29 : Expert Grump
Boose38
Confuzzling, I'm trying my best to try to understand a word of this, but when I do, thanks!
1
03/19/2013 10:11 pm
Level 29 : Expert Grump
Boose38
Okay, I get it PARTIALLY. How do you make a class file and how the heck do you open it?
1
12/04/2012 7:10 pm
Level 8 : Apprentice Network
awj001
Good job!
1
12/01/2012 2:40 pm
Level 46 : Master Blockhead
Danthec00lman
Hey, I know Javascript, but, what's the difference between Java and Javascript??? :)
1
12/01/2012 3:41 pm
Level 76 : Legendary Modder
Twinklez
Java = Programming for Games. etc.
Javascript = Programming for mostly websites.
1
12/02/2012 1:09 pm
Level 46 : Master Blockhead
Danthec00lman
Ok, but are the languages similar? Because I see some javascript stuff in the coding thing. :)
1
12/02/2012 1:19 pm
Level 76 : Legendary Modder
Twinklez
Javascript mostly has some statements like public, etc. etc.

BUT THEY ARE SUPER DIFFERENT.
1
12/02/2012 1:36 pm
Level 46 : Master Blockhead
Danthec00lman
Oh, Ok :D
Planet Minecraft Logo

Website

© 2010 - 2020
www.planetminecraft.com

Welcome