CraftTweaker

CraftTweaker

151M Downloads

crash with husk script

WarlordWossman opened this issue ยท 3 comments

commented

Issue Description:

Gamecrash when husks die.
Not entirely sure what's going on here from checking the crashlog.

Script used

https://pastebin.com/sEJuY3E8

crafttweaker.log file

https://pastebin.com/xTnCASgC


Affected Versions

  • Minecraft: 1.12.2
  • Forge: 2838
  • Crafttweaker: 4.1.17

Your most recent log file where the issue was present:

https://pastebin.com/yDa7Xmyj

commented

An itemstack can't have a value of 0, which is what you are trying to do on line 6 (between 0 and 2 inclusive)

More info here:
#573

commented

Yeah that makes sense, would it be possible to give an error in the CT log then?
Would make this more clear I guess.

commented

We usually do give errors when you do something along the lines of:

<minecraft:diamond> * 0

since that needs to compile, but with what you're doing, it is being compiled as

<minecraft:diamond>

then later when the game is actually running, the amount is applied, you could intheory kill 10 husks, and only crash on the last kill, the previous kills just would have constructed a stack with a bigger value.