Replies: 2 comments
-
Though quite experimental it might be a good idea to put the grouping definition into a separate section: items:
item1: "DIRT name:My_Little_Dirtblock lore:Just_a_tiny_dirtblock"
item2: "STONE name:My_Little_Rock lore:Just_a_tiny_rock"
item_groups:
tiny:
- item1
- item2 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Also this could be related to future work, when the Item Overhaul #1037 is implemented. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
recently i had the idea to make specific items as a "group".
Usually, a regex would be the way to go in that case, though i had the idea of adding the optional parameter
namespace:<something>
to BetonQuest items.This would be something like this
Now if i use an
item
condition, or something else which uses a block selector, i can use the namespaceBetonQuest:tiny
to make the condition true if any of the items in said namespace (aka if a little dirtblock or a little rock) is in my inventory.Why all of this?
Well, i could use a simple regex for the two items, but what if its like 30 different items? That would overload one condition with a huge regex. This would tidy that stuff up and open the way for more flexible conditions/objectives.
Like if i now add another "tiny" item, like a tiny potato or something, i could add the item to the
BetonQuest:tiny
namespace and the condition now would trigger for the potato too, without me having to edit the condition.Beta Was this translation helpful? Give feedback.
All reactions