All I want is for a plugin that can throw a clayball. I have tried to code it but I had problems with it. It didn't work , As you can see What I want in the plugin -Able to throw a Clayball - When a player hits u multiple times, you drop the clayball -Its for basketball -------------------------------------------------------------------------------------------------------------------------- CODE Code:java import java.awt.Desktop.Action; import net.minecraft.server.v1_7_R1.Item;import net.minecraft.server.v1_7_R1.ItemStack;import net.minecraft.server.v1_7_R1.World; import org.bukkit.Material;import org.bukkit.entity.Entity;import org.bukkit.entity.Player;import org.bukkit.event.EventHandler;import org.bukkit.event.player.PlayerInteractEvent;import org.bukkit.plugin.java.JavaPluginLoader;import org.bukkit.scheduler.BukkitRunnable; public class Main extends JavaPluginLoader @EventHandlerpublic void clayballBasketball(PlayerInteractEvent event) { Player player = event.getPlayer(); org.bukkit.World world = player.getWorld(); if (player.getItemInHand().getType() == Material.CLAY_BALL) { if (event.getAction() == Action.LEFT_CLICK_AIR || event.getAction() == Action.RIGHT_CLICK_AIR) { final Item basketball = world.dropItem(player.getEyeLocation(), new ItemStack()); Entity clayball; clayball.setVelocity(player.getEyeLocation().getDirection()); new BukkitRunnable(){package me.AceAwesome13.Basketball; public void run(){ ); } }.runTaskLater(plugin, 100L); } } }} -------------------------------------------------------------------------------------------------------------------------- Thank you for anyone who view this post
Since this is in the "Plugin Requests", I'm assuming that he/she's requesting for someone to take on the task of programming this as his/her attempt was unsuccessful... but yes, you are right Necrodoom, it is very vague :/
RishkDev If I used a snowball, players can't not pick it up and it would not go into a hopper if you threw it [Edit] Unless if you are telling me to use the snowball instead of the clayball Necrodoom Sorry I didn't made it clear. I am requesting a plugin, but you are more than welcome to help me fix it