diff options
author | DonBatman <serfdon@gmail.com> | 2015-11-12 16:59:36 -0800 |
---|---|---|
committer | DonBatman <serfdon@gmail.com> | 2015-11-12 16:59:36 -0800 |
commit | ac479f81aa9440c9240e16501e5bfcb74a4ee271 (patch) | |
tree | c52690c1b8eedd39c7e605643e06914899113f49 | |
parent | 881e4c1e00e66d54bcf318dd6b4b43d80580fa55 (diff) |
removed items from creative inventory
-rw-r--r-- | mario/blocks.lua | 16 | ||||
-rw-r--r-- | mario/init.lua | 6 | ||||
-rw-r--r-- | mario/pipes.lua | 6 | ||||
-rw-r--r-- | mario/portal.lua | 6 | ||||
-rw-r--r-- | pacmine/fruit.lua | 2 |
5 files changed, 18 insertions, 18 deletions
diff --git a/mario/blocks.lua b/mario/blocks.lua index 66829e2..2dbb6c7 100644 --- a/mario/blocks.lua +++ b/mario/blocks.lua @@ -5,7 +5,7 @@ minetest.register_node("mario:platform",{ }, drawtype = "normal", paramtype = "light", - groups = {cracky = 3}, + groups = {cracky = 1,not_in_creative_inventory=1}, }) minetest.register_node("mario:grey",{ description = "Grey", @@ -15,7 +15,7 @@ minetest.register_node("mario:grey",{ drawtype = "normal", paramtype = "light", light_source = 14, - groups = {cracky = 3}, + groups = {cracky = 1,not_in_creative_inventory=1}, }) minetest.register_node("mario:border",{ description = "Border", @@ -24,7 +24,7 @@ minetest.register_node("mario:border",{ }, drawtype = "normal", paramtype = "light", - groups = {cracky = 3}, + groups = {cracky = 1,not_in_creative_inventory=1}, }) minetest.register_node("mario:brick",{ description = "Brick", @@ -33,14 +33,14 @@ minetest.register_node("mario:brick",{ }, drawtype = "normal", paramtype = "light", - groups = {cracky = 3}, + groups = {cracky = 1,not_in_creative_inventory=1}, }) minetest.register_node("mario:glass", { description = "Glass", tiles = {"mario_grey.png","mario_glass.png"}, drawtype = "glasslike_framed", paramtype = "light", - groups = {cracky = 2}, + groups = {cracky = 1,not_in_creative_inventory=1}, }) minetest.register_node("mario:coin", { description = "Coin", @@ -48,7 +48,7 @@ minetest.register_node("mario:coin", { drawtype = "plantlike", paramtype = "light", walkable = false, - groups = {cracky = 2}, + 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,}) end, @@ -85,7 +85,7 @@ minetest.register_node("mario:mushroom",{ drawtype = "nodebox", paramtype = "light", walkable = false, - groups = {cracky = 3}, + groups = {cracky = 1,not_in_creative_inventory=1}, node_box = nbox, on_timer = function(pos, dtime) minetest.remove_node(pos) @@ -109,7 +109,7 @@ minetest.register_node("mario:mushroom_green",{ drawtype = "nodebox", paramtype = "light", walkable = false, - groups = {cracky = 3}, + groups = {cracky = 1,not_in_creative_inventory=1}, node_box = nbox, on_timer = function(pos, dtime) minetest.remove_node(pos) diff --git a/mario/init.lua b/mario/init.lua index 7f60785..6d63d76 100644 --- a/mario/init.lua +++ b/mario/init.lua @@ -20,7 +20,7 @@ minetest.register_node("mario:placer",{ }, drawtype = "normal", paramtype = "light", - groups = {cracky = 3}, + groups = {cracky = 1}, on_rightclick = function(pos, node, player, itemstack, pointed_thing) mario.game_start(pos, player, { schematic = minetest.get_modpath("mario").."/schems/mario.mts", @@ -40,7 +40,7 @@ minetest.register_node("mario:placer2",{ }, drawtype = "normal", paramtype = "light", - groups = {cracky = 3}, + groups = {cracky = 1,not_in_creative_inventory=1}, on_rightclick = function(pos, node, player, itemstack, pointed_thing) local schem = minetest.get_modpath("mario").."/schems/mario.mts" minetest.place_schematic({x=pos.x-1,y=pos.y-1,z=pos.z-2},schem,0, "air", true) @@ -59,7 +59,7 @@ minetest.register_node("mario:exit",{ }, drawtype = "normal", paramtype = "light", - groups = {cracky = 3}, + groups = {cracky = 1,not_in_creative_inventory=1}, on_rightclick = function(pos, node, player, itemstack, pointed_thing) local game = mario.get_game_by_player(player:get_player_name()) mario.game_end(game.id) diff --git a/mario/pipes.lua b/mario/pipes.lua index 3cfb04f..ab42d28 100644 --- a/mario/pipes.lua +++ b/mario/pipes.lua @@ -23,7 +23,7 @@ minetest.register_node("mario:pipe",{ drawtype = "nodebox", paramtype = "light", paramtype2 = "facedir", - groups = {cracky = 3}, + groups = {cracky = 1,not_in_creative_inventory=1}, node_box = pipe_box, on_place = minetest.rotate_node, @@ -42,7 +42,7 @@ minetest.register_node("mario:pipe_elbow",{ drawtype = "nodebox", paramtype = "light", paramtype2 = "facedir", - groups = {cracky = 3}, + groups = {cracky = 1,not_in_creative_inventory=1}, node_box = pipe_elbow_box, on_place = minetest.rotate_node, }) @@ -60,7 +60,7 @@ minetest.register_node("mario:pipe_end",{ drawtype = "nodebox", paramtype = "light", paramtype2 = "facedir", - groups = {cracky = 3}, + groups = {cracky = 1,not_in_creative_inventory=1}, node_box = pipe_end_box, on_place = minetest.rotate_node, }) diff --git a/mario/portal.lua b/mario/portal.lua index 6bee29b..6b1c82c 100644 --- a/mario/portal.lua +++ b/mario/portal.lua @@ -8,7 +8,7 @@ minetest.register_node("mario:portal", { paramtype2 = "facedir", walkable = false, is_ground_content = false, - groups = {cracky = 2,not_in_creative_inventory=1}, + groups = {cracky = 1,not_in_creative_inventory=1}, on_turtle_collision = function(pos, obj, gameid) obj:setpos({x=pos.x,y=pos.y+12,z=pos.z}) end @@ -22,7 +22,7 @@ minetest.register_node("mario:portal_left", { paramtype2 = "facedir", --walkable = false, is_ground_content = false, - groups = {cracky = 2,not_in_creative_inventory=0}, + groups = {cracky = 1,not_in_creative_inventory=1}, on_player_collision = function(pos, player, gameid) player:setpos(vector.add(pos,{x=31, y=0, z=0})) end, @@ -39,7 +39,7 @@ minetest.register_node("mario:portal_right", { paramtype2 = "facedir", --walkable = false, is_ground_content = false, - groups = {cracky = 2,not_in_creative_inventory=0}, + groups = {cracky = 1,not_in_creative_inventory=1}, on_player_collision = function(pos, player, gameid) player:setpos(vector.add(pos,{x=-31, y=0, z=0})) end, diff --git a/pacmine/fruit.lua b/pacmine/fruit.lua index 3100312..5e41313 100644 --- a/pacmine/fruit.lua +++ b/pacmine/fruit.lua @@ -28,7 +28,7 @@ minetest.register_node("pacmine:"..itm,{ paramtype2 = "facedir", walkable = false, light_source = 14, - groups = {immortal=1,not_in_creative_inventory = 0}, + groups = {immortal=1,not_in_creative_inventory = 1}, --node_box = cbox, selection_box = sbox, collision_box = cbox, |