ContentTweaker icon indicating copy to clipboard operation
ContentTweaker copied to clipboard

Two scripts not loading (Error -1 and null) and Material Color defaulting to white

Open Burgersim opened this issue 7 years ago • 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

Burgersim avatar Jul 19 '18 08:07 Burgersim

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);

kindlich avatar Jul 22 '18 08:07 kindlich

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 ^^

Burgersim avatar Jul 22 '18 14:07 Burgersim

Are you sure it's the addDrop function that's messing up the script? Try adding parenthesis to your clearDrops :wink:

kindlich avatar Jul 22 '18 14:07 kindlich

Ok, I'll take a look at it again and report back as soon as possible ^^*

Thanks again ^^

Burgersim avatar Jul 22 '18 16:07 Burgersim

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

kindlich avatar Jul 30 '18 20:07 kindlich

Hey no new news yet, because I haven't got the code, forgot to copy the data, but a friend is gonna send it to me this week hopefully

Edit: since said friend is now on vacation, and forgot to send me my stuff, I'll have to wait until he gets back, very sry...

Burgersim avatar Jul 31 '18 04:07 Burgersim