Jump to content

traxys

Members
  • Posts

    33
  • Joined

  • Last visited

Everything posted by traxys

  1. Thanks I just wanted to be sure
  2. Hello, I have a version of TileEnity for my mod , lets say MyTileEntity , then I I use the world.getTileEnity() method , making sure that the TileEnity is a MyTileEntity ; the method still returns a TIleEntity , but can I do this : public MyTileEntity = (MyTileEnity) world.getTileEntity(x,y,z) ?
  3. I had thank a bit of instanceof but was not quite sure it was the way to go then forgot about it.... BUT I have a small (big) problem I think is due to my java setup : instanceof is not recognized (Unexpected token) , and I tried to find a answer and google , I found none , so anyone has got a clue , or should I go and ask on a java/programming thing (like stackoverflow) ?
  4. Hello, I have a base class for TileEnties , and I would like to know if there is a simple and quick way to check if a TileEntity at the given x y z coordinates in a world extends that base class (else I thik I will make a list of all the Blocks class of the TileEnities which extends my base class and check if this is similar to the tileEnt.blockType). If anyone has an idea , or thinks the one I have is the way to go , please answer me, Thank you.
  5. Did not think too look a .get().Methods Thanks
  6. Hello, I have a configuration file from wich I can read my entries , and set new ones , but how can I modifiy entires , because I only found the config.get[params] to edit , but it just creates a new one , or changes the default state , so again my question is how can you edit a property in configs from your mod ? THanks to anyone having an answer to this simple question
  7. Yes but there is the jar file present , I saw it so I checked , and in the start I tough have read that It could not me opened , so is I assume it's a bug with the jarfile , going to check that on the MCF statues thread EDIT: Found another download of asielib but where it's strange is that the first verion works for Singleplayer but not for SMP (but nevermind reporting it the version used in the modpack was outdated)
  8. My lovely server provider who gives outdated forge versions <3 Thanks
  9. Here are a few lines of the FMLoader-server-0.log : So does anyone knows what mods are missing ?
  10. traxys

    Mob drop

    Thanks to evryone !
  11. traxys

    Mob drop

    I want to add mob drops (but an item from my mod) , but not for mobs that I made , I want to add them for vanilla mobs but I can't figure out how to do it, So if someone knows how to do or has a tip , could he help me please ? thanks yo anyone doing it
  12. public class InfernalBlockGenerator implements IWorldGenerator{ @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { BiomeGenBase b = world.getBiomeGenForCoords(chunkX, chunkZ); int X = chunkX*16 + random.nextInt(16); int Y = random.nextInt(31); int Z = chunkZ*16 + random.nextInt(16); if(b.biomeName.equals("Hell") && world.blockExists(X+1, Y, Z+1) && world.blockExists(X, Y, Z-1) && world.blockExists(X, Y-1, Z) && world.blockExists(X, Y+1, Z) && world.blockExists(X-1, Y, Z) && world.blockExists(X+1, Y, Z)){ world.setBlock(X, Y, Z, IdList.INFERNAL_BLOCK_ID); } } } I did this code , but I don't think I can check it , because of the fact that the block is surounded by blocks , so does someone know if it works ?
  13. I already did that But the problem I have Is that it doesn't seem to exist a world.getBlock propertie , but there is a blockExist one , but do you know if air is considered as a block , because it is registered in the block class ?
  14. How can I degine x, y and z ? Because the worldGen method takes those coordonates parameters : chunkX , chunkZ and chunkY That I define in my setBlock as "chunkX*16 + random.nextInt(16), 50, chunkZ*16 + random.nextInt(16)" but because there is a random , if I take it a second time , is taht random changed , or because it is the same exuction of the function the random has not changed ? But thak you Cause I think I can manage something still
  15. I want to add a particular WorldGen , a block in the nether surronded by blocks or lava , no air block arround. So for generating in the nether I use the code found in the wiki : BiomeGenBase b = world.getBiomeGenForCoords(chunkX, chunkZ); if(b.biomeName.equals("Hell")){ //Generate the block } But I don't know how to test what blocks are around , so I am asking if someone would help me in giving a method , a piece of code , or anything that could help me figuring it out. Thanks to anyone looking tis post , and even a greater Thanks to anyone helping me !
  16. Nevermind , the problm was that I did not refresh the prjocet in Eclispe
  17. Eclipse says taht the texture is missing , but there is a file in the folder And exactly : "Using missing texture, unable to load: infbow:textures/items/fletching.png"
  18. I am tying to give a texture to an item , but it is not working . I gave , with nearly the same code a texture to a block , it worked . So here are my code : for the block For the Item : The folder path are src/minecraft/assets/infbow/textures/[items or blocks] So Is there another function for items , or is it setTextureName() ? If it is , how can I make it work ?
  19. I resolved my problem , I did lot's of changes in my code , and splited many things , but i think my problem was taht I did not call properly the class
  20. Crash , and eclipse says hardWall can not be resolved as a variable
  21. I did a piece of code yesterday that worked fine , but I open up Eclipse again and it does not seem to work , so could someone hep me with this ? Here are my codes : Main Mod Class : InfinityBow.java HardWall.java GenBlock.java(just a class to be called for making all blocks I want) Please can someone can help me I am just starting at moding , so I don't know much ....
×
×
  • Create New...

Important Information

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