CraftTweaker

CraftTweaker

151M Downloads

Deprecate "in" and use "has" because grammar.

IMarvinTPA opened this issue ยท 0 comments

commented

Issue Description:

Note: If this bug occurs in a modpack, please report this to the modpack author. Otherwise, delete this line and add your description here. If you are using an unnofficial version of Minetweaker or Crafttweaker please report it to the person who gave you the version. Also please look at the other issues to make sure that you are not creating a duplicate.

What happens:

My mental model is that "item" in "list" while the way the documentation reads, it is used with "list" in "item" which is just backwards.

What you expected to happen:

if "item" in [list] then do_something.
Deprecate "in" and replace it with the the keyword "has"
I expect [list] has "item" or [BigList] has [AllTheseItems] to be logical. The "in" operator prompts me to get it wrong.

Script used (Please Pastebin or gist your script, posting an unpasted or ungist'd script will automatically close this issue):

https://crafttweaker.readthedocs.io/en/latest/#AdvancedFunctions/Conditional_Statements/#the-in-operator

Minetweaker.log file (Please Pastebin or gist your file, posting an unpasted or ungist'd file will automatically close this issue):

N/A


Affected Versions (Do not use "latest"):

  • Minecraft: 1.12.2
  • Forge: 14.23.1.2555
  • Crafttweaker: 1.12-4.0.10

Your most recent log file where the issue was present:

N/A