Jump to content

[1.7.x] Redstone Wire Block


Ashene

Recommended Posts

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.

 

 

Link to comment
Share on other sites

  • 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.