Started by
Youtuber87
on
Topic category: Help with Minecraft modding (Java Edition)
Is it possible to make it so when The Mob is right clicked with an item it heals and plays a sound?
Topic category: Help with Minecraft modding (Java Edition)
Is it possible to make it so when The Mob is right clicked with an item it heals and plays a sound?
Yeah that should be pretty easy with the "Player right clicks on entity" global procedure trigger.
Thank for helping the users out friyes!
how do i select the entity to be interacted with and choose the item?
This works fine; You should probably add a check to make sure you can't heal mobs that are already at full health though.
wait nvm it should remove the item from "Source entity" not target entity!!!
Since I'm pretty new to Coding on MCreator, I don't know how to stop healing at full health :/
This should make sure you can't waste materials healing an already fully healed entity,
I rewrote it a bit to avoid excessive nesting.
where do i find the local: heal_amount and local: heal_item procedure?
you have to make them yourself,
and then the blocks are under custom variables