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