Is there any way to run a /execute @e type command against a banner with a name? I want to make a flag for claiming land by detecting when a banner is in the range of a player.
I have a way to do it with item frames and maps but wanted to do it via a banner as doing a "clan" banner with a custom name seems like a more elegant way to display it.
Is there any way to run a /execute @e type command against a banner with a name? I want to make a flag for claiming land by detecting when a banner is in the range of a player.
I have a way to do it with item frames and maps but wanted to do it via a banner as doing a "clan" banner with a custom name seems like a more elegant way to display it.
There is a way :
1) create a scoreboard which count when a player put a banner :
2) Create a function that will be called when this scoreboard is up to 1 to summon an area effect cloud where the player put his banner :
tick.mcfunction :
block_look :
banner.mcfunction :
And you have to create a block tag in your datapack called air.json with that :
And now when a player put a banner on the ground, it will spawn an area effect cloud you can called with execute.
I like trains... OF CHAIN COMMAND BLOCKS !