Everything posted by TLHPoE
-
onBlockAdded? (Not working)
Is there anyway to detect if a player is within a certain number of blocks?
-
onBlockAdded? (Not working)
Basically, I'm trying to make a block that spawns in one of my structures, and when it's generated, I want it to spawn an entity and replace itself with air. I'm not sure if I'm missing something, here is my code:
-
Getting the position of a block?
I'm trying to use the onPostBlockPlaced (which is I think called right after the block is placed) No results so far, is there something I'm doing wrong?
-
Getting the position of a block?
How do I get the position/coordinates/location of it? What I'm trying to do is when the block is placed, it immediately spawns an entity and replaces its self with air.
-
Weird Config Null Pointer Error
I'm trying to load my config, but it returns a null pointer error Error My configuration: http://pastebin.com/NJpVguZf
-
Block and Metadata?
world.setBlockAndMetadata(i + 0, j + 3, k + 3, Block.stoneSingleSlab.blockID, 13); I'm using a schematic to java converter, and I've run into an error. The setBlock (for not metadata blocks) method has 4 parameters, while the setBlock (for metadata blocks) method has 6 parameters. What are the 2 parameters for?
-
Over writing a recipe?
How would I add a recipe, that has the same recipe as diamond armor, but gives you wheat? It would be helpful if the method didn't edit any base files too :I
-
[1.6.2] Issue with biome
Is there anyway to replace the stone that is already in the biome?
-
[1.6.2] Issue with biome
Ok. I just set the top to the default grass and the filler to the default dirt. Is there a method to set the hue of the grass?
- [1.6.2] Issue with biome
-
[1.6.2] Issue with biome
They HAVE to be below 255? My block IDs are in the 3000s.
-
Editing a base block class?
I'm going to try to make the dragon egg unbreakable (by pistons, etc.) How do I add the method to the dragon egg class without editing the class?
-
[1.6.2] Issue with biome
Crash Report (Generated) Crash Report (Eclipse)
-
[1.6.2] Issue with biome
I'm trying to add my own biome, yet I keep crashing on world creation. TerraMagna: package terramagna; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.network.NetworkMod; @Mod(modid = "terramagna", name = "Terra Magna") @NetworkMod(clientSideRequired = true, serverSideRequired = false) public class TerraMagna { @Instance("terraramagna") public static TerraMagna instance; @SidedProxy(clientSide = "terramagna.ClientProxy", serverSide = "terramagna.ServerProxy") public static ServerProxy proxy; @EventHandler public void preInit(FMLPreInitializationEvent event) { System.out.println("***********************************************************************************************************************************"); System.out.println("Initializing TerraMagna"); System.out.println("***********************************************************************************************************************************"); } @EventHandler public void load(FMLInitializationEvent event) { ClientProxy.init(); } @EventHandler public void postInit(FMLPostInitializationEvent event) { System.out.println("***********************************************************************************************************************************"); System.out.println("Finished initializing TerraMagna"); System.out.println("***********************************************************************************************************************************"); } } ClientProxy: package terramagna; import terramagna.helpers.*; public class ClientProxy extends ServerProxy { @Override public void registerRenderers() {} public static void init() { ConfigurationHelper.init(); MiscHelper.init(); OverworldBlockHelper.init(); OverworldItemHelper.init(); MalumBlockHelper.init(); MalumItemHelper.init(); BiomeHelper.init(); } } BiomeGenHelper: package terramagna.helpers; import cpw.mods.fml.common.registry.GameRegistry; import terramagna.biomes.*; import net.minecraft.world.biome.BiomeGenBase; public class BiomeHelper { public static BiomeGenBase malumLands; public static void init() { malumLands = new BiomeGenMalumLands(20); GameRegistry.addBiome(malumLands); } } BiomeGenMalumLands package terramagna.biomes; import cpw.mods.fml.common.registry.GameRegistry; import net.minecraft.entity.monster.EntityGhast; import net.minecraft.world.biome.BiomeGenBase; import net.minecraft.world.biome.SpawnListEntry; import terramagna.helpers.MalumBlockHelper; public class BiomeGenMalumLands extends BiomeGenBase { public BiomeGenMalumLands(int id) { super(id); this.topBlock = (byte)MalumBlockHelper.MalumGrass.blockID; this.fillerBlock = (byte)MalumBlockHelper.MalumDirt.blockID; this.biomeName = "Malum Lands"; this.temperature = 2.0F; this.waterColorMultiplier = 0xE01B1B; this.setMinMaxHeight(50.0F, 200.0F); this.theBiomeDecorator.treesPerChunk = 0; this.theBiomeDecorator.flowersPerChunk = 0; this.theBiomeDecorator.grassPerChunk = 0; this.theBiomeDecorator.clayPerChunk = 0; this.theBiomeDecorator.reedsPerChunk = 0; this.spawnableCreatureList.clear(); this.spawnableCaveCreatureList.clear(); this.spawnableMonsterList.clear(); this.spawnableWaterCreatureList.clear(); this.spawnableMonsterList.add(new SpawnListEntry(EntityGhast.class, id, 1, 2)); } }
-
Rendering?
Yes, I did. http://pastebin.com/Y85as46Z
-
Rendering?
My entity extended EntityPig if it helps. :I http://pastebin.com/BKhKHXLn
-
Rendering?
Still looks like a normal pig :I http://pastebin.com/xdsCXSmq
-
Rendering?
Still no skin :I http://pastebin.com/JPYxki1B
-
Rendering?
I'm trying to add a texture to my custom pig. But it still has the default pig skin. http://pastebin.com/pZESXt5e
-
Guis and Slots?
int texture = mc.renderEngine.getTexture("/gui/trap.png"); The method getTexture(String) is undefined for the type TextureManager this.mc.renderEngine.bindTexture(texture); The method bindTexture(int) is undefined for the type TextureManager
-
Guis and Slots?
I'm looking through the ContainerTiny class, is TileEntity needed for my situation? I thought it was only used for block to GUI type things.
-
Guis and Slots?
What's the usage of a Container class? What I'm planning on doing is adding some extra slots to the inventory when the player presses a key and if the inventory is open.
- Guis and Slots?
-
Guis and Slots?
Does anyone know of a good tutorial on creating interfaces and displaying them?
- Detecting a Key Press?
IPS spam blocked by CleanTalk.