Procedure won't compile (please help)

Started by Range on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedure won't compile (please help)

I am trying to make an item that when it attacks an entity, will add a poison effect to the target, and add regeneration to the player but whenever I try to save it it says, "Your workspace contains mod elements that don't compile correctly".

This is the build log:

https://pastebin.com/axSdReuU

and this is the code for the procedure:

https://pastebin.com/ws2bJbeQ

Please let me know if there is a fix for this or if I did something wrong, thanks!

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Why aren't you using blocks?
Sun, 10/20/2024 - 14:24

Why aren't you using blocks?

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
to be fair I am, but I …
Sun, 10/20/2024 - 20:02

to be fair I am, but I (wrongly) assumed the code would be a better thing to show compared to the blocks. What you've shown is almost the same as what I have, but I want mine to happen when someone who hits another entity with the item it goes into effect so I did this:

https://imgur.com/a/OwhD8Wz

but I still get the error from above. Am I using the first block wrong?

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
huh that's weird try…
Sun, 10/20/2024 - 20:04

huh that's weird try pressing the plaster icon in the top left 

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry for the long delay, I…
Mon, 10/21/2024 - 01:29

Sorry for the long delay, I stepped out right after sending my earlier message. Clicking what I assume was the plaster button didn't fix it sadly, same error as before... Do you think it has anything to do with me making a fabric mod rather than a forge one?

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Maybe ... I haven't tried…
Mon, 10/21/2024 - 01:33

Maybe ... I haven't tried the fabric generator so I don't know what could be causing this, you should ask on the MCreative discord https://discord.gg/XHNSGzMsXa

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Will do o7, thank you for…
Mon, 10/21/2024 - 01:39

Will do o7, thank you for your help!