Everything posted by traxys
-
Conversion Between TileEntities
Thanks I just wanted to be sure
-
Conversion Between TileEntities
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) ?
-
Checking if a TileEnity is extending a base class of my mod
Nah spelling error ><
-
Checking if a TileEnity is extending a base class of my mod
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) ?
-
Checking if a TileEnity is extending a base class of my mod
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.
-
Editing Config files
Did not think too look a .get().Methods Thanks
-
Editing Config files
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
-
Crash "Missing Mod"
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)
-
Crash "Missing Mod"
-
"MissingModExeption"
My lovely server provider who gives outdated forge versions <3 Thanks
-
"MissingModExeption"
-
"MissingModExeption"
Here are a few lines of the FMLoader-server-0.log : So does anyone knows what mods are missing ?
-
"MissingModExeption"
- Mob drop
-
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
-
WorldGen requirements
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 ?
-
WorldGen requirements
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 ?
-
WorldGen requirements
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
-
WorldGen requirements
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 !
-
Texture to an Item
Nevermind , the problm was that I did not refresh the prjocet in Eclispe
-
Texture to an Item
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"
-
Texture to an Item
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 ?
-
Don't understand why my code does not work
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
-
Don't understand why my code does not work
Crash , and eclipse says hardWall can not be resolved as a variable
-
Don't understand why my code does not work
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 ....
IPS spam blocked by CleanTalk.