Block Gravity

Toggles the gravity of a block

Usage: /blockgravity <World> <Block Location> [<Gravity Enabled>] [<Radius>]

  • The World of the Block

  • The Coordinates of the Block

  • Boolean, determines if the block will have gravity

  • Radius of how many blocks to affect

This command stores data inside the block using CustomBlockData, which stores it in the level folder. A listener listens for the EntityChangeBlockEvent and cancels it if the block contains our stored data.

Last updated