Jump to content

Redstone Power and EnumFacing


jeffryfisher

Recommended Posts

I'm trying to find an example of redstone device code that has more comments than the vanilla block classes. Unfortunately, my searches are running into haystacks of zany redstone constructions and their videos, so I am not finding help for modding. If anyone can point to a primer on coding redstone devices, I'd be grateful.

 

In particular, I am getting all turned around (literally) as I try to calculate how much power my device is receiving from its six faces. My first confusion is from vanilla devices: if one looks UP at a block above, it asks how much strong power is being provided "UP". It's as if the device wants to know how much power is being sent even further away. Shouldn't it want to know if the block UP is sending power DOWN (and block offset NORTH is sending power SOUTH etc)? Obviously I am not reading the correct meaning of one or more deobfucated names. Is this explained somewhere?

 

My second confusion is strong vs weak power. I want my device to be powered by connected wires or original source, but not by energized blocks. The magnitude of my device effect will depend on the strength of signal. I think that means I want only "strong" power, but I'm reading conflicting info on wire signals. I'm unsure what to believe (or what method to call).

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

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.

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

Announcements



×
×
  • Create New...

Important Information

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