Dying and Reforming, Steven Universe Style?

Started by Foxes_Be_Cute on Thu, 04/21/2022 - 00:36

Topic category: Help with modding (Java Edition)

Last seen on 23:02, 22. Jun 2022
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Dying and Reforming, Steven Universe Style?
Thu, 04/21/2022 - 00:36

I'm making a Steven Universe mod in which players can be gems. I want a player to drop their gem and like enter spectator or a dead dimension or something when they die (haven't quite worked that bit out yet) and drop their gem. This is very doable - what stumps me is how to detect where that specific player's gem is in the world - whether it's in someone's inventory or on the ground - and for that player to respawn at the location of their gem.

How do I do this?

For those who haven't seen Steven Universe when gems (basically people) are badly injured, their physical forms retreat into gems to regenerate. Then after they've healed up for a while they reform their bodies from their gems.Ā 

Please help!

Thanks in advance?