This API allows you to easily create player skulls (heads) with custom textures.
This doesn't work reliably anymore. Mojang limited the amount of skin-uploads per user. As I don't have any more Minecraft accounts I could use to upload, it's not guaranteed to work properly.
A new, working client is available for the API. You can get it here and use this class to apply the textures.
Features
- Create skulls with any texture you want (uploaded to Imgur etc.)
- Apply the texture to items and blocks
Example
@EventHandler
public void onJoin(final PlayerJoinEvent e) {
Bukkit.getScheduler().runTaskLater(this, new Runnable() {//Delay to make sure the player is online
@Override
public void run() {
try {
CustomSkullAPI.createSkull("http://inventivegames.de/texture/head/name/BLUE.png", new SkullCallback() {//Just an example image
@Override
public void call(final SkullData data) {
Bukkit.getScheduler().runTask(CustomSkullPlugin.this, new Runnable() {//Run this synchronous
@Override
public void run() {
ItemStack skull = new ItemStack(Material.SKULL_ITEM, 1, (short) 3);
data.applyToItem(skull);
e.getPlayer().getInventory().addItem(skull);
e.getPlayer().getLocation().getBlock().setType(Material.SKULL);
Skull s = ((Skull) e.getPlayer().getLocation().getBlock().getState());
s.setSkullType(SkullType.PLAYER);
s.update();
data.applyToBlock(s);
}
});
}
});
} catch (MalformedURLException e1) {
e1.printStackTrace();
}
}
}, 20);
}
Links
This API uses my online skull API which requires real Minecraft accounts to upload the images.
Donations of Minecraft accounts or via Paypal are highly appreciated!
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta