(Semi-Solved) Setting itemstack variable to itemstack return value of a procedure causes crashing.

Started by baicu12096 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(Semi-Solved) Setting itemstack variable to itemstack return value of a procedure causes crashing.
Mon, 09/29/2025 - 19:04 (edited)

I am honestly tired of this, I've searched everything and found nothing. Here are the procedures involved.

https://imgur.com/a/0tGWHXn

https://imgur.com/a/pK350tY

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. 
 

Edited by baicu12096 on Mon, 09/29/2025 - 19:04
Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The plugin you recommended…
Mon, 09/29/2025 - 18:19

The plugin you recommended simply doesn't do anything, no new procedure blocks, no new variable types, idk what's happening

I discovered there's a block in the old plugin that adds support for 2025.1 or lower but even adding it doesn't do anything

I don't think that's the problem

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Managed to get the plugin to…
Mon, 09/29/2025 - 18:25

Managed to get the plugin to work

Lemme try

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oh okay I also what…
Mon, 09/29/2025 - 18:26

oh okay I also what minecraft version are you on?

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
1.20.something The lastest…
Mon, 09/29/2025 - 18:39

1.20.something

The lastest version for Forge without plugins

BTW now I realized the code generated by this plugin uses CUSTOM: and now that is crashing the game

I will try changing it to antiforge: manually

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oh dam um   a workaround…
Mon, 09/29/2025 - 18:52

oh dam um

 

a workaround might be doing <Mod_id>ModItems.<ITEM_IN_CAPS>.get()

why are you using 2024.4 anyway?

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
plugins there are some…
Mon, 09/29/2025 - 18:55

plugins

there are some plugins that dont updated to the newer versions

i will check later on, i will have to think a lot about opening workspaces in newer versions cuz i cant revert it after

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
only the arrays one you…
Mon, 09/29/2025 - 19:00

only the arrays one you recommended

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
well i give up by now i…
Mon, 09/29/2025 - 19:03

well i give up by now

i surrender my soul to the if elses ):