Jump to content

mar21

Members
  • Posts

    58
  • Joined

  • Last visited

Converted

  • Gender
    Male
  • Location
    Czech Republic
  • Personal Text
    Omega Development / m2cAPI

mar21's Achievements

Stone Miner

Stone Miner (3/8)

4

Reputation

  1. Ok, there you have the Thank you Theoretically yes, but I am now recreating some functions and classes to improve the api and make it better and more usable.
  2. Yes, thanks. It is working now!
  3. Can I use this in both situations ? The .bindTexture and .bindTextureByName ?
  4. Hello, I updated my mod and I am getting tons of errors... I tried to solve them with some tutorials about updating... So there are. I am getting error with .bindTexture and .bindTextureByName. I know they renamed/removed this functions, but I need something to load textures of my custom GUIs and custom Renderers. Thanks for ANY help ! mar21
  5. So bindTextureByName("/textures/blocks/FryerTexture.png"); In this code you need to place your model texture into the minecraft.jar/textures/block So, you need this, If you want to have your texture in diff location: bindTextureByName("mods/YOURMODID/textures/blocks/FryerTexture.png"); And your modid is Mod´s modid, defined in main class of mod. This will allow you to place the texture into the minecraft.jar/mods/YOURMODID/textures/block Try, and write back! Good luck with your mod
  6. Try this: this.bindTexture("/textures/blocks/FryerTexture.png");
  7. Yes, I will try this, thanks... I rewrited some functions, and I hope it will work as I need //EDIT E, what tileEntity did you mean ? the power interface or machine ? ///EDIT More explanation: If I set the Energy to 100 in the TE_PowerInterface it works, but I cant do any operations with it: It means: transfering and receiving energy... If I try to set the block energy when is placed ( .setEnergy(100) ) it dont work ...
  8. Yes, thanks ... I created the sending/receiving function, but on the paper momentally Thanks for the help. I write If this will working... //EDIT So, it doesnt work, now it doesnt do nothing. .. Any things on memory ?
  9. I dont, know, I am using this code for my custom model of my custom furnace, so I using the basic furnace metadata with side, where you placed, based on player looking. It work for me pretty well. You need the rotating thing in the YourBlock class...
  10. Try replace this: public boolean canThisPlantGrowOnThisBlockID(int par1) { return par1 == MoreDimensions.slimeGrass.blockID || par1 == MoreDimensions.slimeDirt.blockID; } With this: @Override public boolean canThisPlantGrowOnThisBlockID(int par1) { return par1 == MoreDimensions.slimeGrass.blockID; } And try place the flower on the slimeGrass if it dont work try: @Override protected boolean canThisPlantGrowOnThisBlockID(int par1) { return par1 == MoreDimensions.slimeGrass.blockID; }
  11. So, hello ... I created a Machine (Furnace based) and It require the Power Interface block at bottom. It will only work if there is (more) 100 points of energy. I created a onBlockAdded in the InterfaceBlock but it not set the values of energyconsume and current energy. Classes are there too : Interface Class Tile Entity of Interface: Things in the Machine class: (dont needed all thing in, it is lots(a lots of lots) lines ) TileEntity of Machine (I removed things that are unused in this problem)
  12. Heh, this is the right question Try in the FlowerClass: public TileEntity createNewTileEntity(World par1World) { return new TE_CustomFlower(); } And create the TE_CustomFlower class. Like this: package yourpackage; //make there all required imports (Shift+Ctrl+O) public class TE_CustomFlower extends TileEntity{ //YOUR STUFF } I hope
  13. I think you can create for plant the tile entity, and the renderer is from default game I think for roses/dandelions/etc
  14. E, yes! TileEntityRenderer.instance.renderTileEntityAt(new TileEntityTrafficLight(), 0.0D, 0.0D, 0.0D, 0.0F); this is doing me error too!
×
×
  • Create New...

Important Information

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