Minecraft wiki entry for Smoker, associated text: In Java Edition, a smoker can be "locked" by setting its Lock tag using the /data command. If a smoker's Lock tag is not blank, the smoker cannot be opened unless the player is holding an item with the same name as the Lock tag's text. For example, to lock a smoker at (0,64,0) so that the smoker cannot be opened unless the player is holding an item named "Smoker Key", use /data merge block 0 64 0 {Lock:"Smoker Key"}.