Started by
LuckyBacon
on
Topic category: Help with MCreator software
How can i make a block react and do things when an arrow (or bullet) is shot at it? For example, emit a redstone signal?
Topic category: Help with MCreator software
How can i make a block react and do things when an arrow (or bullet) is shot at it? For example, emit a redstone signal?
hmm, i dont think this is possible.
You might be able to achieve this using on entity collides with block trigger and check if the entity is subtype of arrow and if it is, execute your desired action.
There's no "Entity Collides With Block". And "Entity Collides In Block" wont do.
forgot to mention, this is for MC 1.12.
Since i cannot edit my post, ill add one.
There is also no "arrow" for subtype. And if i try to change it to EntityArrow in the code, i get an error pointing at it.
If you add it in code, make sure to import it or press Ctrl + W for MCreator to import it for you.
I forgot that 1.9.0 is missing some entities from the list. All entities will be added in MCreator 1.9.1.
Yeah, i got it to compile.
But it is not working. Block says "Entity Collides In Block", but in the code, it says "onEntityCollidedWithBlock"
"With". Problem is, i need my block to be solid, and this will only work if i check the "pass through" box.
We do plan to add in block collision support in the future updates.