I only cancell the event. And it's visual bug. If you rejoin - the flower will be the pot.
Like this? if (e.getClickedBlock() instanceof FlowerPot) { This doesn't work. :(
No, I didn't forgot register and @EventHanlder. As I said I tried this code: @EventHandler public void onInteract(PlayerInteractEvent e) {...
Yes, I'm sure. I also tried to cancel all events of PlayerInteractEvent but I can interact with flower pots.
@EventHandler public void onInteract(PlayerInteractEvent e) { if (e.getClickedBlock() != null && e.getClickedBlock().getType() ==...
Hello everybody! I want to protect flower pot from taking flowers from it. I tried to use PlayerInteractEvent but it doesn't work. How can I...
If I change the type - it would be another particle. I need only this particle. Maybe there is an opportunity to change the color using packets?
Hello, I'm making a plugin for guns and I spawn a Particle at the bullet's location every tick. I use this code: new BukkitRunnable() {...
Wow, it was a problem in my resouce pack. Sorry for creating unnecessary thread.
Are there any alternatives? As I remember, plugin TimEnchanter can enchant everything.
Hello everybody. I added an enchantment to ItemStack: ItemStack temp = new ItemStack(Material.EMPTY_MAP, 1); ItemMeta meta = temp.getItemMeta();...
Solved. Sorry for creating thread.
Hello everybody. I'm making an online map with MC Overviewer and I didn't found any tutorials how to add text labels on a map. Here you can see...
Thank you very much. Solved.
@EventHandler public void onAttack(EntityDamageByEntityEvent e) { if (e.getDamager() instanceof Player) { Player attacker = (Player)...
I'm listenening to EntityDamageByEntityEvent. Then check if player has a tool in his hand and gets the victim and setting last damage cause to...
Hello! I'm making plugin that edits damage on tools. This my code: EntityDamageEvent dmgevent = new EntityDamageEvent(player,...
Oh, yeah! Thanks a lot. Solved.
Hello everybody. I'm trying to reduce durability of golden chest on player - but the durability increases! I have tried everything and I don't...
Thanks a lot. It's also interesting to use GlowAPI and change a color of glowing. Solved.
Separate names with a comma.