diff options
author | DonBatman <don@serfdon.com> | 2015-11-16 20:32:01 -0800 |
---|---|---|
committer | DonBatman <don@serfdon.com> | 2015-11-16 20:32:01 -0800 |
commit | 9fbf8a87f4ff9f96215de41c08db1fc0634b252e (patch) | |
tree | 47b69a499fb1ed9165400e89228703110a249e6d | |
parent | ac479f81aa9440c9240e16501e5bfcb74a4ee271 (diff) |
made blocks not pointable
-rw-r--r-- | mario/blocks.lua | 8 | ||||
-rw-r--r-- | mario/pipes.lua | 3 | ||||
-rw-r--r-- | pacmine/blocks.lua | 3 |
3 files changed, 14 insertions, 0 deletions
diff --git a/mario/blocks.lua b/mario/blocks.lua index 2dbb6c7..dda207e 100644 --- a/mario/blocks.lua +++ b/mario/blocks.lua @@ -5,6 +5,7 @@ minetest.register_node("mario:platform",{ }, drawtype = "normal", paramtype = "light", + pointable = false, groups = {cracky = 1,not_in_creative_inventory=1}, }) minetest.register_node("mario:grey",{ @@ -15,6 +16,7 @@ minetest.register_node("mario:grey",{ drawtype = "normal", paramtype = "light", light_source = 14, + pointable = false, groups = {cracky = 1,not_in_creative_inventory=1}, }) minetest.register_node("mario:border",{ @@ -24,6 +26,7 @@ minetest.register_node("mario:border",{ }, drawtype = "normal", paramtype = "light", + pointable = false, groups = {cracky = 1,not_in_creative_inventory=1}, }) minetest.register_node("mario:brick",{ @@ -33,6 +36,7 @@ minetest.register_node("mario:brick",{ }, drawtype = "normal", paramtype = "light", + pointable = false, groups = {cracky = 1,not_in_creative_inventory=1}, }) minetest.register_node("mario:glass", { @@ -40,6 +44,7 @@ minetest.register_node("mario:glass", { tiles = {"mario_grey.png","mario_glass.png"}, drawtype = "glasslike_framed", paramtype = "light", + pointable = false, groups = {cracky = 1,not_in_creative_inventory=1}, }) minetest.register_node("mario:coin", { @@ -48,6 +53,7 @@ minetest.register_node("mario:coin", { drawtype = "plantlike", paramtype = "light", walkable = false, + pointable = false, groups = {cracky = 1,not_in_creative_inventory=1}, on_destruct = function(pos) minetest.sound_play("mario-coin", {pos = pos,max_hear_distance = 40,gain = 10.0,}) @@ -85,6 +91,7 @@ minetest.register_node("mario:mushroom",{ drawtype = "nodebox", paramtype = "light", walkable = false, + pointable = false, groups = {cracky = 1,not_in_creative_inventory=1}, node_box = nbox, on_timer = function(pos, dtime) @@ -109,6 +116,7 @@ minetest.register_node("mario:mushroom_green",{ drawtype = "nodebox", paramtype = "light", walkable = false, + pointable = false, groups = {cracky = 1,not_in_creative_inventory=1}, node_box = nbox, on_timer = function(pos, dtime) diff --git a/mario/pipes.lua b/mario/pipes.lua index ab42d28..26e2a61 100644 --- a/mario/pipes.lua +++ b/mario/pipes.lua @@ -23,6 +23,7 @@ minetest.register_node("mario:pipe",{ drawtype = "nodebox", paramtype = "light", paramtype2 = "facedir", + pointable = false, groups = {cracky = 1,not_in_creative_inventory=1}, node_box = pipe_box, on_place = minetest.rotate_node, @@ -42,6 +43,7 @@ minetest.register_node("mario:pipe_elbow",{ drawtype = "nodebox", paramtype = "light", paramtype2 = "facedir", + pointable = false, groups = {cracky = 1,not_in_creative_inventory=1}, node_box = pipe_elbow_box, on_place = minetest.rotate_node, @@ -60,6 +62,7 @@ minetest.register_node("mario:pipe_end",{ drawtype = "nodebox", paramtype = "light", paramtype2 = "facedir", + pointable = false, groups = {cracky = 1,not_in_creative_inventory=1}, node_box = pipe_end_box, on_place = minetest.rotate_node, diff --git a/pacmine/blocks.lua b/pacmine/blocks.lua index 2773142..262901b 100644 --- a/pacmine/blocks.lua +++ b/pacmine/blocks.lua @@ -39,6 +39,7 @@ minetest.register_node("pacmine:"..itm, { paramtype = "light", paramtype2 = "facedir", light_source = lit, + pointable = false, walkable = tf, groups = {disable_jump = 1, immortal=1, not_in_creative_inventory = 1}, selection_box = sbox, @@ -53,6 +54,7 @@ minetest.register_node("pacmine:glass", { drawtype = "glasslike", paramtype = "light", paramtype2 = "facedir", + pointable = false, groups = {immortal=1,not_in_creative_inventory = 1}, selection_box = cbox, collision_box = cbox, @@ -65,6 +67,7 @@ minetest.register_node("pacmine:glassw", { paramtype = "light", paramtype2 = "facedir", walkable = false, + pointable = false, groups = {immortal=1,not_in_creative_inventory = 1}, selection_box = cbox, colision_box = cbox, |