Direction Block doesn't compile properly

Started by StepikDaModder on

Topic category: Troubleshooting, bugs, and solutions

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Direction Block doesn't compile properly

This is the first time I've encountered this, so here we go.

I tried to make an Item Pipe and I added a condition IF Get Block Direction at X Y Z = OutputDirection

When I tried to save the Procedure, this popped up in the console:

 

return Direction.fromAxisAndDirection(_bs.getValue(BlockStateProperties.AXIS), Direction.AxisDirection.POSITIVE);
^
required: class,package
found: variable

 

What happened?

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I found the problem = the…
Sun, 06/16/2024 - 09:59

I found the problem = the variable name "Direction" was disrupting the code.