Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void Leftclick(PlayerInteractEvent e) {
- Player p = e.getPlayer();
- //Make a itemstack Stick
- if(e.getAction() == Action.LEFT_CLICK_AIR || e.getAction() == Action.LEFT_CLICK_BLOCK) {
- if(e.getItem().equals(Stick)) {
- p.launchProjectile(Snowball.class);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment