Spawn Block That Will Remove The Spawn It Set To The Player When Broken

Started by Sir_BananaCat on Sun, 06/19/2022 - 12:50

Topic category: Help with modding (Java Edition)

Last seen on 21:37, 9. Aug 2022
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Spawn Block That Will Remove The Spawn It Set To The Player When Broken
Sun, 06/19/2022 - 12:50

So, I'm wanting to make a block that sets your respawn point when you right-click it, and that all works fine, but my issue is that I don't know how to make it so when you break it, it removes the spawn point of the players that used it. I'm not sure if it's entirely possible, but I'm still trying.

Last seen on 02:47, 17. Jul 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
"When block destroyed by…
Thu, 06/23/2022 - 00:57

"When block destroyed by player" - set spawn of event entity to world spawn x/y/z.

This won't work for non-player related destruction. In these cases, you want to set a player variable/s to the x/y/z of the custom block, and use that in a similar fashion to the above method with "When block destroyed by explosion" trigger and checking if the custom blocks x/y/z matches that of the values stored by the player variable/s.

Last seen on 21:37, 9. Aug 2022
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I'm sorry I'm late to…
Wed, 06/29/2022 - 11:43

I'm sorry I'm late to respond, but how would I store the x/y/z of the player into the block and call it back?

Last seen on 02:47, 17. Jul 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Store the coordinates in…
Thu, 06/30/2022 - 07:34

Store the coordinates in seperate NBT tags on the block.

Last seen on 21:37, 9. Aug 2022
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I'm sorry for responding…
Mon, 07/04/2022 - 14:04

I'm sorry for responding late again; I tried making it, but I can't figure it out, do you mind explaining it in a more straightforward way?

Last seen on 02:47, 17. Jul 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Right click on block trigger…
Mon, 07/04/2022 - 17:17

Right click on block trigger -> set block number nbt PosX to x Pos of player, and do that for the other two coordinates (y and z)