Wanna get textured player heads without using SkNBeet addon?
No problem! You can do so using this expression, that i've made up for myself!
Examples:
Requires:
No problem! You can do so using this expression, that i've made up for myself!
Code:
import:
org.bukkit.Material
org.bukkit.inventory.ItemStack
org.bukkit.SkullType
com.destroystokyo.paper.profile.ProfileProperty
java.util.UUID
org.bukkit.Bukkit
expression [%integer%] textured player head[s] with value %string%:
return type: Item
get:
if expression-1 is set:
set {_skull} to new ItemStack(Material.SKULL_ITEM and expression-1 and SkullType.PLAYER.ordinal())
else:
set {_skull} to new ItemStack(Material.SKULL_ITEM and 1 and SkullType.PLAYER.ordinal())
set {_skullmeta} to {_skull}.getItemMeta()
set {_UUID} to UUID.randomUUID()
set {_playerprofile} to Bukkit.getServer().createProfile({_UUID})
{_playerprofile}.setProperty(new ProfileProperty("textures" and "%expression-2%"))
{_skullmeta}.setPlayerProfile({_playerprofile})
{_skull}.setItemMeta({_skullmeta})
return {_skull}
Examples:
Code:
command /example:
trigger:
give 5 textured player heads with value "texture value of player head." to event-player
set slot 0 of expression-1's current inventory to textured player head with value "texture value of player head." named "Your display name of item" with lore "Your lore"
Requires:
- Skript-mirror
- PaperSpigot (You could do this in spigot too, but it would require some NMS stuff, which im too lazy to do, because i'm always using paper.)