I want to have a command block that has /execute if entity that will only execute on entities with a custom name, but I can’t figure out how to do it.


Do “/execute if entity @e[name=“insert name”] (rest of command)”

If it’s going to be one mob with this name aswell as going to be released publicly, i reccomend to do this:

“/execute if entity @e[name=“insert name”,type=“insert mob”] (rest of command)”

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.