1

Anchoring commandsemoji_people

HugOak 7/18/20 10:12 am
169
7/18/2020 11:29 pm
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.
Posted by
HugOak
Level 5 : Apprentice Miner
1

  Have something to say?

JoinSign in

3

One_Nose
07/18/2020 3:00 pm
He/Him • Level 59 : Grandmaster Dragonborn Hero
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.
2
set_135
07/18/2020 6:35 pm
Level 39 : Artisan Blacksmith
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).
2
One_Nose
07/18/2020 11:29 pm
He/Him • Level 59 : Grandmaster Dragonborn Hero
??? That's what I said .
1

Welcome