Procedure won't compile (please help)

Started by Range on

Topic category: Help with Minecraft modding (Java Edition)

Active 10 months ago
Joined Oct 2024
Points:
52

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
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!

Active 4 days ago
Joined Dec 2014
Points:
1085

User statistics:

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

Why aren't you using blocks?

Active 10 months ago
Joined Oct 2024
Points:
52

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
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?

Active 4 days ago
Joined Dec 2014
Points:
1085

User statistics:

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

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

Active 4 days ago
Joined Dec 2014
Points:
1085

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 673
right*****
Sun, 10/20/2024 - 20:04

right*****

Active 10 months ago
Joined Oct 2024
Points:
52

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
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?

Active 4 days ago
Joined Dec 2014
Points:
1085

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 673
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

Active 10 months ago
Joined Oct 2024
Points:
52

User statistics:

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

Will do o7, thank you for your help!