Hey how would I add fuels from my mod to be able to burn in the furnace minecart? Without editing the base class files.
Rollback Post to RevisionRollBack
Check out my mods: Kinyoshi Mods (which includes Ancient Tree Root, Bone Ore, Chert Craft, Corn Nuts, Desert Cotton Plant, Desert Grund Plant, Desert Petrified Wood and misc tweaks).https://sites.google.com/site/kinyoshimods/
use this to replace the getUniqueEntity() in the modloader but put this:
private static int highestEntityId = 180;
public static int lastEntityId = 180;
public static int firstEntityId = -179;
private static int lowestEntityId = -179;
/**
* Makes the getUniqueEntityId() work in the mod instead of the
* modloader
* */
public static int getUniqueEntityId()
{
while(highestEntityId == firstEntityId)
{
return highestEntityId = lowestEntityId + highestEntityId;
}
while(highestEntityId == lastEntityId)
{
return highestEntityId = highestEntityId + lowestEntityId;
}
return highestEntityId++;
}
right below this
public class mod_modname extends BaseMod
{
then put this.getUniqueEntityId instead of ModLoader.etc.
PopGalop, sorry, but the mob that player makes with blocks does not work. I followed your code excactly. Any way you could fix that or tell me what I did incorrectly? Thatnks
PopGalop, sorry, but the mob that player makes with blocks does not work. I followed your code excactly. Any way you could fix that or tell me what I did incorrectly? Thatnks
Thanks you for your tutorials !
But when i want make Ore generation in the End, there isn't any obsidian pillar and no Enderdragon. But ores are generated.
Why ?
Here is my BiomGenEnd.java
package net.minecraft.src;
import java.util.Random;
public class BiomeGenEnd extends BiomeGenBase
{
public BiomeGenEnd(int par1)
{
super(par1);
this.spawnableMonsterList.clear();
this.spawnableCreatureList.clear();
this.spawnableWaterCreatureList.clear();
this.spawnableCaveCreatureList.clear();
this.spawnableMonsterList.add(new SpawnListEntry(EntityEnderman.class, 10, 4, 4));
this.spawnableMonsterList.add(new SpawnListEntry (EntityWitch.class, 10, 4, 4));
this.topBlock = (byte)Block.dirt.blockID;
this.fillerBlock = (byte)Block.dirt.blockID;
this.theBiomeDecorator = new BiomeEndDecorator(this);
}
public void decorate(World var1, Random var2, int var3, int var4)
{
int var5;
int var6;
int var7;
int var8;
int veinsize=8;
int rarity=55;
for (var5 = 0; var5 < rarity; ++var5)
{
var6 = var3 + var2.nextInt(16);
var7 = var2.nextInt(128);
var8 = var4 + var2.nextInt(16);
new WorldGenEndMinable(mod_dragonfire.OreNexus.blockID, veinsize).generate(var1, var2, var6, var7, var8);
new WorldGenEndMinable(mod_dragonfire.OreAmethyst.blockID, veinsize).generate(var1, var2, var6, var7, var8);
}
}
/**
* takes temperature, returns color
*/
public int getSkyColorByTemp(float par1)
{
return 0;
}
}
My english is so bad, sorry ! And i'm new on this forum !
right below this
then put this.getUniqueEntityId instead of ModLoader.etc.
I may be crazy, or maybe you're the crazy one, time will spill it soon enough
click us, or we die
+1