how do i make a button that can only be placed on a specific block
i am working on a map and i need a villiger that sells stone buttons that can only be placed on quartz piller here is the villiger command i just want him to sell the stone button that can only be placed on quartz piller its 1.21.5
/summon villager -198 -59 -175 {OnGround:1b,Invulnerable:1b,CustomNameVisible:1b,CanPickUpLoot:0b,Xp:1,CustomName:"Bob",VillagerData:{profession:"minecraft:librarian"},Offers:{Recipes:[{buy:{id:"minecraft:emerald",count:2},sell:{id:"minecraft:stone_button",count:1}}]}}
Continue to help post