1. Wiki
  2. /Blocks
  3. /minecraft:friction

minecraft:friction

Don't want to write this by hand? GodCraft sets minecraft:friction for you with a switch.Get GodCraft

Overview

minecraft:friction is a block component: it goes in the components object of a custom block. Sets how slippery the block is to walk on, from 0.0 to 0.9. Higher numbers give more grip and slow movement more, lower numbers make it more slippery.

Example

Inside the components object of BP/blocks/<name>.json (values are the defaults or placeholders):

BP/blocks/<name>.json
{
  "minecraft:friction": {}
}

Blocks: Behavior pack

We use cookies to improve your experience and analyse site traffic. Learn more