Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

mar21

Members
  • Joined

  • Last visited

  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. Shift!
  8. 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 ...
  9. 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 ?
  10. 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...
  11. 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; }
  12. 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)
  13. 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
  14. I think you can create for plant the tile entity, and the renderer is from default game I think for roses/dandelions/etc
  15. E, yes! TileEntityRenderer.instance.renderTileEntityAt(new TileEntityTrafficLight(), 0.0D, 0.0D, 0.0D, 0.0F); this is doing me error too!

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.