Skript Version (do not put latest): Skript 2.3 beta 2
Skript Author: Bensku
Minecraft Version: 1.13.2
What I want to do:
My end goal is to make a top 10 wealthiest players head leaderboard, I have enough experience to do everything except actually placing the player heads in the world, as far as I know vanilla skript cannot do this in 1.13.2 but if I am wrong please let me know, the next option is addons, from what I have searched no addon can do this and either way if it is possible with skript-mirror I would prefer that over depending on various different addons that may lose support over time (I know that means fully depending on skript-mirror but whatever I'll put my chips on that)
What I have attempted:
I know i'm gonna catch shit for the way I import the classes as local variables but thats just how I do it when I'm testing, my results are that I will be given the player head with the texture if they player has previously joined the server and it will place on the wall without the skin texture, so I suppose I have two questions:
1) How can I get the player head with texture if the player has never joined the server?
2) How can I get it to place on the wall with the texture?
I have tried alot of things so this is kind of my last ditch effort to reach out for help because I couldn't figure it out on my own, there are many examples on how to do this with java but with versions before 1.13, it changed a bit on 1.13 and idk if that is affecting me or what it is that I am doing wrong, thanks for the help in advance
Skript Author: Bensku
Minecraft Version: 1.13.2
What I want to do:
My end goal is to make a top 10 wealthiest players head leaderboard, I have enough experience to do everything except actually placing the player heads in the world, as far as I know vanilla skript cannot do this in 1.13.2 but if I am wrong please let me know, the next option is addons, from what I have searched no addon can do this and either way if it is possible with skript-mirror I would prefer that over depending on various different addons that may lose support over time (I know that means fully depending on skript-mirror but whatever I'll put my chips on that)
What I have attempted:
code_language.skript:
command /headtest:
trigger:
set {_Material} to java class "org.bukkit.Material"
set {_ItemStack} to java class "org.bukkit.inventory.ItemStack"
set {_SkullType} to java class "org.bukkit.SkullType"
set {_Bukkit} to the java class "org.bukkit.Bukkit"
set {_UUID} to the java class "java.util.UUID"
set {_skull} to new {_ItemStack}({_Material}.PLAYER_HEAD!)
set {_meta} to {_skull}.getItemMeta()
{_meta}.setOwningPlayer({_Bukkit}.getOfflinePlayer({_UUID}.fromString("69d6eeb5-1458-4a4e-8616-2e3c3b0638aa")))
{_skull}.setItemMeta({_meta})
give player {_skull}
set block at location -507, 65, -215 in world "world" to {_skull}
1) How can I get the player head with texture if the player has never joined the server?
2) How can I get it to place on the wall with the texture?
I have tried alot of things so this is kind of my last ditch effort to reach out for help because I couldn't figure it out on my own, there are many examples on how to do this with java but with versions before 1.13, it changed a bit on 1.13 and idk if that is affecting me or what it is that I am doing wrong, thanks for the help in advance