ZengineeringTeam / ResearchTable

https://www.curseforge.com/minecraft/mc-mods/research-table
Other
11 stars 8 forks source link

Fake error on load? #12

Closed DraxxisGH closed 5 years ago

DraxxisGH commented 5 years ago

When my pack loads it throws up errors with the words I have here, for example "ResearchTable.builder("iron", X) .setTitle("Tools+") .setIcons() .setDescription("Access to iron") .addCondition( 250) .addCondition( 100) .setRewardStages("iron") .build();"

Where the X is is what it says is wrong, but if I remove the X it throws errors in CT, what's up with that?

Snownee commented 5 years ago

Have you seen this: https://github.com/ZengineeringTeam/ResearchTable/blob/master/run/scripts/test.zs#L5-L7

Does this pass the compilation?

DraxxisGH commented 5 years ago

Oh wait I'm stupid

DraxxisGH commented 5 years ago

image

Throws that error for everything

ResearchTable.builder("conveyors3") .setTitle("Conveyor Upgrade 3") .setIcons(<logisticalautomation:conveyor_express>) .setDescription("An upgrade in speed to the Fast conveyor") .addCondition( 250) .addCondition( 1500) .setRewardStages("conveyors3") .build();

Snownee commented 5 years ago

I am sure that you should learn ZenScript from the beginning again..

var cat = ResearchTable.addCategory(<minecraft:grass>);

ResearchTable.builder("conveyors3", cat)
.setTitle("Conveyor Upgrade 3")
.setIcons(<logisticalautomation:conveyor_express>)
.setDescription("An upgrade in speed to the Fast conveyor")
.addCondition(<logisticalautomation:conveyor_fast> * 250)
.addCondition(<immersiveengineering:bla:39> * 1500)
.setRewardStages("conveyors3")
.build();
DraxxisGH commented 5 years ago

(This shouldn't reopen the issue cause I understand now) But to answer, yes I'm pretty new to zenscript myself so I'm still learning.