Goldorion / Fabric-Generator-MCreator

A Fabric Generator plugin for MCreator
Other
111 stars 40 forks source link

Entity Dies Global Trigger not working #533

Open Stilt1234 opened 6 months ago

Stilt1234 commented 6 months ago

Issue tracker rule checks (please read carefully)

Issue description

I recently upgraded my mods version from 1.19.2 to 1.20.1 and while I was fixing bugs I noticed that whenever I used the Global Trigger Entity Dies, MCreator used to show a red line in the bottom of the Generate code viewer window.

image

And after that whenever I regenerated my mod, It used to return an error and I was stuck in a loop of regenerating the code. I followed all the steps online of clearing gradle caches but nothing seems to work.

I even looked into the source files and saw that I had the flt file for the entity_dies global trigger, but somehow mcreator is not detecting it. I didnt know if its a problem with my computer or with the plugin so I even reinstalled mcreator and the plugin, but even after that I was not able to do it. The error is only occuring with enity_dies global trigger btw. Thank you in advance for helping me

How to reproduce this issue?

Step 1: Create a new procedure with the fabric generator 1.20.1 Step 2: Try to use entity_dies global trigger and see if there are any build errors

Operating system

Windows

Details

MCreator Version : 2023.4 Generator Version : Fabric Generator 1.20.1_2

Example workspace

No response

Logs

No response

Goldorion commented 6 months ago

What is the error you get?

Stilt1234 commented 6 months ago

image This is the first error I get

Here is the Console Log image

I did some testing and I found out that since according to mcreator entity_dies is not a global trigger they can find in the generator, it does not save the procedure's class file in the procedures folder due to which the above console log error occurs.

What is the error you get?

Stilt1234 commented 6 months ago

Is there anything I can do @Goldorion?

fibberclip commented 2 days ago

Same here, i was trying to make a totem item and i get this exact same error simply by making a global procedure for Entity Dies, no matter what's in the procedure, as long as the trigger is Entity Dies it'll fail :/