Started by
squib___
on
Topic category: Help with MCreator software
So, I want a mob i'm making to despawn when right clicked with a bottle, but I'm not sure how to do that. Can someone please help?
Topic category: Help with MCreator software
So, I want a mob i'm making to despawn when right clicked with a bottle, but I'm not sure how to do that. Can someone please help?
are you coding it or using block coding?
if its block coding open your entity and go to triggers, the one that says "when right clicked on entity" use if item in main hand is empty bottle do despawn entity/target.
i'm using block coding
i can't find "if item in main hand is" anywhere. are you sure that codeblock exists?
plus, the "when right clicked on entity" doesn't interact with the player at all normally, so it'd check for the item in the entity's hand, not the player's.
its easy to get in template library there is add potion effect if specific item in hand click it and you get the block, as for the when right click problem you can also check for the entity doing it, its in the entity tape entity is sub type of, and choose player (its near the end) and it should work, as i just tested it for myself (btw i'm running the newest version/ not the newest snapshot)
i can't find a codeblock that sets the entity subtype. there's an "Is entity subtype of" codeblock, though
you don't need it in this instance but when you need it open the entity tab on the left, and scroll down near the bottom it should be there third from the bottom of entity procedures
wait, nevermind, i know what you're saying now. i just can't find a way to have both "is entity subtype of" and "Item in main hand of.." blocks
oh alright anyways i hope i helped you with your problem