Bug Closed · Resolved

Attribure `exact` and `vanillaonly` don't work in `takeitem` function

#6606 opened by Unknown 11 months ago

Unknownreported this bug

Summary

MC Paper: 1.21.8 Latest MM Build (8.09.2025) Latest MC Build (8.09.2025)

Like in a topic

Using this function inside the skill:

furniture_apple_starter:
  Conditions:
    - furniturestate{s=furniture_idle}
  Skills:
    - cancelevent
    - takeitem{vanillaonly=true;exact=true;item=apple;a=4} @trigger
    - furniturevariableset{var=type;type=STRING;val=apple} @self
    - skill{s=furniture_process;sync=true;} @self

And instead taking apple from inventory, it takes apple based items from previus slots like at the screenshot:

[Legacy attachment omitted]

Pay attension that this skill is using in Furniture in my code.

Steps to reproduce

Just create custom override apple item:

custom_apple:
  Id: apple

And make my experiment with skill.

Current behavior

It consumes wrong item

Intended correct behavior

It should consume vanilla based item due to settings. And actully consume item described in function.

Unknowncommented

Solved in the latest dev build

Sign in to join the discussion.