]> git.localhorst.tv Git - blank-assets.git/commitdiff
assign gravity to gravity blocks
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 16 Nov 2015 14:33:09 +0000 (15:33 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 17 Nov 2015 10:08:04 +0000 (11:08 +0100)
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 = {