From 4d507559e8154cce84bedbf5e3b5683f10d29d27 Mon Sep 17 00:00:00 2001 From: C4 <29991504+TheIllusiveC4@users.noreply.github.com> Date: Tue, 14 May 2024 19:02:28 -0700 Subject: [PATCH] Add info about removing values from tags --- docs/curios/items/assign-slots.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/curios/items/assign-slots.md b/docs/curios/items/assign-slots.md index 759fa01..9bb154d 100644 --- a/docs/curios/items/assign-slots.md +++ b/docs/curios/items/assign-slots.md @@ -63,6 +63,24 @@ will be tagged: Now all diamonds and all emeralds should have a tooltip that reads `Slot: Ring`, which indicates that they can now go into the `ring` slot type if available. +### Removing Values + +Items can also be removed from item tags instead of added. This is useful for situations where it is necessary to move +an item from one slot type to another and the original slot type should no longer accept the item. In this case, +there is a `remove` field that can be used to list an array of items that should be removed from the slot type. + +```json +{ + "replace": false, + "values": [], + "remove": ["minecraft:diamond"] +} +``` + +In the example above, diamonds will be removed from the slot type associated with the item tag and no longer be +considered valid for equipping into that slot type (provided that the slot type itself is using the default behavior of +validating based on item tags). + ## Validators --- For more precise slot type assignments, validators can be used instead. Validators exist as a field on each slot type