1

Command challenge #2

a_creeper_won 12/19/16 11:08 am
312
12/19/2016 1:17 pm
OK guys. you did AWESOME on the first challenge.
but Im ramping up the difficulty by a HUGE amount

Ok. say you wanted to have a place where the player can choose a name for lets say, a dog.
How can you make it so that same name can be use in respawning the dog, and in cutscenes?
I would be surprised if anyone got the awnser for that.
Posted by
a_creeper_won
Level 18 : Journeyman Explorer
2

  Have something to say?

JoinSign in

6

a_creeper_won
12/19/2016 1:17 pm
Level 18 : Journeyman Explorer
YAY you won the 1 cant question woo woo woooo
1
Carnivore
12/19/2016 1:09 pm
Level 42 : Master System
What the guy above said :B
-- EDIT --
having clones (as in two entities), one as a player's "pet", the other one for re-spawning the same one without the need to name it again or whatever.
In that case you can always call the clone and have it spawn near the player as the pet, while the clone remains as a static object.

Can't think of a way to dynamically assign names from entities as NBT tags to execute a summon.
1
Pepijn
12/19/2016 12:51 pm
Level 58 : Grandmaster Cyborg
The only way to clone entities is using structure blocks.

Rough concept: Detect if the player uses a nametag when a dog is close enough to the player, place and activate a structure block on the coords of the named dog which will save the dog. To be completely save you can then place the "structure" containing the dog somewhere and remove all blocks and other entities from it (just in case), before re-saving it. Whenever the player wants to summon the dog using some sort of "trigger", just place a structure block on the player that loads the structure file with the named dog.

I haven't tested this at all and it's probably not a perfect answer. This is just what popped into my head when I read the challenge.
1
Dlljs
12/19/2016 11:35 am
Level 40 : Master Nerd
Ask the player to rename a name tag? Then keep teleporting the dog where you need it to be?
1
a_creeper_won
12/19/2016 12:46 pm
Level 18 : Journeyman Explorer
What if the dog dies? How would respawn it without the need to rename it?
(That is the big question)
1
Creative Universe
12/19/2016 11:24 am
Level 2 : Apprentice Network
dont know lmfao
1

Welcome