Oh.... I don't think so... Do I need to decompile it even if I don't change it?
The Recompile still worked, it's just was stating that it could not find the server sources just in case you had in fact programmed in the server and wanted to recompile it as well.
The Recompile still worked, it's just was stating that it could not find the server sources just in case you had in fact programmed in the server and wanted to recompile it as well.
Right... Wow, I feel dumb now. Thanks, it works now.
public void takenFromCrafting(EntityPlayer entityplayer, ItemStack itemstack, IInventory iinventory)
In takenFromCraftting is to win, when you create the item, but my item only drops from my mob. I want to win a achievement, when kill the mob, and catch the item.
Hello, I'm making an achievement for my mod, I want it to function so that when a player crafts the item Administrum, they get this achievement. Here is my code so far...
package net.minecraft.src;
public class mod_Achievement extends BaseMod {
static Achievement diamonds = AchievementList.diamonds;
public static final Achievement AdminAchieve = new Achievement(4560, "AdminAchieve", -1, 3, Item.diamond, diamonds).registerAchievement();
public void load() {
ModLoader.addAchievementDesc(AdminAchieve, "Administrum", "Craft Administrum.");
}
public void takenFromCrafting(EntityPlayer entityplayer, ItemStack itemstack, IInventory iinventory) {
if(itemstack.itemID == Block.itemAdministrum.blockID) {
entityplayer.addStat(AdminAchieve, 1);
}
}
public String getVersion() {
return "1.4.5";
}
}
I've been doing this in Eclipse, and it's throwing me 2 errors.
I was creating a new block, but when i run minecraft, make crash...
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; ModLoader has failed to initialize.
A full error report has been saved to C:\Users\paulo\Desktop\Tutoriais\Celitos\jars\.\crash-reports\crash-2012-12-13_11.24.59-client.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash
--- BEGIN ERROR REPORT 2f6490a0 --------
Full report at:
C:\Users\paulo\Desktop\Tutoriais\Celitos\jars\.\crash-reports\crash-2012-12-13_11.24.59-client.txt
Please show that file to Mojang, NOT just this screen!
java.lang.ArrayIndexOutOfBoundsException: 422
at net.minecraft.src.ModLoader.initStats(ModLoader.java:1010)
at net.minecraft.src.ModLoader.init(ModLoader.java:983)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:190)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:92)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:421)
at net.minecraft.client.Minecraft.run(Minecraft.java:741)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 1474f36 ----------
Can help me? ;<
package net.minecraft.src;
import java.util.Map;
import java.util.Random;
import net.minecraft.client.Minecraft;
public class mod_pig extends BaseMod
{
public static final Block Ore = new BlockCustomSal(422, 0).setBlockName("Ore").setHardness(3F).setResistance(4F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundGrassFootstep);
public void load()
{
Ore.blockIndexInTexture = ModLoader.addOverride("/gui/items.png", "/Celitos/Ore.png");
ModLoader.registerBlock(Ore);
ModLoader.addName(Ore, "Minério de Sal");
}
public String getVersion(){
return null;
}
}
I was creating a new block, but when i run minecraft, make crash...
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; ModLoader has failed to initialize.
A full error report has been saved to C:\Users\paulo\Desktop\Tutoriais\Celitos\jars\.\crash-reports\crash-2012-12-13_11.24.59-client.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash
--- BEGIN ERROR REPORT 2f6490a0 --------
Full report at:
C:\Users\paulo\Desktop\Tutoriais\Celitos\jars\.\crash-reports\crash-2012-12-13_11.24.59-client.txt
Please show that file to Mojang, NOT just this screen!
java.lang.ArrayIndexOutOfBoundsException: 422
at net.minecraft.src.ModLoader.initStats(ModLoader.java:1010)
at net.minecraft.src.ModLoader.init(ModLoader.java:983)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:190)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:92)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:421)
at net.minecraft.client.Minecraft.run(Minecraft.java:741)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 1474f36 ----------
Can help me? ;<
package net.minecraft.src;
import java.util.Map;
import java.util.Random;
import net.minecraft.client.Minecraft;
public class mod_pig extends BaseMod
{
public static final Block Ore = new BlockCustomSal(422, 0).setBlockName("Ore").setHardness(3F).setResistance(4F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundGrassFootstep);
public void load()
{
Ore.blockIndexInTexture = ModLoader.addOverride("/gui/items.png", "/Celitos/Ore.png");
ModLoader.registerBlock(Ore);
ModLoader.addName(Ore, "Minério de Sal");
}
public String getVersion(){
return null;
}
}
:<
Return the actual version, not null. It's not that important so if you don't want to put a version for your mod just return "for 1.4.5" or something like that.
ModLoader.addRecipe(new ItemStack(blockYouWantToRecieve, quantity), new Object[]{" X"," X ","Y ", Character.valueOf('X'), ClassName.Aço, ('Y'), ClassName.Cabo});
//Change ClassName to the class your block is in, and change blockYouWantToRecieve and quantity so it works for you.
ModLoader.addRecipe(new ItemStack(blockYouWantToRecieve, quantity), new Object[]{" X"," X ","Y ", Character.valueOf('X'), ClassName.Aço, ('Y'), ClassName.Cabo});
//Change ClassName to the class your block is in, and change blockYouWantToRecieve and quantity so it works for you.
That's all fine, but the 'ç' will never pass through the compiler because of the unicode requirement. That's also why the language translations are kept in external files. The accents aren't unicode and couldn't go through a compiler.
Rollback Post to RevisionRollBack
When life gives you a potato, wonder why the heck life just gave you a potato. Why not something else? Like money? Or a combustable lemon? No, you get a potato. Nothing else.
Is it possible, that you could make one for adding multiple Block*** to Block.class
Like you did for mod_*** ?
Thanks
Are you talking about editing Block.java to add blocks? You don't need to do that, you add them in your mod_ file.
If you're talking about adding multiple block declarations to a mod_ file, then all you do is make more and more declarations.
Rollback Post to RevisionRollBack
When life gives you a potato, wonder why the heck life just gave you a potato. Why not something else? Like money? Or a combustable lemon? No, you get a potato. Nothing else.
I have a question. I don't know if this question is answered on the previous 255 pages. I want to make an Ingot. How should i texture it and code it in the my mod_ file?
This is my code:
mod_Space
package net.minecraft.src;
import java.util.Random;
public class mod_Space extends BaseMod{
public static final Block SpaceDirt = new BlockSpaceDirt(160, 0).setBlockName("SpaceDirt").setHardness(1F).setResistance(4F).setLightValue(1F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundGrassFootstep);
public static final Block SpaceStone = new BlockSpaceStone(161, 0).setBlockName("SpaceStone").setHardness(3F).setResistance(20F).setLightValue(1F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundStoneFootstep);
public static final Block SpaceOre = new BlockSpaceOre(162, 0).setBlockName("SpaceDirt").setHardness(1F).setResistance(4F).setLightValue(1F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundStoneFootstep);
public static final Item SpaceIngot = new ItemSpaceIngot(5000).setItemName("SpaceIngot").setCreativeTab(CreativeTabs.tabMaterials);
public void load()
{
SpaceDirt.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/SpaceDirt.png");
ModLoader.registerBlock(SpaceDirt);
ModLoader.addName(SpaceDirt, "Space Dirt");
SpaceStone.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/SpaceStone.png");
ModLoader.registerBlock(SpaceStone);
ModLoader.addName(SpaceStone, "Space Stone");
SpaceOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/SpaceOre.png");
ModLoader.registerBlock(SpaceOre);
ModLoader.addName(SpaceOre, "Space Ore");
ModLoader.addSmelting(SpaceOre.blockID, new ItemStack(SpaceIngot, 1), 1.0F);
SpaceIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/SpaceIngot.png");
ModLoader.addName(SpaceIngot, "Space Ingot");
}
public void generateSurface(World world, Random random, int chunkX, int chunkZ)
{
for(int i = 0; i < 7; i++)
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(128);
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(SpaceOre.blockID, 25)).generate(world, random, randPosX, randPosY, randPosZ);
}
}
public String getVersion()
{
return "1.4.5";
}
}
BlockSpaceDirt
package net.minecraft.src;
import java.util.Random;
public class mod_Space extends BaseMod{
public static final Block SpaceDirt = new BlockSpaceDirt(160, 0).setBlockName("SpaceDirt").setHardness(1F).setResistance(4F).setLightValue(1F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundGrassFootstep);
public static final Block SpaceStone = new BlockSpaceStone(161, 0).setBlockName("SpaceStone").setHardness(3F).setResistance(20F).setLightValue(1F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundStoneFootstep);
public static final Block SpaceOre = new BlockSpaceOre(162, 0).setBlockName("SpaceDirt").setHardness(1F).setResistance(4F).setLightValue(1F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundStoneFootstep);
public static final Item SpaceIngot = new ItemSpaceIngot(5000).setItemName("SpaceIngot").setCreativeTab(CreativeTabs.tabMaterials);
public void load()
{
SpaceDirt.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/SpaceDirt.png");
ModLoader.registerBlock(SpaceDirt);
ModLoader.addName(SpaceDirt, "Space Dirt");
SpaceStone.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/SpaceStone.png");
ModLoader.registerBlock(SpaceStone);
ModLoader.addName(SpaceStone, "Space Stone");
SpaceOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/SpaceOre.png");
ModLoader.registerBlock(SpaceOre);
ModLoader.addName(SpaceOre, "Space Ore");
ModLoader.addSmelting(SpaceOre.blockID, new ItemStack(SpaceIngot, 1), 1.0F);
SpaceIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/SpaceIngot.png");
ModLoader.addName(SpaceIngot, "Space Ingot");
}
public void generateSurface(World world, Random random, int chunkX, int chunkZ)
{
for(int i = 0; i < 7; i++)
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(128);
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(SpaceOre.blockID, 25)).generate(world, random, randPosX, randPosY, randPosZ);
}
}
public String getVersion()
{
return "1.4.5";
}
}
BlockSpaceStone:
package net.minecraft.src;
import java.util.Random;
public class BlockSpaceStone extends Block{
public BlockSpaceStone(int i, int j)
{
super(i, j, Material.rock);
}
public int idDropped(int i, Random random, int j)
{
return mod_Space.SpaceStone.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}
BlockSpaceOre:
package net.minecraft.src;
import java.util.Random;
public class BlockSpaceOre extends Block{
public BlockSpaceOre(int i, int j)
{
super(i, j, Material.rock);
}
public int idDropped(int i, Random random, int j)
{
return mod_Space.SpaceOre.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}
ItemSpaceIngot:
package net.minecraft.src;
public class ItemSpaceIngot extends Item
{
public ItemSpaceIngot(int i)
{
super(i);
maxStackSize = 64;
}
}
But in the game, the texture for the ingot is this:
I have a question. I don't know if this question is answered on the previous 255 pages. I want to make an Ingot. How should i texture it and code it in the my mod_ file?
-snipsnop-
Your problem is you're using MS paint which does not support transparency. Use something like PAINT.NET that does, or if you are then turn transparency on.
My sword can't be enchanted with a enchantment table... :<
You'll have to use Forge. With ModLoader implementation, enchantments only work if the tool is used in EnumToolMaterial.
Rollback Post to RevisionRollBack
When life gives you a potato, wonder why the heck life just gave you a potato. Why not something else? Like money? Or a combustable lemon? No, you get a potato. Nothing else.
To post a comment, please login or register a new account.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumThe Recompile still worked, it's just was stating that it could not find the server sources just in case you had in fact programmed in the server and wanted to recompile it as well.
Right... Wow, I feel dumb now. Thanks, it works now.
Bleach Mod
Spaces has not updated his gun mod and I am looking for a new one to work on.
could you please make one or help me find one.
Thanks,
-Vk
The code should still work for 1.4.5, does for me.
oh sorry thought it was updated xD
The code:
public void takenFromCrafting(EntityPlayer entityplayer, ItemStack itemstack, IInventory iinventory) { if(itemstack.itemID == faca.shiftedIndex) { entityplayer.addStat(faquinha, 1); } }I know that have this code:
In takenFromCraftting is to win, when you create the item, but my item only drops from my mob. I want to win a achievement, when kill the mob, and catch the item.
Can you help-me?
public class mod_Achievement extends BaseMod {
static Achievement diamonds = AchievementList.diamonds;
public static final Achievement AdminAchieve = new Achievement(4560, "AdminAchieve", -1, 3, Item.diamond, diamonds).registerAchievement();
public void load() {
ModLoader.addAchievementDesc(AdminAchieve, "Administrum", "Craft Administrum.");
}
public void takenFromCrafting(EntityPlayer entityplayer, ItemStack itemstack, IInventory iinventory) {
if(itemstack.itemID == Block.itemAdministrum.blockID) {
entityplayer.addStat(AdminAchieve, 1);
}
}
public String getVersion() {
return "1.4.5";
}
}
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; ModLoader has failed to initialize.
A full error report has been saved to C:\Users\paulo\Desktop\Tutoriais\Celitos\jars\.\crash-reports\crash-2012-12-13_11.24.59-client.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash
--- BEGIN ERROR REPORT 2f6490a0 --------
Full report at:
C:\Users\paulo\Desktop\Tutoriais\Celitos\jars\.\crash-reports\crash-2012-12-13_11.24.59-client.txt
Please show that file to Mojang, NOT just this screen!
Generated 13/12/12 11:24
-- System Details --
Details:
Minecraft Version: 1.4.5
Operating System: Windows 7 (x86) version 6.1
Java Version: 1.7.0_09, Oracle Corporation
Java VM Version: Java HotSpot™ Client VM (mixed mode), Oracle Corporation
Memory: 997268280 bytes (951 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: Start[net.minecraft.src.IPlayerUsage, MinecraftFakeLauncher, ThreadShutdown, ...]
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
ModLoader: Mods loaded: 2
ModLoader 1.4.5
mod_pig null
java.lang.ArrayIndexOutOfBoundsException: 422
at net.minecraft.src.ModLoader.initStats(ModLoader.java:1010)
at net.minecraft.src.ModLoader.init(ModLoader.java:983)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:190)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:92)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:421)
at net.minecraft.client.Minecraft.run(Minecraft.java:741)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 1474f36 ----------
Can help me? ;<
package net.minecraft.src; import java.util.Map; import java.util.Random; import net.minecraft.client.Minecraft; public class mod_pig extends BaseMod { public static final Block Ore = new BlockCustomSal(422, 0).setBlockName("Ore").setHardness(3F).setResistance(4F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundGrassFootstep); public void load() { Ore.blockIndexInTexture = ModLoader.addOverride("/gui/items.png", "/Celitos/Ore.png"); ModLoader.registerBlock(Ore); ModLoader.addName(Ore, "Minério de Sal"); } public String getVersion(){ return null; } }Return the actual version, not null. It's not that important so if you don't want to put a version for your mod just return "for 1.4.5" or something like that.
x = Aço
y = Cabo
z = Nothing
z z x
z x z
y z z
Someone can help-me?
try something like this:
ModLoader.addRecipe(new ItemStack(blockYouWantToRecieve, quantity), new Object[]{" X"," X ","Y ", Character.valueOf('X'), ClassName.Aço, ('Y'), ClassName.Cabo}); //Change ClassName to the class your block is in, and change blockYouWantToRecieve and quantity so it works for you.-
View User Profile
-
View Posts
-
Send Message
Retired StaffThat's all fine, but the 'ç' will never pass through the compiler because of the unicode requirement. That's also why the language translations are kept in external files. The accents aren't unicode and couldn't go through a compiler.
And my food, I wanted the wolves can to eat it.
Can anyone help me?
-
View User Profile
-
View Posts
-
Send Message
Retired StaffI can.
You want your sword enchantable or enchanted when you craft it?
If you want it enchantable with ModLoader, you'll have to use Forge.
Are you talking about editing Block.java to add blocks? You don't need to do that, you add them in your mod_ file.
If you're talking about adding multiple block declarations to a mod_ file, then all you do is make more and more declarations.
This is my code:
mod_Space
package net.minecraft.src; import java.util.Random; public class mod_Space extends BaseMod{ public static final Block SpaceDirt = new BlockSpaceDirt(160, 0).setBlockName("SpaceDirt").setHardness(1F).setResistance(4F).setLightValue(1F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundGrassFootstep); public static final Block SpaceStone = new BlockSpaceStone(161, 0).setBlockName("SpaceStone").setHardness(3F).setResistance(20F).setLightValue(1F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundStoneFootstep); public static final Block SpaceOre = new BlockSpaceOre(162, 0).setBlockName("SpaceDirt").setHardness(1F).setResistance(4F).setLightValue(1F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundStoneFootstep); public static final Item SpaceIngot = new ItemSpaceIngot(5000).setItemName("SpaceIngot").setCreativeTab(CreativeTabs.tabMaterials); public void load() { SpaceDirt.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/SpaceDirt.png"); ModLoader.registerBlock(SpaceDirt); ModLoader.addName(SpaceDirt, "Space Dirt"); SpaceStone.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/SpaceStone.png"); ModLoader.registerBlock(SpaceStone); ModLoader.addName(SpaceStone, "Space Stone"); SpaceOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/SpaceOre.png"); ModLoader.registerBlock(SpaceOre); ModLoader.addName(SpaceOre, "Space Ore"); ModLoader.addSmelting(SpaceOre.blockID, new ItemStack(SpaceIngot, 1), 1.0F); SpaceIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/SpaceIngot.png"); ModLoader.addName(SpaceIngot, "Space Ingot"); } public void generateSurface(World world, Random random, int chunkX, int chunkZ) { for(int i = 0; i < 7; i++) { int randPosX = chunkX + random.nextInt(16); int randPosY = random.nextInt(128); int randPosZ = chunkZ + random.nextInt(16); (new WorldGenMinable(SpaceOre.blockID, 25)).generate(world, random, randPosX, randPosY, randPosZ); } } public String getVersion() { return "1.4.5"; } }BlockSpaceDirt
package net.minecraft.src; import java.util.Random; public class mod_Space extends BaseMod{ public static final Block SpaceDirt = new BlockSpaceDirt(160, 0).setBlockName("SpaceDirt").setHardness(1F).setResistance(4F).setLightValue(1F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundGrassFootstep); public static final Block SpaceStone = new BlockSpaceStone(161, 0).setBlockName("SpaceStone").setHardness(3F).setResistance(20F).setLightValue(1F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundStoneFootstep); public static final Block SpaceOre = new BlockSpaceOre(162, 0).setBlockName("SpaceDirt").setHardness(1F).setResistance(4F).setLightValue(1F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundStoneFootstep); public static final Item SpaceIngot = new ItemSpaceIngot(5000).setItemName("SpaceIngot").setCreativeTab(CreativeTabs.tabMaterials); public void load() { SpaceDirt.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/SpaceDirt.png"); ModLoader.registerBlock(SpaceDirt); ModLoader.addName(SpaceDirt, "Space Dirt"); SpaceStone.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/SpaceStone.png"); ModLoader.registerBlock(SpaceStone); ModLoader.addName(SpaceStone, "Space Stone"); SpaceOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/SpaceOre.png"); ModLoader.registerBlock(SpaceOre); ModLoader.addName(SpaceOre, "Space Ore"); ModLoader.addSmelting(SpaceOre.blockID, new ItemStack(SpaceIngot, 1), 1.0F); SpaceIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/SpaceIngot.png"); ModLoader.addName(SpaceIngot, "Space Ingot"); } public void generateSurface(World world, Random random, int chunkX, int chunkZ) { for(int i = 0; i < 7; i++) { int randPosX = chunkX + random.nextInt(16); int randPosY = random.nextInt(128); int randPosZ = chunkZ + random.nextInt(16); (new WorldGenMinable(SpaceOre.blockID, 25)).generate(world, random, randPosX, randPosY, randPosZ); } } public String getVersion() { return "1.4.5"; } }BlockSpaceStone:
package net.minecraft.src; import java.util.Random; public class BlockSpaceStone extends Block{ public BlockSpaceStone(int i, int j) { super(i, j, Material.rock); } public int idDropped(int i, Random random, int j) { return mod_Space.SpaceStone.blockID; } public int quantityDropped(Random random) { return 1; } }BlockSpaceOre:
package net.minecraft.src; import java.util.Random; public class BlockSpaceOre extends Block{ public BlockSpaceOre(int i, int j) { super(i, j, Material.rock); } public int idDropped(int i, Random random, int j) { return mod_Space.SpaceOre.blockID; } public int quantityDropped(Random random) { return 1; } }ItemSpaceIngot:
package net.minecraft.src; public class ItemSpaceIngot extends Item { public ItemSpaceIngot(int i) { super(i); maxStackSize = 64; } }But in the game, the texture for the ingot is this:
-
View User Profile
-
View Posts
-
Send Message
Retired StaffYour problem is you're using MS paint which does not support transparency. Use something like PAINT.NET that does, or if you are then turn transparency on.
You'll have to use Forge. With ModLoader implementation, enchantments only work if the tool is used in EnumToolMaterial.