LootTweaker

LootTweaker

17M Downloads

Error Parsing

HerleyJLancaster opened this issue ยท 2 comments

commented

I made a script to remove bow, arrows and tipped arrows from the stray mob and to add Tconstruct bone arrows and wooden shortbow

"Error: [crafttweaker | SIDE_Client]: Error parsing Stray.zs:6 --: expected

The loot is still unadjusted

To Reproduce This is the script that I have written is here https://pastebin.com/fgvCSdvu

Expected behavior: remove/add loot to specified loot table

Logs & scripts CraftTweaker.log file is here https://pastebin.com/Mv2MHKYE

Version Info (Exact versions only): LootTweaker: 0.1.5+MC1.12.2 CraftTweaker/Minetweaker: Crafttweaker 4.1.20 Forge: 14.23.5.2847 Minecraft: 1.12.2 Tconstruct: 2.13.0.171

I'm still new to writing scripts and just started messing with the loottables

commented

You've misunderstood a lot about ZenScript syntax and how the loot system works. This isn't unexpected; learning ZenScript, object-oriented programming, and the loot table system with no prior experience is a lot. It doesn't help that resources on ZS are scarce.
Please join my discord and I'll explain things in the morning. A real-time conversation will be far more effective for resolving this.

commented

Not a LootTweaker error, your ZenScript syntax is wrong. Double check that you pasted that script right, it's messed up in a lot of ways.