From 9fbf8a87f4ff9f96215de41c08db1fc0634b252e Mon Sep 17 00:00:00 2001 From: DonBatman Date: Mon, 16 Nov 2015 20:32:01 -0800 Subject: made blocks not pointable --- mario/blocks.lua | 8 ++++++++ mario/pipes.lua | 3 +++ pacmine/blocks.lua | 3 +++ 3 files changed, 14 insertions(+) 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, -- cgit v1.2.3