Modifying Block Properties

From Valkyrien Skies Wiki

To modify the weights of blocks you'll need to create a datapack. You can modify the weights of blocks already specified by Valkyrien Skies by using the priority fields in the below example. Higher values have higher priority, VS has a priority of 100, the example has a priority of 101 which should be fine for whatever you're doing.

The folder structure of your datapack will look like this:

  • (datapack name)
    • pack.mcmeta
    • pack.png (Optional)
    • data
      • (datapack namespace)
        • vs_mass
          • (mod namespace.json)

Do note that the mod namespace and datapack namespace can't contain captials or spaces, use underscores to separate words.

The format of your json file will go like this:

 [
   {
     "block": "block name",
     "mass": 0.0,
     "friction": 0.0,
     "elasticity": 0.0,
     "priority": 101
   },
   {
     "block": "block name",
     "mass": 0.0,
     "friction": 0.0,
     "elasticity": 0.0,
     "priority": 101
   },
   {
     "block": "block name",
     "mass": 0.0,
     "friction": 0.0,
     "elasticity": 0.0,
     "priority": 101
   }
 ]

You can get an example datapack here with all the values filled out, just make sure to replace the names when you make your own: example datapack download

To apply changes, you'll need to restart minecraft.