I have a data pack that adds the need to sleep to Minecraft, and it's really complicated in the Nether. I'd like to set my resting function to a use of the new Respawn Anchor, making it able to "sleep in the Nether", of course consuming a glowstone charge. Is it even possible, do I have tags or commands that detect the use of a Respawn Anchor? How could I make it lose charge upon usage? I'm kinda new to data packs and I'm still learning, could someone please help? Also, if you could I'd like as many details as possible.
3
You can summon an armor stand on the anchor as I explained in your other thread and check when the players sneaks on the block, for example (it's not possible using right click) and setblock with block state when you do so it loses charge. You need execute if for each possible amount of charges.
Or you could just have the player itself check for sneaking and if the block directly below is a respawn anchor (I am doing this for a pack I am making for hugoak already).
??? That's what I said .
