Random Video

Here's a video I quickly made and uploaded to Youtube.  Not related to my mod, but you might enjoy.

Idea Stolen...

Looks like Notch was working on a new mob too...  Turns out it behaves exactly like my wolf idea.... Damn him and his awesome ideas!  You can read more about it at The World of Notch.

Idea: Leader of the Pack

Just an idea for a new Entity: wolves.

How wolves will work, while normally neutral, they will attack if provoked.  However, they can be befriended by presenting them with a bone.  Once befriended, they will follow you as long as you stay within range of them -- e.i. you don't run too fast or go some place that they can't.  If an enemy comes within range, they will help you attack them.

Fillin' Those Chests With Goodies

It's like Christmas Time and I'm f@%$ing Santa Clause.  I'm bringing you a code snippet to generate chests with items in them. That's right: it's time to open your presents.


//  Create a chest at (i,j,k).
world.setBlockWithNotify(i,j,k,Block.crate.blockID);
// Get the crate entity
TileEntityChest tileentitychest = (TileEntityChest)world.getBlockTileEntity(i,j,k);
// Generate an item stack of ingot iron and stack up to 4            
ItemStack itemstack = new ItemStack(Item.ingotIron, random.nextInt(4) + 1); 
//  Add that stack to the chest
tileentitychest.setInventorySlotContents(random.nextInt(tileentitychest.getSizeInventory()), itemstack);

What are the results?

Progress?

Here we see the new Bush generator to give more variety in landscapes.
I plan on making them grow slowly over time.

Here we see a new way of getting health: apples.  Although already implemented in the game,
apples were extremely rare.  Now, they are randomly dropped from trees and give one (1) heart of
health.

Here we see a terrain generated house.  It still needs a better roof, better flat terrain detection,
and a door.... but, it's prebuilt protection!

Here we see the inside of the house, all that's missing is a bed.

Minecraft Modding: Getting Set Up

Here's how you can get started modding Minecraft yourself!

Step 1:

Get Minecraft.  Yeah, I know, this is kind of self-explanatory, but, you'll need the minecraft.jar file in some of the next steps.

Step 2:

Get the MCP (the Minecraft Coder Pack).  Current releases are at http://mcp.ocean-labs.de/index.php/MCP_Releases .

Step 3:

Get the Java SDK at http://www.oracle.com/technetwork/java/javase/downloads/index.html .  You'll probably want Java SE.

Step 4:

Set up a system path.  For windows, go to Control Panel->System->Advanced System Settings->Environment Variables.  In User Variables, add the following path:


VariableValue
PATH%path%;C:\Program Files\Java\jdk1.6.0_21\bin

Please note that your path to the jdk may be different depending on your version of windows.

Step 5:

Extract the zip containing the MCP.

Step 6:

Get your minecraft.jar. To find it easily, open Run and type in %appdata%.  It should open up a folder containing lots of folders, one of them being ".minecraft".  Open that up and to go the bin folder.  Within (if you've played Minecraft before) should be minecraft.jar.

Step 7:

Copy that jar into the jars folder of your MCP folder.  As a side note, you can also copy the minecraft_server.jar if you have it.  It's available somewhere on the minecraft website.

Step 8:

Run decompile.bat in the MCP folder.

Step 9:

Have fun modifying the files in sources/minecraft folder!

Minecraft RPG

I've just begun modding Minecraft, and I've decided to make an RPG themed mod.  Currently, my only plans are for singleplayer, but I'm thinking people would enjoy this a lot more if they could play with friends online.

Anyway, here's the premise:  my plan is to turn Minecraft into an RPG themed game by adding a main quest, NPCs, more enemies, removing the ability to mine all blocks, and adding tons of recipes for guns and items.

So, what's this blog about?  Well, it's mainly to mark my progress, post pictures and videos, gather ideas, and to help to stay on track.

Here's my current to-do list:

  • Create a new biome for villages.
  • Randomly generate cottages.
  • Create a house at the spawn.
    • Fill each house with a furnace and a workbench.
  • Disallow blocks from being mineable.
  • Develop some sort of "end goal" for the RPG.
  • Create NPCs who will attack enemies and attack you if provoked.
    • Allow NPCs to be talked to.
  • And so on

I am open to ideas, to feel free to post some suggestions.