Jump to content

Creating a simple "EnergyCollector" with CofhLib


Recommended Posts

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:



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

Link to comment
Share on other sites

You block needs to have a


and that should implement


. Look at


for a reference implementation of


. You'll need to add a call to


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

Link to comment
Share on other sites

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.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

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