Execute Command procedure crashes my game

Started by KhyGuy on

Topic category: Troubleshooting, bugs, and solutions

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Execute Command procedure crashes my game

Problem Start:

I was working on my mod about metals and wanted to create a magnet. So, I created a procedure to pull items and mobs when right clicking; however, when I tested it out it kept crashing. I also tried this with other commands in the spot like summon commands but my game kept crashing leading me to believe its a problem with the execute command procedure. I've tried just about everything, from using a fabric generator to see if Forge is the problem  Using 1.20.1-1.20.4 as my minecraft version, updating Mcreator and downgrading Mcreator to see if it was patched, and even using different minecraft clients like Curseforge and Feather Client but to no prevail. If someone could help me out that would be useful lol!!

Mcreator Version: 2023.3

Minecraft Version: 1.20.1

Procedures: MagnetRightClicked

If event/target entity is sneaking

Do  For each entity as entity iterator at x: y: z: in square cube with size 16

Do execute command /tp @e[type=minecraft:item,distance=..16 @s in the name of Entity iterator

CopperStaffRightClicked

For each entity as Entity itterator at x: y: z: in square cube size 64 do

If entity interator has active potion effect Conduction = true

Do execute command /summon lightning_bolt in the name of Entity iterator

Remove specific potion effect Conduction from Entity iterator

Crash Report Description: Exception in server tick loop

Exit Code: -1

The game crashed whilst exception in server tick loop

Error: java.lang.NoSuchMethodError: 'int net.minecraft.class 2170.method 44252(net.minecraft.class 2168, java.lang.String)"