Solved Animated itemstack

Discussion in 'Spigot Plugin Development' started by Nico12, Feb 2, 2020.

  1. Hello, I need to create an animation of itemstack, I want to create a kind of Material.ValueOf () in an item stack and that fence changing every certain amount of ticks, could you help me?
  2. what kind of fence do you want to change?
    Anyhow: Schedule Task that triggers every certain amount of ticks -> change Material of itemStack -> Success
  3. I already solved it, I simply did:

    List <String> list = ic.plugin.getConfig (). GetStringList ("Menu.Items.1.ID2");

    Random random = new Random ();
    int i = random.nextInt (list.size ());
    ItemStack stack = new ItemStack (Material.valueOf (list.get (i)));