Jump to content

Recommended Posts

Posted

Hello, I'm kind of new to using the Forge API so excuse my ignorance.

I'm just trying to write a block that acts exactly the same as Redstone Wire.

I set up my block to extend BlockFence because I want it to behave the same way and I've been playing around with the powered functions but I can't get anything to have any effect ingame.

If i'm reading the source material right, I override canProvidePower() and return true, then I override getStrongPower and use isProvidingWeakPower to recieve and send the redstone signal

 

Here's an example:

example.png?dl=1

Redstone signal is sent through the custom post block up to the lamp, powering it.

 

What exactly needs to be done to get this effect? Thank you.

 

 

Posted

Would you at least be able to point me to somewhere where it is supported? I'm writing this for use with a mod that is not updated past 1.7.10

  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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