Need help with way to define a base or spawn point. (NBT tags still don't work)

Started by Spleen on

Topic category: Minecraft mod ideas exchange

Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need help with way to define a base or spawn point. (NBT tags still don't work)

The general idea of my mod was the ability to fly when within distance of the player spawn point (bed) so that your "base" can be defined that way and flying function is available to make things easier to build. Outside of this range, standard survival mode rules apply. 

I found the post about pulling SpawnX etc from NBT tags but testing (and some subsequent posts) confirmed that it always pulls 0. There is no way to get the player spawn point in MCreator, This would have worked fine if I can read that number some other way.

 

So it has me thinking of what would be the next practical plan B?

1) A new block that functions as a "base block" and then use custom NBT tags in a similar way?

2) Is there a way to check distance to a block type, say a placed solid diamond block or something that wouldnt be found in the wild?

3) Turn it off a set distance away from where its turned on? 

Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also I wanted to add, I…
Fri, 08/12/2022 - 00:40

Also I wanted to add, I found the procedure to SET the player spawn. I just cannot GET the player spawn.

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Have you tried using…
Fri, 08/12/2022 - 23:07

Have you tried using variables?

Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there a way to get the…
Fri, 08/12/2022 - 23:27

Is there a way to get the player spawn point into a variable?