#detect player is holding ranged weapon
1 messages · Page 1 of 1 (latest)
Whats a ranged weap
throwable item or eatable item
just make an array full of id's of items that you know are ranged.
you cannot check the item has the shooter or throwable component
does script detect other items from addons too?
it can, but like I said, you cannot check for these components.
can u get item component from scripts?
you can but for the third time
you cannot check for these components that make it ranged.
another thing is not everyone uses these components, you can make items shoot through scripts without these 2 components.
what about eatable component?
you mean the food component
yes, you can get that.
Documentation for @minecraft/server
all items have this component is eatable?
I misread your question, sorry
yes.