Started by
desa192
on
Topic category: Help with Minecraft modding (Java Edition)
I have an item that needs to be crafted. When you right click with this item, it spawns a boss mob.
Currently, you can spawn unlimited mobs by right clicking, how do i make it so you can only spawn 1 boss and the item disappears or is used?
Also I want the item to only summon the boss when you right click on a special block i made, how do i do this?
These are the last things I need before releasing my mod, please help. Thank you all
On TOOL:
when right clicked on block (hand loc)
Call procedure (boss procedure)
Boss procedure:
If get block at x,y,z is (special block)
Spawn at x,y,x boss
Remove 1 (tool) from provided players inventory
That means block only activates when you use the tool on it, not with anything else and if you do, it removes the tool.
Thank you so much for the help it fixed my problem! The only problem now is the mob not dropping the default drop.
i cannot find that procedure
make a procedure that contains these
remove item procedure block to remove the item from the players inventory
then add spawn entity at x y z block to spawn the entity
then set the when clicked option in the item config menu and set it to that procedure
Hopefully I didn't word it to confusingly