Okay, I haven't attempted this yet because I have no idea where to start and hope someone could help me out with this idea. I have a boss fight in my map and the idea is the boss will appear on one of many platforms floating over lava. I want the boss mob to teleport from platform to platform but randomly choosing a platform so there isn't a memorable sequence. The teleport and the mob aren't an issue but the random platforms...no clue. The platforms are all in a fixed position and the boss should always appear on the same block on each individual platform. Any suggestions on how I could go about this?
There are more ways to do this. The first way is to just summon an invisible armor stand on each platform with a special tag and then use @e[tag=<special_tag>,limit=1,sort=random] when teleporting the boss to an armor stand. The second way is to use /spreadplayers and directly teleport the boss to a random block within a specified range (keep in mind that /spreadplayers will teleport the entity to the topmost block).
The first way is to just summon an invisible armor stand on each platform with a special tag and then use @e[tag=<special_tag>,limit=1,sort=random] when teleporting the boss to an armor stand.
You're first idea sounds like the winner. It's the perfect way to make sure the boss always ends up in the same spot on the platform. I'm fairly sure you're the main contributor of solutions to my issues on this map. I appreciate the brainstorm and you're help as usual. I'll make sure to throw in a thank you or easter egg in the map and drop you a link to check it out. I'm about 90% complete. Any preference on how you want to be mentioned? lol
Okay, I haven't attempted this yet because I have no idea where to start and hope someone could help me out with this idea. I have a boss fight in my map and the idea is the boss will appear on one of many platforms floating over lava. I want the boss mob to teleport from platform to platform but randomly choosing a platform so there isn't a memorable sequence. The teleport and the mob aren't an issue but the random platforms...no clue. The platforms are all in a fixed position and the boss should always appear on the same block on each individual platform. Any suggestions on how I could go about this?
There are more ways to do this. The first way is to just summon an invisible armor stand on each platform with a special tag and then use @e[tag=<special_tag>,limit=1,sort=random] when teleporting the boss to an armor stand. The second way is to use /spreadplayers and directly teleport the boss to a random block within a specified range (keep in mind that /spreadplayers will teleport the entity to the topmost block).
Command block engineer // Developer // #TeamTrees
You're first idea sounds like the winner. It's the perfect way to make sure the boss always ends up in the same spot on the platform. I'm fairly sure you're the main contributor of solutions to my issues on this map. I appreciate the brainstorm and you're help as usual. I'll make sure to throw in a thank you or easter egg in the map and drop you a link to check it out. I'm about 90% complete. Any preference on how you want to be mentioned? lol
A sign somewhere in the map would be nice haha. Good luck with finishing the map.
Command block engineer // Developer // #TeamTrees