removed items from creative inventory

master
DonBatman 2015-11-12 16:59:36 -08:00
parent 881e4c1e00
commit ac479f81aa
5 changed files with 18 additions and 18 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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,
})

View File

@ -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,

View File

@ -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,