@MrDaniel ? I'm not the author of this post, was talking about a potential idea for his problem that could be better for him, that was only a...
public void OnPlayerTeleport(PlayerTeleportEvent event) { // If the event is called by an ender pearl if(event.getCause() ==...
Hey ! Wanted to know if it was possible to bypass the book text limit in a page. I know that the software NBTEdit can do it, so maybe that's...
Oh thanks, it's working, thinked it was better to take an integer cause the block will be at the exact coordinates ^^, thanks for your answer :D
Hello ! I have a problem with the TNTPRIMED, when I spawn the TNT, it is between several blocks, while the position is exact and is an integer(for...
@knokko Yes so it takes a lot of processor cycles cause 1 condition everytime someone left click with a stick, that gonna be insane ^^ Even if...
@knokko Yeah i'll try it, but, removing cube from the hashmap wont remove events registered in the class no ? So these events will get called...
@knokko Sure but it's getting loud for just a falling cube that can be shoot a lot of times :/
That could work by checking player at X radius from the event location, but that could be better if we could use an arrow, cause arrow got...
@knokko The problem is that I need an event when the arrow hit something or someone @EventHandler public void ProjectileHit(ProjectileHitEvent...
@knokko // Creating arrow Arrow arrow = player.launchProjectile(Arrow.class); // Spawning the block FallingBlock block =...
@knokko On shoot : 0.05364204967571628,0.2870995704451856,2.9591602199230653 After block :...
@knokko While shooting up : With 0.001 second delay on the bukkit task runnable : On shoot :...
@Escad @knokko Anyway, with or without the deprecated method, with or without block that spawn after the arrow, it come back to the player, I'm...
@knokko I added 10 blocks Y to block location, but the arrow still comming back cause the block teleport on arrow (arrows.addPassenger(block)) If...
@knokko (my server's version is 1.13) Block velocity's line code is useless, with or without, it does the same thing When i don't spawn the...
@knokko Okay, i just removed the line wich is removing the block and the arrow when they hit ground, and i just saw that when i'm looking up, the...
Player player; if (player.getInventory().containsAtLeast(/* ItemStack */, /* How much he needs */)) { // do something }
You should add this line to prevent your event to be called twice, maybe that should help if (event.getHand().equals(EquipmentSlot.HAND)) { }...
Thanks for your answer, but setRemoveWhenFarAway seems only for livingentity :/ I tried block.setGravity(false) too but it wont work The problem...
Separate names with a comma.