Started by
AllyInkling
on
Topic category: User side tutorials
guys I want to make a mod, but the joke of the mod is that with the item when you right click on a block, a mob is generated and look for all possible ways, can you help me? :3
Just use global triggers.
Entity right clicks block or something like that.
If you want to make an specific item to do it. Just use the event "Rightclick on block"
I don't understand, it's for mcreator 1.14.4
If you want it to be that the player needs to have a specific item, and click a specific block, then first of all, create both. If you only want it to be a specific item and right click wherever, just do the item.
In the first case, go to the procedures section of the block and look up the "when player right click on this" or something like that. Make there a new procedure, place an if statement, so that it checks if the player has the item in their main hand. In the do part, make it so it spawns the mob you want in the coordinates you choose (x, y+1, z would make it appear above the block referenced.
If you only want to use the item, go to the procedures section of the item and the "when player right click with this". Make an new procedure there that is going to be just the "spawn the mob at coordinates" part. If you need a more visual explanation, please tell me and I'll try to do it tomorrow.