I thought I was going to be able to animate an item display in spigot because I already knew how item displays worked through commands and also the basics in spigot. But when I tried adding any type of animation to it, it just didn't work... Why?
This is my code rn: (it's really bad code, but it was just a proof of concept)
ItemDisplay mjolnirThrownItemDisplay = (ItemDisplay) player.getWorld().spawnEntity(player.getLocation(), EntityType.ITEM_DISPLAY);
mjolnirThrownItemDisplay.setItemStack(new ItemStack(Material.NETHERITE_AXE));
mjolnirThrownItemDisplay.setInterpolationDuration(5);
mjolnirThrownItemDisplay.setInterpolationDelay(-1);
Transformation transformation = mjolnirThrownItemDisplay.getTransformation();
if (targetBlock != null) {
transformation.getScale()
.set(new Vector3f(2.5F));
transformation.getTranslation()
.set(0F,0F,-3F);
mjolnirThrownItemDisplay.setTransformation(transformation);
}```