On your Item use the Event "On Item use" something like that and add a Procedure to that Event and make a boolean check. Everytime you right clicks your Item it will switch between true and false. Then you can make a Procedure with the Global Trigger "Entity Spawns". First Check if the Entity that spawns is your Entity with the Block that you can find at the bottom of the Category "Logic" called "Is event/target entity (sub)type of [your entity]". After that check if the boolean variable is True. You don't need an else statement just use "if" and then your logic variable. Then cancel the Entity to spawn. Like that:
It's simple:
On your Item use the Event "On Item use" something like that and add a Procedure to that Event and make a boolean check. Everytime you right clicks your Item it will switch between true and false. Then you can make a Procedure with the Global Trigger "Entity Spawns".
First Check if the Entity that spawns is your Entity with the Block that you can find at the bottom of the Category "Logic" called "Is event/target entity (sub)type of [your entity]". After that check if the boolean variable is True. You don't need an else statement just use "if" and then your logic variable. Then cancel the Entity to spawn. Like that: