Started by
The_Pamps
on
Topic category: Help with Minecraft modding (Java Edition)
Hi all,
I am trying to add pressure plates to my mod that are only activated by certain entities, how would I go about this?
For example, a pressure plate that is only activated by a zombie or "undead" entity type.
Thanks in advance,
The Pamps
do you want it to increase the more of them it has?
If your using a custom block, there should be a trigger called "When Enity Walks On This Block" put your procedure on that one, and use a IF statement that reads IF Event/Entity is creature type 'Undead' > then do your logic. Alternatively you can type in the search box "sub" and a block should come up named "Is Event/Entity (sub)type" and that will allow you choose a specific type of mob.
This code should be what you want.