Hello everyone, for the plugin I need to install 1-2 blocks using for example a dye. Example: I right-clicked on a stone with a dye in my hand and blocks 1 were placed on top of another in that place. How to do it?
Hello, just an idea. I need to say I can get the coordinates of the place on which I clicked the dye and on which blocks, if the block is a stone, then set a block of dirt there for example and a torch above it.
Thank you Sorry, I understand that stupid questions, but how to check which mouse button a person pressed? And forgive me, I don’t know how to use it could you please send me a resource where they explain in detail? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Hi I need help with block detection, I'll show you right now: @EventHandler public void PlayerSetBake(PlayerInteractEvent e) { int id = e.getBlock().getType().getId(); int blockdata = e.getBlock().getData(); And so .. With this event, it is not possible to detect a block. But I need to get id and blockdata to use in my code. How can I do this?