I am basicly asking for an action bar api for skript, I found a good example here https://github.com/ConnorLinfoot/ActionBarAPI
skellett has it, but I'd like to see this in vanilla
Makes sense. Vanilla MC will have a command to send action bars to the player in 1.13 so hopefully Spigot also gets better support for it.
vanilla minecraft can already do this in 1.12 using minecraft:title <player> actionbar <raw json yada yada>
@JustDylan23 i would really like to see this in vanilla skript too. unfortunately this seems to have gotten lowest priority, so i made us this little function that will do until then:
command /actionbartestyo:
trigger:
sendActionBarMessage(command sender, "&cThis &ais &e&lA! &ftest &9:)")
function sendActionBarMessage(player: player, text: text):
console command "minecraft:execute %{_player}% ~ ~ ~ minecraft:title %{_player}% actionbar {""text"":""%colored {_text}%""}"
Most enhancements are labelled low(est) priority just because they are much less important than fixing the bugs Skript currently has. Pretty much nothing besides bugs ever gets a priority higher than low, Anyways, about this issue: action bars aren't supported because spigot didn't support action bars until some recent version (1.11 or maybe 1.10) so if skript added support we would need to do one of three things:
use nms to backport the features to older versions. this is basically a non-option because nms code is not allowed in skript
leave it only compatible with versions the api exists on. this is the most likely option but is annoying for people below that version especially since this fork aims to support 1.9+.
Who cares about 1.9-1.11, nobody should use them.
It is acceptable for Skript not to support action bars on Spigot versions that do not support them. If people cared enough, they could backport those APIs; no idea about this one, but I've seen at least one 1.8 Spigot fork with a lot of improvements over 'vanilla' Spigot of that time.
Most helpful comment
Who cares about 1.9-1.11, nobody should use them.