Posted June 1, 20169 yr Hello Guys, I want to make a simple Energy Collector Block. It should always collect Energy if placed. The problem is, that i don't understand, how I can use the Methods, provided by the CofhLib. Here's the Link to the CofhLib GitHub: https://github.com/CoFH/RedstoneFlux-API I tryed to create a normal Minecraft Block, and to implement the methods in the main of the Block class. But I'm not able to access the Methods from the CofhLib. Please help me, Thanks Mike
June 1, 20169 yr You block needs to have a TileEntity and that should implement IEnergyHandler . Look at TileEnergyHandler for a reference implementation of IEnergyHandler . You'll need to add a call to IEnergyStorage#receiveEnergy in your tile's update method as well. Don't make mods if you don't know Java. Check out my website: http://shadowfacts.net Developer of many mods
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.