Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion camera.lua
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ minetest.register_node("digistuff:camera", {
}
},
sounds = default and default.node_sound_stone_defaults(),
groups = {cracky = 2},
groups = {cracky = 2, not_blocking_trains = 1},
is_ground_content = false,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
Expand Down
8 changes: 4 additions & 4 deletions conductors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ minetest.register_node("digistuff:vertical_tap", {
description = "Vertical Digiline Intermediate Connection",
tiles = {"digistuff_digiline_full.png"},
paramtype = "light",
groups = {dig_immediate = 3,vertical_digiline = 1,},
groups = {dig_immediate = 3,vertical_digiline = 1,not_blocking_trains = 1},
is_ground_content = false,
drawtype = "nodebox",
node_box = {
Expand Down Expand Up @@ -223,7 +223,7 @@ minetest.register_node("digistuff:vertical_bottom", {
description = "Vertical Digiline",
tiles = {"digistuff_digiline_full.png"},
paramtype = "light",
groups = {dig_immediate = 3,vertical_digiline = 1,},
groups = {dig_immediate = 3,vertical_digiline = 1,not_blocking_trains = 1},
is_ground_content = false,
drawtype = "nodebox",
node_box = {
Expand Down Expand Up @@ -260,7 +260,7 @@ minetest.register_node("digistuff:vertical_middle", {
description = "Vertical Digiline (middle - you hacker you!)",
tiles = {"digistuff_digiline_full.png"},
paramtype = "light",
groups = {dig_immediate = 3,not_in_creative_inventory = 1,vertical_digiline = 1,},
groups = {dig_immediate = 3,not_in_creative_inventory = 1,vertical_digiline = 1,not_blocking_trains = 1},
drop = "digistuff:vertical_bottom",
is_ground_content = false,
walkable = false,
Expand Down Expand Up @@ -288,7 +288,7 @@ minetest.register_node("digistuff:vertical_top", {
description = "Vertical Digiline (top - you hacker you!)",
tiles = {"digistuff_digiline_full.png"},
paramtype = "light",
groups = {dig_immediate = 3,not_in_creative_inventory = 1,vertical_digiline = 1,},
groups = {dig_immediate = 3,not_in_creative_inventory = 1,vertical_digiline = 1,not_blocking_trains = 1},
drop = "digistuff:vertical_bottom",
is_ground_content = false,
drawtype = "nodebox",
Expand Down
2 changes: 1 addition & 1 deletion gpu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ end

minetest.register_node("digistuff:gpu", {
description = "Digilines 2D Graphics Processor",
groups = { cracky = 3 },
groups = { cracky = 3, not_blocking_trains = 1 },
is_ground_content = false,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
Expand Down
13 changes: 12 additions & 1 deletion ioexpander.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,22 @@ local ioexp_handle_mesecons = function(pos,_,rule,state)
ioexp_digiline_send(pos)
end

local groups_base = {
cracky = 3,
not_blocking_trains = 1,
}

for i=0,15,1 do
local offstate = i == 0

local groups = table.copy(groups_base)
if not offstate then
groups.not_in_creative_inventory = 1
end

minetest.register_node("digistuff:ioexpander_"..i, {
description = offstate and "Digilines I/O Expander" or string.format("Digilines I/O Expander (on state %X - you hacker you!)",i),
groups = offstate and {cracky = 3,} or {cracky = 3,not_in_creative_inventory = 1,},
groups = groups,
is_ground_content = false,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
Expand Down
13 changes: 12 additions & 1 deletion light.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
local groups_base = {
cracky = 1,
not_blocking_trains = 1,
}

for i=0,14,1 do
local mult = 255 - ((14-i)*12)

local groups = table.copy(groups_base)
if i > 0 then
groups.not_in_creative_inventory = 1
end

minetest.register_node("digistuff:light_"..i, {
drop = "digistuff:light_0",
description = "Digilines Dimmable Light"..(i > 0 and " (on state - you hacker you!)" or ""),
Expand All @@ -14,7 +25,7 @@ for i=0,14,1 do
}
},
_digistuff_channelcopier_fieldname = "channel",
groups = i > 0 and {cracky = 1, not_in_creative_inventory = 1} or {cracky = 1},
groups = groups,
is_ground_content = false,
light_source = i,
color = {r = mult,g = mult,b = mult},
Expand Down
2 changes: 1 addition & 1 deletion memory.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
minetest.register_node("digistuff:ram", {
description = "Digilines 128Kbit SRAM",
groups = {cracky=3},
groups = {cracky=3,not_blocking_trains = 1},
is_ground_content = false,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
Expand Down
2 changes: 1 addition & 1 deletion nic.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local http = ...
minetest.register_node("digistuff:nic", {
description = "Digilines NIC",
groups = {cracky=3},
groups = {cracky=3,not_blocking_trains = 1},
is_ground_content = false,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
Expand Down
2 changes: 1 addition & 1 deletion panel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ end

minetest.register_node("digistuff:panel", {
description = "Digilines Control Panel",
groups = {cracky=3},
groups = {cracky=3,not_blocking_trains = 1},
is_ground_content = false,
on_construct = function(pos)
local helpmsg = "Please set a channel."
Expand Down
4 changes: 2 additions & 2 deletions sillystuff.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ end

minetest.register_node("digistuff:heatsink", {
description = "Heatsink (decorative)",
groups = {cracky=3},
groups = {cracky=3,not_blocking_trains = 1},
is_ground_content = false,
tiles = {
"digistuff_piezo_sides.png"
Expand Down Expand Up @@ -57,7 +57,7 @@ minetest.register_node("digistuff:heatsink", {
minetest.register_node("digistuff:heatsink_onic", {
drop = "digistuff:heatsink",
description = "Heatsink (decorative, placed on IC - you hacker you!)",
groups = {cracky=3,not_in_creative_inventory=1,},
groups = {cracky=3,not_in_creative_inventory=1,not_blocking_trains = 1},
is_ground_content = false,
tiles = {
"digistuff_piezo_sides.png"
Expand Down
2 changes: 1 addition & 1 deletion timer.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
minetest.register_node("digistuff:timer", {
description = "Digilines Timer",
groups = {cracky=3},
groups = {cracky=3,not_blocking_trains = 1},
is_ground_content = false,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
Expand Down
2 changes: 1 addition & 1 deletion touchscreen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ end

minetest.register_node("digistuff:touchscreen", {
description = "Digilines Touchscreen",
groups = {cracky = 3},
groups = {cracky = 3, not_blocking_trains = 1},
is_ground_content = false,
tiles = {
"digistuff_panel_back.png",
Expand Down
Loading