

Here's my code: static void onStoneSmash(final PlayerInteractEvent.Methods inherited from interface . with special characters in their name to join, it can also cause issues with commands and plugins. A falling block is the entity form of a block that appears when a gravity-affected block loses its support. FallingBlock (Spigot-API 1.19.4-R0.1-SNAPSHOT API) declaration: package:, interface: FallingBlock JavaScript is disabled on your browser. (At least, that's what it looks like anyway.) perform-username-validation default: true description: If set to false, usernames will not be validated. It seems like the client makes it look like the block was placed for a tick or so before the server removes it. createBlockData()) // Send it flying using velocity block.

It's pretty much working, though I get a strange effect when I activate it.
#Falling blocks spigot code
PS: Don't forget to register the listener with this code in your onEnable: getServer ().getPluginManager (). I set negative Y to make it fall (and not x/z to make it keep at his block). The intended functionality is that when the player performs this action, they will expend a cobblestone and gain a rock, without placing down the cobblestone. For the Vector used as velocity, you should set the direction of the block. It can be used to calculate different damage from falling, or. You can use strings or barriers that line textures from non-falling blocks to the texture of sand or dry concrete, or you can place a non-falling block and.

#Falling blocks spigot mod
I'm just getting into Minecraft modding and I'm writing a simple mod where you can hold control and right-click with cobblestone on obsidian to get a "rock" item. 1 Answer Sorted by: 1 You can continuously summon new falling blocks so that the motion is constant, they will also not stutter. Entity falling distance is the distance the entity have fallen without reaching a block.
