Hi, I was wondering if exists a way to spawn a blue wither skull entity by player.launchProjectile(). I searched on the documentations, but I haven't found anything.
luc99a Sorry for the wait, it took me a while to research and debug this: Code: ((WitherSkull) player.launchProjectile(WitherSkull.class)).setCharged(true); You need to have a 'recent' build of Bukkit, I had to get 1.7.5 to use the 'setCharged' method.
Thank you it works. I wrote the code on two lines anyway: Code:java WitherSkull ws = (WitherSkull)p.launchProjectile(WitherSkull.class);ws.setCharged(true);
I'm curious. In vanilla Minecraft, how is the WitherSkull's charge state stored? I assume it's in a DataTag (like the Creeper's charged state). But what is the name of the DataTag variable that holds its charged state info? I'm curious, because I don't have Bukkit, and am hoping that some of the Bukkit devs will be able to help me here. I plan on creating a charged WitherSkull using the "/summon" command.
Videogamer555 Bukkit isn't Vanilla. But I would assume the charge tag for creeper is the same for a wither skull.
It's not. I've already tried that, and it doesn't work. It doesn't blow up Obsidian (which is the best test to see if a Wither Skull is the charged version).