"Get enum property" procedure block not functioning correctly

Started by LackofWirth on

Topic category: Troubleshooting, bugs, and solutions

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
"Get enum property" procedure block not functioning correctly
Fri, 10/27/2023 - 06:37 (edited)

The "Get enum property" procedure block seems to always return false, even when I have the correct property for a block and its value defined.

I am trying to get a pole block (that has a face property that can be either floor, ceiling, or wall, as well as being able to face north/south/east/west) to break when it is not attached to a block appropriately, like an end rod. For example, if the pole was facing the floor it would break if the block below it was removed, if it was facing the ceiling it would check the block above it, and so on. However, no matter what face I check for, the block never breaks.

I have tried the "Set enum property" block and it works completely fine with the same property and value fields (e.g. I can change the block's "face" to "wall"). But if I check the block to see if it has said fields immediately afterwards, it never returns true.

Here is a test procedure I made to debug this, which should demonstrate the issue. The first block runs with no issues, but the if statement always goes to the else.

Edited by LackofWirth on Fri, 10/27/2023 - 06:37
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Okay, so after having done…
Sat, 10/28/2023 - 22:10

Okay, so after having done that it seems the value for the enum property getter is case sensitive. The console returned "CEILING" and after having changed my procedure blocks to use capitals it seems to be working. No idea why that's required for the getter and not the setter, though. 

Thanks for the help!

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i didnt work for me even…
Thu, 08/08/2024 - 20:48

i didnt work for me even after puting it in caps and it doesnt work, even tho i tested it and it returned it correctly

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
NVM IM SO DUMB, I WAS…
Thu, 08/08/2024 - 20:51

NVM IM SO DUMB, I WAS DETECTING BELOW INSTED OF ABOVE IF THE BLOCK WAS SOLID

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The capitalization did not…
Sun, 09/29/2024 - 12:13

The capitalization did not work for me. I needed to use "Is (provided blockstate) the same blockstate as ((modded block) with enum property (face) set to (floor))" instead of "(get enum property (face) of (provided blockspace)) = (floor)"