I can't spawn snowball on the block

Discussion in 'Plugin Development' started by Gnevilkoko, Jun 18, 2022.

  1. Offline


    I have error, when i trying to spawn ItemStack with snowball. What can i do to spawn it?

    Server version - spigot 1.12.2

    Here my code(b - block):
    Location loc = b.getLocation();
    loc.add(0, 1, 0);
    World w = b.getWorld();
    w.dropItem(loc, new ItemStack(Material.SNOWBALL));
  2. Offline

    timtower Administrator Administrator Moderator

Share This Page