It would be great if there were a command called “/overlay” to add overlays to a player's view. Here's my concept for the command arguments:
Overlay Command
/overlay add/set <ID:id> <Red:double> <Green:double> <Blue:double> <Opacity:double> <Blend:"normal","add","subtract","multiply"> <FadeIn:double> <FadeOut:double> <OverHUD:bool>
/overlay remove <ID:id>
/overlay bring/take <Target:target> <ID:id>
Overlays can't be used at once so the one that's been added the latest to a player will take priority.
Overlays can be predefined in addons or datapacks and can either have a color or overlay a texture. They can't be removed and must(?) use a non-minecraft namespace for the ID.
- Add: Adds an overlay with an ID.
• ID: The overlay's namespace ID. Command overlays are saved with the "minecraft:" namespace.
• Red, Green, Blue, Opacity: Doubles from 0 to 1 for red, green, blue, and opacity.
• Blend: Controls the blending mode of the overlay.
• FadeIn: Controls the time the overlay takes to fade in when a target first has it.
• FadeOut: Controls the time the overlay takes to fade out when a target loses it or when the overlay is removed.
• OverHUD: Whether the overlay goes over the main HUD elements, like the health bar, hunger bar, and such.
- Set: Changes things about an existing overlay.
- Remove: Removes an existing overlay.
- Bring: Adds an overlay to a person, using its ID.
• Target: A player.
- Take: Removes an overlay from a person, using its ID.
Please sign in to leave a comment.
0 Comments