Two scripts not loading (Error -1 and null) and Material Color defaulting to white
Burgersim opened this issue ยท 6 comments
Hey there, I hope somebody can enlighten me, why my scripts dont work. I tried adding new traits to TConstrust via TraitBuilder, and removing the drops from Wither Skeletons so I could define my own, but both scripts give out an error on loading. I think the syntax should be fine, but maybe I'm just missing something. Thanks in advance for the help ^^*
Also, small addition, the Dragonbone Material I registered doesn't have the color I defined in dragonBone.color, did I do it wrong?
I'm fairly new to this, so sorry in advance ^^*
These are all my scripts as .txts
TinkerTraits.txt
TinkerTweaks.txt
WitherSkeletonDrops.txt
Candles.txt
FoodAndSalt.txt
TinkerMaterials.txt
And here is the crafttweaker.log
crafttweaker.log
TinkerTraits returns error -1 and WitherSkeletonDrops returns null as far as I saw it.
Minecraft Version 1.12.2
Forge Version 14.23.4.2738
Issue in TinkerTraits is that your Code is wrong.
You are not allowed to do anything after a return statement (like, in no programming language)
Also, assigning to bonusDamage there is pointless, as that is only a reference, it doesn't change that value for other handlers at all.
The witherSkeletonDrops script looks more like a CrT issue than a CoT one, but try to use the other function with a weightedItemStack instead:
witherSkeleton.addDrop(<tconstruct:materials:17> % 20, 1, 3);
Thanks, I feel a bit stupid for not realizing, that I did stuff after a return statement ^^*
I tried a weighted Item Stack first, but that didn't work either.
Thank you for the help ^^
Are you sure it's the addDrop function that's messing up the script?
Try adding parenthesis to your clearDrops
๐
Ok, I'll take a look at it again and report back as soon as possible ^^*
Thanks again ^^
Any news on this issue?
Also, the reason why the materials are white is most likely because you create the material during the CrT loader