Topic category: Help with Minecraft modding (Java Edition)
I am honestly tired of this, I've searched everything and found nothing. Here are the procedures involved.
Basically, I have a block that extracts different gases based on biome, height, etc.
To avoid making 300 IFELSEs and becoming Yandere Simulator 2, I am using a plugin for arrays.
The problem is, in the procedure ExtractGas, we have this variable called "gas", which I am trying to set it's itemstack value to the return value of the procedure ReturnGas. When I try to do so, this error shows up in the console:
https://gist.github.com/baicu12096/13f7b8527076283d1969266e6ca1298f
If anyone can tell me what is happening, and possibly how I can fix it, I would appreciate. If it involves the autogenerated code, I will send it in no time.
Is the ReturnGas procedure the "CheckIfGasIsCompatible" procedure here,
if so is the ReturnGas procedure saving correctly?
Yeah, ReturnGas is the same as CheckIfGasIsCompatible.
It is saving correctly.
HOWEVER, I had to reload the workspace once because the menu for selecting the procedure in the "call procedure and get return value" was not showing ReturnGas. IDK if that matters.
The crash only happens if I try to emulate Minecraft btw
Debugger doesn't seem to help
emulate? Does the generated code of CheckIfGasIsCompatible show up?
I mean when you click the "run client" button
Does the generated code of CheckIfGasIsCompatible show up?
No, it crashes before Minecraft even starts loading, it appears that error message I put in github gist
Sorry, I thought you were talking about other thing
Apparently no
https://imgur.com/a/oAEY6QI
yeah so one of the blocks in that procedure is causing errors.
This might be hard to debug, you might take all the blocks off and individually readd them to find the problem block.
But maybe we can get something from the logs, go to
C:\Users\user\.mcreator\logs\mcreator.log
From what the console is saying, "CheckIfGasIsCompatibleProcedure.execute(y).copy();" which apparently calls the ReturnGas procedure and gets it's result, is being read as a variable, and since it has not been declared it gives off an error
C:\Users\user\.mcreator\logs\mcreator.log
is not the same as the console. It has the logs for stuff that happens in the mcreator program itself
IDK how the log works so here's the whole file
Note that "redwood" stuff are deleted features
https://gist.github.com/baicu12096/0380770c098ebedc57486e871810736a
oh well that's annoying it's one of the blocks you have used the most...
was this plugin made for the version you are on? Like you didn't port it yourself, or download one that was "force ported" by someone else.
Can you send a link to it?