]> git.localhorst.tv Git - blank-assets.git/blobdiff - data/default.types
assign gravity to gravity blocks
[blank-assets.git] / data / default.types
index 7bda2f5e82601627ac9c08d38276fd58ccde1b8b..b0b264b884319911d126afcf3dbd5a6786f1b6d3 100644 (file)
@@ -224,6 +224,7 @@ grav_spherical = {
        place_sound = "thump";
        remove_sound = "plop";
        shape = uniform_block;
+       gravity = Radial(15);
 };
 grav_directed = {
        textures = [ "gravity-directed", "gravity-neutral" ];
@@ -231,6 +232,8 @@ grav_directed = {
        place_sound = "thump";
        remove_sound = "plop";
        shape = pipe_block;
+       // 15x8x15 box with 10 units gravity downwards
+       gravity = CuboidField([ 0, -10, 0 ], [ -7.5, -0.5, -7.5 ], [ 7.5, 7.5, 7.5 ]);
 };
 
 light = {