#checking a storage block about a specific item
1 messages · Page 1 of 1 (latest)
you can use container.* to check all slots
so if I used that what would the command be for it to check all slots and when it finds the item it replaces it with something else
if you want to know which slot it is in you wouldn't use container.*
so there isnt an easier way to do that?
the easier way is to put the condition in the item modifier
item modifiers allow conditions to stop them from running
can you explain what item modifiers are and how I can use them to do I want to do please?
they are the best way to modify items inside any inventory, for most purposes.
misode has a good generator for them
alright i'll check it out tysm for the help!
they work on a single slot, but you can make them conditional
and they can do any modification you can imagine whilst preserving existing components
to a certain degree
thanks again