Skip to content

Instantly share code, notes, and snippets.

@MacaylaMarvelous81
Created April 5, 2026 19:40
Show Gist options
  • Select an option

  • Save MacaylaMarvelous81/6ac48f9383aa1382004597f95081b80c to your computer and use it in GitHub Desktop.

Select an option

Save MacaylaMarvelous81/6ac48f9383aa1382004597f95081b80c to your computer and use it in GitHub Desktop.
ct_custom whisper
$execute if score @s id matches 1 as $(targets) if score @s id matches 15 run tag @s add whisper_target
$execute if score @s id matches 1 as $(targets) if score @s id matches 2 run tag @s add whisper_target
$execute if score @s id matches 2 as $(targets) if score @s id matches 1 run tag @s add whisper_target
$execute if score @s id matches 2 as $(targets) if score @s id matches 3 run tag @s add whisper_target
$execute if score @s id matches 3 as $(targets) if score @s id matches 2 run tag @s add whisper_target
$execute if score @s id matches 3 as $(targets) if score @s id matches 4 run tag @s add whisper_target
$execute if score @s id matches 4 as $(targets) if score @s id matches 3 run tag @s add whisper_target
$execute if score @s id matches 4 as $(targets) if score @s id matches 5 run tag @s add whisper_target
$execute if score @s id matches 5 as $(targets) if score @s id matches 4 run tag @s add whisper_target
$execute if score @s id matches 5 as $(targets) if score @s id matches 6 run tag @s add whisper_target
$execute if score @s id matches 6 as $(targets) if score @s id matches 5 run tag @s add whisper_target
$execute if score @s id matches 6 as $(targets) if score @s id matches 7 run tag @s add whisper_target
$execute if score @s id matches 7 as $(targets) if score @s id matches 6 run tag @s add whisper_target
$execute if score @s id matches 7 as $(targets) if score @s id matches 8 run tag @s add whisper_target
$execute if score @s id matches 8 as $(targets) if score @s id matches 7 run tag @s add whisper_target
$execute if score @s id matches 8 as $(targets) if score @s id matches 9 run tag @s add whisper_target
$execute if score @s id matches 9 as $(targets) if score @s id matches 8 run tag @s add whisper_target
$execute if score @s id matches 9 as $(targets) if score @s id matches 10 run tag @s add whisper_target
$execute if score @s id matches 10 as $(targets) if score @s id matches 9 run tag @s add whisper_target
$execute if score @s id matches 10 as $(targets) if score @s id matches 11 run tag @s add whisper_target
$execute if score @s id matches 11 as $(targets) if score @s id matches 10 run tag @s add whisper_target
$execute if score @s id matches 11 as $(targets) if score @s id matches 12 run tag @s add whisper_target
$execute if score @s id matches 12 as $(targets) if score @s id matches 11 run tag @s add whisper_target
$execute if score @s id matches 12 as $(targets) if score @s id matches 13 run tag @s add whisper_target
$execute if score @s id matches 13 as $(targets) if score @s id matches 12 run tag @s add whisper_target
$execute if score @s id matches 13 as $(targets) if score @s id matches 14 run tag @s add whisper_target
$execute if score @s id matches 14 as $(targets) if score @s id matches 13 run tag @s add whisper_target
$execute if score @s id matches 14 as $(targets) if score @s id matches 15 run tag @s add whisper_target
$execute if score @s id matches 15 as $(targets) if score @s id matches 14 run tag @s add whisper_target
$execute if score @s id matches 15 as $(targets) if score @s id matches 1 run tag @s add whisper_target
$execute as $(targets) if entity @s[tag=storyteller] run tag @s add whisper_target
$execute if entity @s[tag=storyteller] run tag $(targets) add whisper_target
execute if entity @a[tag=whisper_target] run tellraw @a [{"selector":"@s"},{"text":" is whispering to ","color":"#d495d4"},{"selector":"@a[tag=whisper_target]"}]
$execute if entity @a[tag=whisper_target] run tellraw @s [{"text":"You whisper to ","color":"#0fb265"},{"selector":"@a[tag=whisper_target]"},{"text":": $(message)","color":"#0fb265"}]
$execute if entity @a[tag=whisper_target] run tellraw @a[tag=whisper_target] [{"selector":"@s"},{"text":" whispers to you: $(message)","color":"#0fb265"}]
execute unless entity @a[tag=whisper_target] run tellraw @s {"text":"You may only whisper to the Storyteller and your neighbors.","color":"red"}
tag @a remove whisper_target
- If there are less than 15 players, neighbors may not be able to whisper (ie. players 6 and 1 in a 6 player game, who are neighbors)
[
{
"id": "msg",
"arguments": [
{
"id": "targets",
"type": "minecraft:entity players",
"arguments": [
{
"id": "message",
"type": "minecraft:message",
"executes": [
"function ct_custom:cmd/msg/attempt {targets:\"${targets}\",message:\"${message}\"}"
]
}
]
}
]
},
{
"id": "tell",
"redirect": "msg"
},
{
"id": "w",
"redirect": "msg"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment