/u/Thezachguy
Guest
Member
@ EventHandler
public void PolaratiteAbility2(PlayerInteractEvent e) {
if (e.hasItem()) {
Player p = e.getPlayer();
if (Objects.requireNonNull(Objects.requireNonNull(e.getItem()).getItemMeta()).getDisplayName().equals(ChatColor.RED + "+- Polaratite -+")) {
ItemStack dummyitem = new ItemStack(Material.AMETHYST_SHARD);
ItemMeta dummyitemMeta = dummyitem.getItemMeta();
assert dummyitemMeta != null;
dummyitemMeta.setCustomModelData(1);
ArmorStand projectile = p.getWorld().spawn(p.getLocation(), ArmorStand.class);
projectile.setSmall(true);
projectile.setVisible(false);
projectile.setHelmet(dummyitem);
projectile.setGravity(false);
projectile.setRemoveWhenFarAway(true);
projectile.setMarker(true);
projectile.setRotation(p.getLocation().getYaw(), p.getLocation().getPitch());
Location loc = projectile.getLocation();
Vector dir = loc.getDirection();
dir = dir.mulitply(1);
dir = dir.normalize();
Location newLocation = loc.add(dir);
projectile.teleport( newLocation );
}
}
}
I have a grave feeling this will not work, but im close. I want to make an armorstand that faces the direction of the player (the player used an item) and teleports forwards, dealing damage to anything it touches. Plz fix my code lmao.
submitted by /u/Thezachguy
[link] [comments]
Continue reading...
free plugins
minecraft paid for free
spigotmc
SpigotMC
free minecraft paid plugins
free minecraft plugins
aac free
ewg free
Minecraft Premium Plugins
ewg free download
litebans free
epicworldgenerator free
free schematics
leaked schematics minecraft
schematics
schematics leaked
schematics free
minecraft schematics free
paid minecraft schematics free
paid minecraft schematics for free
free cracked plugins
free cracked minecraft plugins
plugins
featherboard download
featherboard plugin download
antiaura download
minecraft plugins
xenforo leaked
xenforo for free
xenforo addons
public void PolaratiteAbility2(PlayerInteractEvent e) {
if (e.hasItem()) {
Player p = e.getPlayer();
if (Objects.requireNonNull(Objects.requireNonNull(e.getItem()).getItemMeta()).getDisplayName().equals(ChatColor.RED + "+- Polaratite -+")) {
ItemStack dummyitem = new ItemStack(Material.AMETHYST_SHARD);
ItemMeta dummyitemMeta = dummyitem.getItemMeta();
assert dummyitemMeta != null;
dummyitemMeta.setCustomModelData(1);
ArmorStand projectile = p.getWorld().spawn(p.getLocation(), ArmorStand.class);
projectile.setSmall(true);
projectile.setVisible(false);
projectile.setHelmet(dummyitem);
projectile.setGravity(false);
projectile.setRemoveWhenFarAway(true);
projectile.setMarker(true);
projectile.setRotation(p.getLocation().getYaw(), p.getLocation().getPitch());
Location loc = projectile.getLocation();
Vector dir = loc.getDirection();
dir = dir.mulitply(1);
dir = dir.normalize();
Location newLocation = loc.add(dir);
projectile.teleport( newLocation );
}
}
}
I have a grave feeling this will not work, but im close. I want to make an armorstand that faces the direction of the player (the player used an item) and teleports forwards, dealing damage to anything it touches. Plz fix my code lmao.
submitted by /u/Thezachguy
[link] [comments]
Continue reading...
free plugins
minecraft paid for free
spigotmc
SpigotMC
free minecraft paid plugins
free minecraft plugins
aac free
ewg free
Minecraft Premium Plugins
ewg free download
litebans free
epicworldgenerator free
free schematics
leaked schematics minecraft
schematics
schematics leaked
schematics free
minecraft schematics free
paid minecraft schematics free
paid minecraft schematics for free
free cracked plugins
free cracked minecraft plugins
plugins
featherboard download
featherboard plugin download
antiaura download
minecraft plugins
xenforo leaked
xenforo for free
xenforo addons