nodes that aren't ground content (#16)

This commit is contained in:
Luke aka SwissalpS
2024-03-01 00:48:45 +01:00
committed by GitHub
parent 8102117572
commit 4b5e58331c
6 changed files with 21 additions and 2 deletions

View File

@ -24,6 +24,7 @@ minetest.register_node("computers:vanio", {
use_texture_alpha = "clip",
light_source = 4,
groups = {snappy=3},
is_ground_content = false,
walkable = false,
selection_box = {
type = "fixed",
@ -44,6 +45,7 @@ minetest.register_node("computers:vanio_off", {
paramtype2 = "facedir",
use_texture_alpha = "clip",
groups = {snappy=3, not_in_creative_inventory=1},
is_ground_content = false,
walkable = false,
selection_box = {
type = "fixed",
@ -81,6 +83,7 @@ minetest.register_node("computers:piepad", {
light_source = 8,
walkable = false,
groups = {oddly_breakable_by_hand=2},
is_ground_content = false,
selection_box = {type = "wallmounted"},
sounds = default and default.node_sound_wood_defaults() or nil
})
@ -125,6 +128,7 @@ minetest.register_node("computers:monitor", {
paramtype2 = "facedir",
walkable = false,
groups = {snappy=3},
is_ground_content = false,
selection_box = mo_sbox,
on_rightclick = function(pos, node, clicker, itemstack)
node.name = "computers:monitor_on"
@ -147,6 +151,7 @@ minetest.register_node("computers:monitor_on", {
light_source = 9,
walkable = false,
groups = {snappy=3, not_in_creative_inventory=1},
is_ground_content = false,
selection_box = mo_sbox,
drop = "computers:monitor",
on_rightclick = function(pos, node, clicker, itemstack)
@ -176,6 +181,7 @@ minetest.register_node("computers:router", {
use_texture_alpha = "clip",
walkable = false,
groups = {snappy=3},
is_ground_content = false,
sound = default and default.node_sound_wood_defaults() or nil,
drawtype = "nodebox",
node_box = {
@ -204,6 +210,7 @@ minetest.register_node("computers:tower", {
paramtype = "light",
paramtype2 = "facedir",
groups = {snappy=3},
is_ground_content = false,
sound = default and default.node_sound_wood_defaults() or nil,
selection_box = pct_cbox,
collision_box = pct_cbox
@ -226,6 +233,7 @@ minetest.register_node("computers:server", {
paramtype2 = "facedir",
use_texture_alpha = "clip",
groups = {snappy=3},
is_ground_content = false,
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.25, 0.5, 1.125, 0.4375}
@ -266,6 +274,7 @@ minetest.register_node("computers:server_on", {
paramtype2 = "facedir",
use_texture_alpha = "clip",
groups = {snappy=3,not_in_creative_inventory=1},
is_ground_content = false,
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.25, 0.5, 1.125, 0.4375}
@ -295,6 +304,7 @@ minetest.register_node("computers:printer", {
use_texture_alpha = "clip",
walkable = true,
groups = {snappy=3},
is_ground_content = false,
sound = default and default.node_sound_wood_defaults() or nil,
drawtype = "nodebox",
node_box = {

View File

@ -313,6 +313,7 @@ minetest.register_node("computers:tetris_arcade", {
paramtype = "light",
paramtype2 = "facedir",
groups = {snappy=3},
is_ground_content = false,
on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple or nil,
selection_box = {
type = "fixed",

View File

@ -15,6 +15,7 @@ computers.register = function (name, def)
description = cdef.description,
inventory_image = cdef.inventory_image,
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2},
is_ground_content = false,
tiles = {
TEXPFX.."tp.png",
TEXPFX.."bt.png",
@ -40,6 +41,7 @@ computers.register = function (name, def)
paramtype2 = "facedir",
use_texture_alpha = "clip",
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1},
is_ground_content = false,
tiles = {
(TEXPFX.."tp"..(cdef.tiles_off.top and "_off" or "")..".png"),
(TEXPFX.."bt"..(cdef.tiles_off.bottom and "_off" or "")..".png"),
@ -100,4 +102,4 @@ dofile(MODPATH.."/aliases.lua")
if minetest.get_modpath("default") and minetest.get_modpath("basic_materials") then
dofile(MODPATH.."/recipes.lua")
end
end