Started by
proxerater
on
Topic category: Help with MCreator software
Short question, can you make custom event triggers? I want to make my event trigger "play breaks block" and then select my modded block.
Please help!
Topic category: Help with MCreator software
Short question, can you make custom event triggers? I want to make my event trigger "play breaks block" and then select my modded block.
Please help!
As it is your custom block, all you have to do is override Block#onBlockDestroyedByPlayer() or Block#removedByPlayer() in your blocks class, depending on your needs. I am quite sure that one of them should be accessible from the block creation menu but I may be wrong.
If it was not your block, you would have to make an event handler and subscribe to BlockEvent.BreakEvent.
thanks!
Is there any to do the same, but to a mob?
What I mean is, a player kills a certain mob that triggers an event?
Thanks