Question,
I have learnt to make a block, now the thing is that I want the block to take up to two spaces or maybe like a stone slab, how do I do that? Will this come in the advanced(hard) tuts or will it not be included? :huh.gif:
Thanks in adv.
Ghost129er
Awesome! Working on my first mod as we speak! rated 4/5, would re-rate 5/5 if you added more explanation to what each code strand meant (even though lots of it is obvious.)
Question,
I have learnt to make a block, now the thing is that I want the block to take up to two spaces or maybe like a stone slab, how do I do that? Will this come in the advanced(hard) tuts or will it not be included? :huh.gif:
Thanks in adv.
Ghost129er
That will be a tutorial but in the advanced(Medium)
I Followed your new Tools tutorial and I get this error when i start client:
Mods loaded: 1
ModLoader Beta 1.8.1
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected].
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT 5424363c --------
Generated 10/31/11 8:59 PM
Minecraft: Minecraft Beta 1.8.1
OS: Windows 7 (x86) version 6.1
Java: 1.6.0_26, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 3200 Graphics version 2.1.8781, ATI Technologies Inc.
java.lang.NullPointerException
at net.minecraft.src.mod_Obsiditems.<init>(mod_Obsiditems.java:10)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:224)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1027)
at net.minecraft.src.ModLoader.init(ModLoader.java:692)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:121)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:72)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:168)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:140)
at net.minecraft.client.Minecraft.run(Minecraft.java:438)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT e2677419 ----------
Here is my code:
package net.minecraft.src;
import java.util.Random;
public class mod_Obsiditems extends BaseMod
{
public mod_Obsiditems()
{
ObsidiPickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/obsidianusage/obsidipickaxe.png");
ObsidiShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/obsidianusage/obsidishovel.png");
ObsidiAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/obsidianusage/obsidiaxe.png");
ObsidiHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/obsidianusage/obsidihoe.png");
ObsidiSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/obsidianusage/obsidisword.png");
ModLoader.AddName(ObsidiPickaxe, "Obsidi Pickaxe");
ModLoader.AddName(ObsidiShovel, "Obsidi Shovel");
ModLoader.AddName(ObsidiAxe, "Obsidi Axe");
ModLoader.AddName(ObsidiHoe, "Obsidi Hoe");
ModLoader.AddName(ObsidiSword, "Obsidi Sword");
ModLoader.AddRecipe(new ItemStack(ObsidiPickaxe, 1), new Object[] {"sss", " | ", " | ", Character.valueOf('s'), obsidingot, Character.valueOf('|'), obsidirod});
ModLoader.AddRecipe(new ItemStack(ObsidiShovel, 1), new Object[] {" s ", " | ", " | ", Character.valueOf('s'), obsidingot, Character.valueOf('|'), obsidirod});
ModLoader.AddRecipe(new ItemStack(ObsidiAxe, 1), new Object[] {"ss ", "s| ", " | ", Character.valueOf('s'), obsidingot, Character.valueOf('|'), obsidirod});
ModLoader.AddRecipe(new ItemStack(ObsidiHoe, 1), new Object[] {"ss ", " | ", " | ", Character.valueOf('s'), obsidingot, Character.valueOf('|'), obsidirod});
ModLoader.AddRecipe(new ItemStack(ObsidiSword, 1), new Object[] {" s ", " s ", " | ", Character.valueOf('s'), obsidingot, Character.valueOf('|'), obsidirod});
ModLoader.AddName(obsidingot, "Obsidingot");
obsidingot.iconIndex = ModLoader.addOverride("/gui/items.png", "/obsidianusage/obsidingot.png");
obsidirod.iconIndex = ModLoader.addOverride("/gui/items.png", "/obsidianusage/obsidirod.png");
ModLoader.AddSmelting(Block.obsidian.blockID, new ItemStack(obsidingot));
ModLoader.AddName(obsidirod, "Obsidirod");
ModLoader.AddRecipe(new ItemStack(obsidirod, 1), new Object [] {"X", "X",Character.valueOf('X'), obsidingot});}
static
{
new ItemPickaxe(1000, EnumToolMaterial.OBSIDI).setItemName("1");
new ItemSpade(1001, EnumToolMaterial.OBSIDI).setItemName("2");
new ItemAxe(1002, EnumToolMaterial.OBSIDI).setItemName("3");
new ItemHoe(1003, EnumToolMaterial.OBSIDI).setItemName("4");
new ItemSword(1004, EnumToolMaterial.OBSIDI).setItemName("5");
}
public String Version()
{
return "1.8.1";
}
public static Item obsidingot = (new ItemObsidingot(ModLoader.getUniqueEntityId())).setItemName("Obsidingot");
public static Item obsidirod = (new ItemObsidirod(ModLoader.getUniqueEntityId())).setItemName("Obsidirod");
public static Item ObsidiPickaxe;
public static Item ObsidiShovel;
public static Item ObsidiAxe;
public static Item ObsidiHoe;
public static Item ObsidiSword;
}
I have learnt to make a block, now the thing is that I want the block to take up to two spaces or maybe like a stone slab, how do I do that? Will this come in the advanced(hard) tuts or will it not be included? :huh.gif:
Thanks in adv.
Ghost129er
That will be a tutorial but in the advanced(Medium)
ur tutorial is growing much more higher
A glass?
although it is easy but some other tutorial doesnt hv it
Please do not comment if you have nothing to say.
Stop being immature and rude.
I'll add it soon. Sense it is only like two functions that requires to make glass work
Here is my code:
it can hlp u see the error and fix for u
I didn't see the error
there is many,example like Strength tutorial
The next tutorial I am going to be adding is Biomes and Npc's spawning in the new Biomes
Ghost
How do you mean change