Posted July 3, 20223 yr I want to create an explosion when a player fall where the player land. @SubscribeEvent public void onPlayerFall(LivingFallEvent event) { if(!(event.getEntity().level.isClientSide()) && event.getEntityLiving() instanceof Player) { Player player = (Player) event.getEntityLiving(); float distance = event.getDistance(); if(distance >= 3) { // Explosion } } } Does someone have any idea how to create an explosion ?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.