-
Posts
624 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Busti
-
Hello, is there a method to create a constantly updating class in Minecraft independent of blocks or entities? Busti
-
Yes you can simply do the same thing with items. You also can make more sub items than 16 just keep in mind that all the metadata variables are called differently in the Item Class. Use demage instead. Have a look at the dye item for an example.
-
Minecraft.getMinecraft().thePlayer.addChatMessage("Message");
-
Im already don with the fmp implementation for my pipes and I am going to create a tutorial when Im done. But it might take a week or so. ^^
-
Hello, How can I make multiple Bounding boxes in one block and how can I: 1. Detect if one of the boxes is kicked? 2. Highlight them all at once when I mouse over one of them? 3. Remove the bounding box lines? Edit: 4. Change them with the Tileentity? Thanks ^^ Busti
-
WOW I just updated Eclipse to kepler and it is working now
-
Yes I added it into thr buildpath. Class extensions are working fine then but interfaces wont
-
Hello, I recently installed Forge Multipart which should be installed as a library into the IDE. When I drop it into the mcp/lib/ folder and import it as a Library the mod is working as it should but when I try to extend one of its classes Eclipse won't recognize it as an existing Class. Did I do something wrong or is there another Library folder I missed? Thanks Busti
-
Just spawn them via your TE and pass any variables to the Entities constructor. Create these variables in the Entity and set them in the constructor by the given ones. And save them as a tag YourEntity entity = new YourEntity(posX, posY, posZ, various variables); // Various variables you want to have in the Entity and the coordinates of course... this.worldObj.spawnEntityInWorld(entity); //That spawns the Entity EDIT: just pass a boolean to make them invincible or not... They should automatically be invincible unless you are using the health system.
-
OK! I just tested it without the @SideOnly... and it seems like its only updating the array on the server now!? EDIT1:But I dont want to send an extra Package to the server every time something changes around the block...
-
Hmmm but when I set it only client sided It shouldn't do that ...
-
[1.6.2][SOLVED] Help with removing metadata items
Busti replied to ThePocketSoul's topic in Modder Support
You need to test for the metadata because the item never changes with the metadata. -
That would take time and why does the server need to know how to render the TE?
-
[Unsolved] Error "Registering texture" Crash report
Busti replied to SackCastellon's topic in Modder Support
I guss your textureNames array is empty on the Given position. -
Its only client sided since I'm just using it for rendering. @SideOnly(Side.CLIENT) public boolean connect[] = {false, false, false, false, false, false}; @SideOnly(Side.CLIENT) public void updateSides() { for (int i = 0; i < 6; i++) { this.connect[i] = ApiXPPipe.checkForXPContainer(this.xCoord+Facing.offsetsXForSide[i], this.yCoord+Facing.offsetsYForSide[i], this.zCoord+Facing.offsetsZForSide[i], this.worldObj); } } updeteSides is called when the blocks neighbour Blocks are changed.
-
Hello, I've been trying to set up an Array in a TileEntity public boolean connect[] = {false, false, false, false, false, false}; but every time I set a new variable or every tick it magically resets itself. Is this just me derping with Java or does minecraft not like me? Busti
-
make a class file and make it compile. (fix all the errors and stuff) Then use this to render the model in your Renderer: private ModelClassName modelVarName; private ResourceLocation textureXPPipe; public RenderXPPipe() { this.textureXPPipe = new ResourceLocation("modname:textures/models/Texturename.png"); this.modelvarName = new ModelClassName(); } to register the model/texture And this to render it: this.modelVarName.render(); You might need to create a custom rendering method in your model: public void render() { AnyModelPart.render(0.0625F); }
-
The more I know
-
You need to register your tileentity in the Load event... GameRegistry.registerTileEntity(TileEntityClass.class, "TileEntityName");
-
1st You don't need to write minecraft: if you want to use a Minecraft texture. 2nd You have to initialize the Block in preInit() otherwise it wont work. And dont forget to register it.
-
You need to somehow compare it with the EntityList.class and use its ID to class mapping. I would do it like: public void getEntityEggID(Entity entity1) { for (i = 0; i < EntityList.IDtoClassMapping.length(); i++) { if (entity1 instanceof EntityList.IDtoClassMapping[i]) { return i; } return -1; } } You will probably need to adjust this code a bit since it is a hash map.
-
As a .png image ^^
-
Just add: this.setTextureName("yourModName:YourTextureName"); to your block / Item and save them in your src\minecraft\assets\technica\textures\blocks or your src\minecraft\assets\technica\textures\items Folder path.
-
Maybe you will need to adjust the file path but this doesn't belong here.