Jump to content

TLHPoE

Members
  • Posts

    638
  • Joined

  • Last visited

Everything posted by TLHPoE

  1. Is there anyway to detect if a player is within a certain number of blocks?
  2. 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:
  3. 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?
  4. 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.
  5. I'm trying to load my config, but it returns a null pointer error Error My configuration: http://pastebin.com/NJpVguZf
  6. 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?
  7. 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
  8. Is there anyway to replace the stone that is already in the biome?
  9. 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?
  10. Same crash :I
  11. They HAVE to be below 255? My block IDs are in the 3000s.
  12. 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?
  13. Crash Report (Generated) Crash Report (Eclipse)
  14. 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)); } }
  15. Yes, I did. http://pastebin.com/Y85as46Z
  16. My entity extended EntityPig if it helps. :I http://pastebin.com/BKhKHXLn
  17. Still looks like a normal pig :I http://pastebin.com/xdsCXSmq
  18. Still no skin :I http://pastebin.com/JPYxki1B
  19. I'm trying to add a texture to my custom pig. But it still has the default pig skin. http://pastebin.com/pZESXt5e
  20. 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
  21. 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.
  22. 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.
  23. Oh, thanks.
  24. Does anyone know of a good tutorial on creating interfaces and displaying them?
  25. Oh, ok.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.