Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Posts

  • Joined

  • Last visited

Wirell's Achievements

Tree Puncher

Tree Puncher (2/8)



  1. 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 ?
  2. Thanks, i managed to do it.
  3. I want to spawn a living entity when an event is triggered at the location of this event, but i don't know any methods to spawn an entity. Tanks in advance.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.