HalfHeartBedPlugin

        This plugin makes sleeping in beds much more fun! When you wake up from a bed, it creates a five meter by five meter rectangular prism of air extending as far down the y axis as possible without you dying from fall damage.

        This is done by using the playerBedLeave event, which then gets the block the bed is at, then, it calculates how much blocks will take you to half a heart. In addition, the plug-in takes into account how much damage the player has already taken, and calculates using a special equation that figures out how deep the pit must be.

        In the code, it procedurally generates the column of block ID 0 using a triple nested for loop. The first for loop iterates 5 times over the X axis, the second over the Z axis, and then the final does the Y axis.

 


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    391391
  • Created
    Jun 22, 2020
  • Last Released File
    Jun 22, 2020
  • Total Downloads
    170
  • License

Categories

Members

Recent Files

Bukkit