Is ground content revision (#527)
see https://github.com/pandorabox-io/pandorabox.io#836 also some whitespace indent fixes
This commit is contained in:
parent
4e252c8a30
commit
2c2995cf9b
@ -88,6 +88,7 @@ for _,i in pairs({"tiny","small","medium","large","huge"}) do
|
||||
description = string.format("Digilines Display (%s font)",i),
|
||||
tiles = {"digidisplay_bg.png",},
|
||||
groups = {cracky=3,digidisplay_lbm=1},
|
||||
is_ground_content = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
on_rotate = screwdriver and screwdriver.rotate_simple,
|
||||
|
@ -114,6 +114,7 @@ for _,def in ipairs(disptypes) do
|
||||
groups = {
|
||||
not_in_creative_inventory = 1,
|
||||
},
|
||||
is_ground_content = false,
|
||||
paramtype = "light",
|
||||
tiles = {
|
||||
string.format("display_blocks_redo_%s_crystal.png",lname),
|
||||
@ -133,6 +134,7 @@ for _,def in ipairs(disptypes) do
|
||||
groups = {
|
||||
cracky = 3,
|
||||
},
|
||||
is_ground_content = false,
|
||||
sounds = minetest.global_exists("default") and default.node_sound_glass_defaults(),
|
||||
paramtype = "light",
|
||||
light_source = def.light_source,
|
||||
@ -178,6 +180,7 @@ minetest.register_node("display_blocks_redo:natura_cube",{
|
||||
cracky = 3,
|
||||
oddly_breakable_by_hand = 3,
|
||||
},
|
||||
is_ground_content = false,
|
||||
paramtype = "light",
|
||||
drawtype = "glasslike",
|
||||
sounds = minetest.global_exists("default") and default.node_sound_glass_defaults(),
|
||||
@ -194,6 +197,7 @@ minetest.register_node("display_blocks_redo:industria_cube",{
|
||||
cracky = 3,
|
||||
oddly_breakable_by_hand = 3,
|
||||
},
|
||||
is_ground_content = false,
|
||||
paramtype = "light",
|
||||
drawtype = "glasslike",
|
||||
sounds = minetest.global_exists("default") and default.node_sound_glass_defaults(),
|
||||
@ -251,6 +255,7 @@ else
|
||||
tiles = {
|
||||
"display_blocks_redo_uranium_block.png",
|
||||
},
|
||||
is_ground_content = false,
|
||||
})
|
||||
|
||||
minetest.register_craftitem("display_blocks_redo:uranium_dust",{
|
||||
|
@ -8,7 +8,7 @@ minetest.register_node("gardening:rosebush", {
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
is_ground_content = true,
|
||||
is_ground_content = false,
|
||||
groups = {snappy=3,flammable=3,attached_node=1},
|
||||
-- sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
@ -38,7 +38,7 @@ minetest.register_node("gardening:geranium_shrub", {
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
is_ground_content = true,
|
||||
is_ground_content = false,
|
||||
groups = {snappy=3,flammable=3,attached_node=1},
|
||||
-- sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
@ -68,7 +68,7 @@ minetest.register_node("gardening:violas", {
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
is_ground_content = true,
|
||||
is_ground_content = false,
|
||||
groups = {snappy=3,flammable=3,attached_node=1},
|
||||
-- sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
@ -98,7 +98,7 @@ minetest.register_node('gardening:dandelions', {
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
is_ground_content = true,
|
||||
is_ground_content = false,
|
||||
groups = {snappy=3,flammable=3,attached_node=1},
|
||||
-- sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
@ -128,7 +128,7 @@ minetest.register_node("gardening:tulip_shrub", {
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
is_ground_content = true,
|
||||
is_ground_content = false,
|
||||
groups = {snappy=3,flammable=3,attached_node=1},
|
||||
-- sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
@ -151,7 +151,7 @@ minetest.register_craft({
|
||||
minetest.register_node("gardening:packed_dirt", {
|
||||
description = "Packed Dirt",
|
||||
tiles = {"gardening_packed_dirt.png"},
|
||||
is_ground_content = true,
|
||||
is_ground_content = false,
|
||||
groups = {crumbly=3},
|
||||
-- sounds = default.node_sound_dirt_defaults(),
|
||||
})
|
||||
|
@ -32,16 +32,17 @@ minetest.register_node("memorandum:letter_empty", {
|
||||
walkable = false,
|
||||
node_box = {type = "fixed", fixed = sheet},
|
||||
groups = {snappy=3,dig_immediate=3,not_in_creative_inventory=1},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string(
|
||||
"formspec",
|
||||
"size[10,7]"..
|
||||
"field[1,1;8.5,1;text; Write a Letter;${text}]"..
|
||||
"field[1,3;4.25,1;signed; Sign Letter (optional);${signed}]"..
|
||||
"button_exit[0.75,5;4.25,1;text,signed;Done]"
|
||||
)
|
||||
"formspec",
|
||||
"size[10,7]"..
|
||||
"field[1,1;8.5,1;text; Write a Letter;${text}]"..
|
||||
"field[1,3;4.25,1;signed; Sign Letter (optional);${signed}]"..
|
||||
"button_exit[0.75,5;4.25,1;text,signed;Done]"
|
||||
)
|
||||
meta:set_string("infotext", info..'"')
|
||||
end,
|
||||
on_receive_fields = function(pos, formname, fields, sender)
|
||||
@ -141,6 +142,7 @@ minetest.register_node("memorandum:letter_written", {
|
||||
walkable = false,
|
||||
node_box = {type = "fixed", fixed = sheet},
|
||||
groups = {snappy=3,dig_immediate=3,not_in_creative_inventory=1},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
on_receive_fields = function(pos, formname, fields, sender)
|
||||
local item = sender:get_wielded_item()
|
||||
@ -243,6 +245,7 @@ minetest.register_node("memorandum:message", {
|
||||
},
|
||||
stack_max = 1,
|
||||
groups = {vessel=1,dig_immediate=3,attached_node=1,not_in_creative_inventory=1},
|
||||
is_ground_content = false,
|
||||
--sounds = default.node_sound_glass_defaults(),
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
local pt = pointed_thing
|
||||
|
@ -25,6 +25,7 @@ minetest.register_node("prefab_redo:concrete_with_grass", {
|
||||
"basic_materials_concrete_block.png^default_grass_side.png"
|
||||
},
|
||||
groups = {cracky = 1},
|
||||
is_ground_content = false,
|
||||
})
|
||||
|
||||
minetest.register_node("prefab_redo:concrete_wall", {
|
||||
@ -35,6 +36,7 @@ minetest.register_node("prefab_redo:concrete_wall", {
|
||||
tiles = {"basic_materials_concrete_block.png"},
|
||||
sunlight_propagates = true,
|
||||
groups = {cracky = 1},
|
||||
is_ground_content = false,
|
||||
node_box = {
|
||||
type = "connected",
|
||||
fixed = {{-0.3, -0.5, -0.3, 0.3, -0.4, 0.3}, {-0.1, -0.5, -0.1, 0.1, 0.5, 0.1}},
|
||||
@ -77,6 +79,7 @@ minetest.register_node("prefab_redo:concrete_wall_upper", {
|
||||
tiles = {"basic_materials_concrete_block.png"},
|
||||
sunlight_propagates = true,
|
||||
groups = {cracky = 1,not_in_creative_inventory = 1},
|
||||
is_ground_content = false,
|
||||
drop = "prefab_redo:concrete_wall",
|
||||
node_box = {
|
||||
type = "connected",
|
||||
@ -113,6 +116,7 @@ minetest.register_node("prefab_redo:concrete_ladder", {
|
||||
type = "wallmounted",
|
||||
},
|
||||
groups = {cracky = 2},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
@ -137,6 +141,7 @@ minetest.register_node("prefab_redo:concrete_railing", {
|
||||
tiles = {"basic_materials_concrete_block.png"},
|
||||
sunlight_propagates = true,
|
||||
groups = {cracky = 1},
|
||||
is_ground_content = false,
|
||||
node_box = {
|
||||
type = "connected",
|
||||
fixed = {{0.0625,-0.5,0.0625,-0.0625,0.1875,-0.0625}},
|
||||
@ -169,6 +174,7 @@ minetest.register_node("prefab_redo:concrete_catwalk",{
|
||||
},
|
||||
},
|
||||
groups = {cracky = 2},
|
||||
is_ground_content = false,
|
||||
})
|
||||
|
||||
minetest.register_node("prefab_redo:concrete_bench", {
|
||||
@ -185,6 +191,7 @@ minetest.register_node("prefab_redo:concrete_bench", {
|
||||
},
|
||||
},
|
||||
groups = {cracky = 2},
|
||||
is_ground_content = false,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
|
@ -109,22 +109,22 @@ function rgblightstone.handle_digilines(pos,node,channel,msg,truecolor)
|
||||
end
|
||||
|
||||
function rgblightstone.handle_fields(pos,formname,fields,sender)
|
||||
local name = sender:get_player_name()
|
||||
if minetest.is_protected(pos, name) and not minetest.check_player_privs(name, { protection_bypass = true }) then
|
||||
minetest.record_protection_violation(pos, name)
|
||||
return
|
||||
end
|
||||
local meta = minetest.get_meta(pos)
|
||||
if fields.autofill then
|
||||
rgblightstone.autofill(pos,sender)
|
||||
else
|
||||
if fields.channel then
|
||||
meta:set_string("channel", fields.channel)
|
||||
meta:set_string("infotext","")
|
||||
end
|
||||
if fields.addrx then meta:set_string("addrx",fields.addrx) end
|
||||
if fields.addry then meta:set_string("addry",fields.addry) end
|
||||
end
|
||||
local name = sender:get_player_name()
|
||||
if minetest.is_protected(pos, name) and not minetest.check_player_privs(name, { protection_bypass = true }) then
|
||||
minetest.record_protection_violation(pos, name)
|
||||
return
|
||||
end
|
||||
local meta = minetest.get_meta(pos)
|
||||
if fields.autofill then
|
||||
rgblightstone.autofill(pos,sender)
|
||||
else
|
||||
if fields.channel then
|
||||
meta:set_string("channel", fields.channel)
|
||||
meta:set_string("infotext","")
|
||||
end
|
||||
if fields.addrx then meta:set_string("addrx",fields.addrx) end
|
||||
if fields.addry then meta:set_string("addry",fields.addry) end
|
||||
end
|
||||
end
|
||||
|
||||
function rgblightstone.update_entity(pos)
|
||||
@ -153,6 +153,7 @@ for i=0,14,1 do
|
||||
tiles = {"rgblightstone_white.png"},
|
||||
palette = "rgblightstone_palette.png",
|
||||
groups = i == 0 and {cracky = 2,} or {cracky = 2,not_in_creative_inventory = 1,},
|
||||
is_ground_content = false,
|
||||
description = i == 0 and "256-Color RGB Lightstone" or "256-Color RGB Lightstone (lit state - you hacker you!)",
|
||||
paramtype2 = "color",
|
||||
light_source = i,
|
||||
@ -195,6 +196,7 @@ for i=0,14,1 do
|
||||
minetest.register_node("rgblightstone:rgblightstone_truecolor_"..i, {
|
||||
tiles = {"rgblightstone_white.png^[colorize:#000000:255"},
|
||||
groups = i == 0 and {cracky = 2,} or {cracky = 2,not_in_creative_inventory = 1,},
|
||||
is_ground_content = false,
|
||||
description = i == 0 and "True-Color RGB Lightstone" or "True-Color RGB Lightstone (lit state - you hacker you!)",
|
||||
light_source = i,
|
||||
drop = "rgblightstone:rgblightstone_truecolor_0",
|
||||
|
@ -21,6 +21,7 @@ minetest.register_node( "titanium:titanium_in_ground", {
|
||||
minetest.register_node( "titanium:block", {
|
||||
description = "Titanium Block",
|
||||
tiles = { "titanium_block.png" },
|
||||
is_ground_content = false,
|
||||
groups = {cracky=1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
@ -31,6 +32,7 @@ minetest.register_node("titanium:glass", {
|
||||
tiles = {"titanium_glass.png", "titanium_glass_stripes.png"},
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
is_ground_content = false,
|
||||
groups = {snappy=1,cracky=2,oddly_breakable_by_hand=2},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
@ -51,6 +53,7 @@ minetest.register_node( "titanium:titanium_plate", {
|
||||
description = "Titanium Plate",
|
||||
tiles = {"titanium_plate.png"},
|
||||
inventory_image = "titanium_plate.png",
|
||||
is_ground_content = false,
|
||||
groups = {cracky=1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
@ -58,6 +61,7 @@ minetest.register_node( "titanium:titanium_plate", {
|
||||
minetest.register_node( "titanium:titanium_tv_1", {
|
||||
description = "Titanium TV",
|
||||
tiles = { "titanium_tv_1.png" },
|
||||
is_ground_content = false,
|
||||
groups = {snappy=1,bendy=2,cracky=1,melty=2,level=2},
|
||||
drop = 'titanium:titanium_tv_1',
|
||||
light_source = 8,
|
||||
@ -66,6 +70,7 @@ minetest.register_node( "titanium:titanium_tv_1", {
|
||||
minetest.register_node( "titanium:titanium_tv_2", {
|
||||
description = "Titanium TV",
|
||||
tiles = { "titanium_tv_2.png" },
|
||||
is_ground_content = false,
|
||||
groups = {snappy=1,bendy=2,cracky=1,melty=2,level=2},
|
||||
drop = 'titanium:titanium_tv_1',
|
||||
light_source = 8,
|
||||
|
@ -24,6 +24,7 @@ windmill.register_windmill = function( nodename, descr, animation_png, animation
|
||||
wall_side = {-0.4, -sel_radius, -sel_radius, -0.2, sel_radius, sel_radius},
|
||||
},
|
||||
groups = {choppy=2,dig_immediate=3,attached_node=1},
|
||||
is_ground_content = false,
|
||||
legacy_wallmounted = true,
|
||||
|
||||
})
|
||||
@ -50,6 +51,7 @@ windmill.register_windmill = function( nodename, descr, animation_png, animation
|
||||
wall_side = {-0.4, -sel_radius, -sel_radius, -0.2, sel_radius, sel_radius},
|
||||
},
|
||||
groups = {choppy=2,dig_immediate=3,attached_node=1},
|
||||
is_ground_content = false,
|
||||
legacy_wallmounted = true,
|
||||
|
||||
})
|
||||
@ -104,6 +106,7 @@ minetest.register_node("windmill:axis", {
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
groups = {choppy=2,dig_immediate=3},
|
||||
is_ground_content = false,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {{-0.25, -0.5, -0.25, 0.25, 0.4, 0.25},
|
||||
|
Loading…
x
Reference in New Issue
Block a user