Need help with procedure grammar

Started by ShadowFyre781 on

Topic category: Help with modding (Java Edition)

Last seen on 19:03, 21. Aug 2024
Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need help with procedure grammar

Hey all! I was hoping someone could help me get a procedure to work. 

 

for background, I'm making some modified redstone lamps, sort of daisy-chainable. I'm trying to have it do something like this:

IF                "the block adjacent to the DOWN face "[ has the tag ["glowcrete" ]]

     AND     [[ it's] current blockstate is[ "1" (ON) ]]

OR            "the block adjacent to the BACK face " [has the tag["glowcrete"]]

     AND     [[ it's] current blockstate is[ "1" (ON) ]]

DO      [set blockstate of block at [X][Y][Z] to [ "1"]

ELSE IF  [Block  at [X][Y][Z] is redstone powered] =["false"]]

DO [set blockstate of block at [X][Y][Z] to ["0"(OFF)]]

 

In plain english, if the block is redstone powered, or if the block behind or under is both a "glowcrete" (there's going to be a bunch) and lit up, the block in question will be lit too. and more importantly, when neither condition is met, it shuts off again.

My big issue is the directions, because I'm trying to have the block be place-able sideways and upside-down if possible

 

Any help would be greatly appreciated, Thanks in advance!!

 

Last seen on 19:55, 25. Jul 2024
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So, let me get some…
Thu, 07/25/2024 - 19:30

So, let me get some clarification, you want this block to light up just like a redstone lamp, if the block adjacent to it is lit up and powered, the block at xyz will also light right?

 

Last seen on 19:03, 21. Aug 2024
Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Right. The block in question…
Thu, 07/25/2024 - 20:04

Right. The block in question (XYZ) would be lit either by redstone or by its neighbors already being lit. specifically the block behind or beneath