Revert dig time in creative mode to 0.5
authorShadowNinja <noreply@gmail.com>
Mon, 4 Nov 2013 23:46:39 +0000 (18:46 -0500)
committerShadowNinja <noreply@gmail.com>
Mon, 4 Nov 2013 23:46:39 +0000 (18:46 -0500)
This made it impossible to punch things without breaking them in creative

mods/creative/init.lua

index c8f891a907910c7565c05fed9702d1ad6040bfa7..c06dc4930a23b917b00fa66fdaee62c63f143644 100644 (file)
@@ -122,7 +122,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
 end)
 
 if minetest.setting_getbool("creative_mode") then
-       
+       local digtime = 0.5
        minetest.register_item(":", {
                type = "none",
                wield_image = "wieldhand.png",
@@ -132,11 +132,11 @@ if minetest.setting_getbool("creative_mode") then
                        full_punch_interval = 0.5,
                        max_drop_level = 3,
                        groupcaps = {
-                               crumbly = {times={[1]=0.0, [2]=0.0, [3]=0.0}, uses=0, maxlevel=3},
-                               cracky = {times={[1]=0.0, [2]=0.0, [3]=0.0}, uses=0, maxlevel=3},
-                               snappy = {times={[1]=0.0, [2]=0.0, [3]=0.0}, uses=0, maxlevel=3},
-                               choppy = {times={[1]=0.0, [2]=0.0, [3]=0.0}, uses=0, maxlevel=3},
-                               oddly_breakable_by_hand = {times={[1]=0.0, [2]=0.0, [3]=0.0}, uses=0, maxlevel=3},
+                               crumbly = {times={[1]=digtime, [2]=digtime, [3]=digtime}, uses=0, maxlevel=3},
+                               cracky = {times={[1]=digtime, [2]=digtime, [3]=digtime}, uses=0, maxlevel=3},
+                               snappy = {times={[1]=digtime, [2]=digtime, [3]=digtime}, uses=0, maxlevel=3},
+                               choppy = {times={[1]=digtime, [2]=digtime, [3]=digtime}, uses=0, maxlevel=3},
+                               oddly_breakable_by_hand = {times={[1]=digtime, [2]=digtime, [3]=digtime}, uses=0, maxlevel=3},
                        },
                        damage_groups = {fleshy = 10},
                }