CraftTweaker

CraftTweaker

151M Downloads

[Feature Request] Prompt Clientside when server's scripts are invalid

Laifsyn opened this issue ยท 4 comments

commented

Describe the feature you'd like

Let Clientside to know when Server's scripts are invalid

<tag:items:myrandomtag:myrandom_name>.add(<item:fakemodid:wrongitem>);

//this one should say that the tag is empty, and therefor replace the tag_IIngredient to empty
var myItemTag=<tag:items:myrandomtag:myrandom_name>;
craftingTable.addShapeless("my_random_name", <item:minecraft:torch>, [<item:minecraft:torch>, myItemTag, myItemTag]);

Edit: I almost went mod hunting amidst 100+ mods thinking it was a funky mod that was messing with CT, so this should be helpful in such cases

Modloader

All

commented

I'm not sure I'm following, the clients should get sent the scripts and report the errors, does that not happen?

commented

I did get errors(actually warns in the client), but not an error for the invalid BEP. (I might've had missed the console outputs though[if it has])

The warn I got was something along the lines that the tag(in the recipe) is empty, and therefore replaced with emptyInstance.

Removing the invalid BEP allowed me to see all changes by CT.

commented

I don't really see how that would be related, I think what may be better is sending a message on player join if the server scripts are invalid

commented

@jaredlll08 Could this already be fixed by your changes for re-evaluating empty tags after the CrT load?