Custom enchantment procedure compilation error

Started by J0rs on

Topic category: Help with modding (Java Edition)

Last seen on 06:52, 1. Jul 2024
Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom enchantment procedure compilation error
Sat, 06/29/2024 - 09:04 (edited)

I made a procedure for an enchantment to deal extra damage with a hoe, but it keeps failing to build. (i'm on fabric 2023.1 btw)

My code:

https://ibb.co/G9T65vR 

The error:

https://ibb.co/qYMwcXv  

The code builder gives no errors so i have no idea what causes this

I tried regenerating code and clearing caches but it keeps giving me compilation errors.

Edited by J0rs on Sat, 06/29/2024 - 09:04
Last seen on 06:54, 1. Jul 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In the error photo, there is…
Sat, 06/29/2024 - 10:39

In the error photo, there is a green line under the red line.
At the end of that green line are some parentheses, one of those parentheses is extra.
Open the procedure code in the code editor and delete one of those parentheses and then lock the code

Last seen on 06:52, 1. Jul 2024
Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks! I did find a way to…
Sun, 06/30/2024 - 10:46

Thanks! I did find a way to surpass this error because the "source entity" block is probably bugged. I bypassed this by replacing it with "entity that caused [provided damage source]" so it works now. But anyway thanks a lot bc this is the reason a lot of my procedures weren't working.