Skip to content

Commit

Permalink
Set is_ground_content = false on nodes (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
SwissalpS authored Feb 28, 2024
1 parent 4081006 commit 4bcb7f0
Show file tree
Hide file tree
Showing 16 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions camera.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ minetest.register_node("digistuff:camera", {
},
sounds = default and default.node_sound_stone_defaults(),
groups = {cracky = 2},
is_ground_content = false,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec", get_formspec(true))
Expand Down
1 change: 1 addition & 0 deletions cardreader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ minetest.register_craftitem("digistuff:card",{
minetest.register_node("digistuff:card_reader",{
description = "Digilines Magnetic Card Reader/Writer",
groups = {cracky = 3,digiline_receiver = 1,},
is_ground_content = false,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec","field[channel;Channel;${channel}")
Expand Down
1 change: 1 addition & 0 deletions detector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ minetest.register_node("digistuff:detector", {
},
sounds = default and default.node_sound_stone_defaults(),
groups = {cracky = 2},
is_ground_content = false,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec", get_formspec(true))
Expand Down
1 change: 1 addition & 0 deletions gpu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ end
minetest.register_node("digistuff:gpu", {
description = "Digilines 2D Graphics Processor",
groups = {cracky=3},
is_ground_content = false,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec","field[channel;Channel;${channel}")
Expand Down
1 change: 1 addition & 0 deletions ioexpander.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ for i=0,15,1 do
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,},
is_ground_content = false,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec","field[channel;Channel;${channel}")
Expand Down
2 changes: 2 additions & 0 deletions memory.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
minetest.register_node("digistuff:ram", {
description = "Digilines 128Kbit SRAM",
groups = {cracky=3},
is_ground_content = false,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec","field[channel;Channel;${channel}")
Expand Down Expand Up @@ -64,6 +65,7 @@ minetest.register_node("digistuff:ram", {
minetest.register_node("digistuff:eeprom", {
description = "Digilines 128Kbit EEPROM",
groups = {cracky=3},
is_ground_content = false,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec","field[channel;Channel;${channel}")
Expand Down
1 change: 1 addition & 0 deletions movestone.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ local rules = {
minetest.register_node("digistuff:movestone", {
description = "Digilines Movestone",
groups = {cracky = 3,},
is_ground_content = false,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec","field[channel;Channel;${channel}")
Expand Down
1 change: 1 addition & 0 deletions nic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ local http = ...
minetest.register_node("digistuff:nic", {
description = "Digilines NIC",
groups = {cracky=3},
is_ground_content = false,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec","field[channel;Channel;${channel}")
Expand Down
1 change: 1 addition & 0 deletions noteblock.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ end
minetest.register_node("digistuff:noteblock", {
description = "Digilines Noteblock",
groups = {cracky=3},
is_ground_content = false,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec","field[channel;Channel;${channel}")
Expand Down
1 change: 1 addition & 0 deletions panel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ end
minetest.register_node("digistuff:panel", {
description = "Digilines Control Panel",
groups = {cracky=3},
is_ground_content = false,
on_construct = function(pos)
local helpmsg = "Please set a channel."
digistuff.update_panel_formspec(pos,helpmsg)
Expand Down
1 change: 1 addition & 0 deletions piezo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ end
minetest.register_node("digistuff:piezo", {
description = "Digilines Piezoelectric Beeper",
groups = {cracky = 3},
is_ground_content = false,
on_construct = function(pos)
minetest.get_meta(pos):set_string("formspec", "field[channel;Channel;${channel}")
end,
Expand Down
3 changes: 3 additions & 0 deletions piston.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ end
minetest.register_node("digistuff:piston", {
description = "Digilines Piston",
groups = {cracky = 3},
is_ground_content = false,
paramtype2 = "facedir",
on_construct = function(pos)
local meta = minetest.get_meta(pos)
Expand Down Expand Up @@ -98,6 +99,7 @@ minetest.register_node("digistuff:piston", {
minetest.register_node("digistuff:piston_ext", {
description = "Digilines Piston Extended (you hacker you!)",
groups = {cracky = 3, not_in_creative_inventory = 1},
is_ground_content = false,
paramtype2 = "facedir",
tiles = {
"digistuff_piston_sides.png^[transformR180",
Expand Down Expand Up @@ -175,6 +177,7 @@ minetest.register_node("digistuff:piston_ext", {
minetest.register_node("digistuff:piston_pusher", {
description = "Digilines Piston Pusher (you hacker you!)",
groups = {not_in_creative_inventory = 1},
is_ground_content = false,
paramtype = "light",
sunlight_propagates = true,
paramtype2 = "facedir",
Expand Down
2 changes: 2 additions & 0 deletions sillystuff.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ end
minetest.register_node("digistuff:heatsink", {
description = "Heatsink (decorative)",
groups = {cracky=3},
is_ground_content = false,
tiles = {
"digistuff_piezo_sides.png"
},
Expand Down Expand Up @@ -56,6 +57,7 @@ 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,},
is_ground_content = false,
tiles = {
"digistuff_piezo_sides.png"
},
Expand Down
6 changes: 6 additions & 0 deletions switches.lua
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ minetest.register_node("digistuff:button", {
},
_digistuff_channelcopier_fieldname = "channel",
groups = {dig_immediate = 2,digiline_receiver = 1,},
is_ground_content = false,
description = "Digilines Button",
on_construct = function(pos)
local meta = minetest.get_meta(pos)
Expand Down Expand Up @@ -163,6 +164,7 @@ minetest.register_node("digistuff:button_off", {
},
_digistuff_channelcopier_fieldname = "channel",
groups = {dig_immediate = 2,not_in_creative_inventory = 1,digiline_receiver = 1,},
is_ground_content = false,
drop = "digistuff:button",
after_destruct = digistuff.remove_receiver,
description = "Digilines Button (off state - you hacker you!)",
Expand Down Expand Up @@ -209,6 +211,7 @@ minetest.register_node("digistuff:button_off_pushed", {
_digistuff_channelcopier_fieldname = "channel",
on_timer = digistuff.button_turnoff,
groups = {dig_immediate = 2,not_in_creative_inventory = 1,digiline_receiver = 1,},
is_ground_content = false,
drop = "digistuff:button",
after_destruct = digistuff.remove_receiver,
description = "Digilines Button (off, pushed state - you hacker you!)",
Expand Down Expand Up @@ -257,6 +260,7 @@ minetest.register_node("digistuff:button_on", {
},
on_timer = digistuff.button_turnoff,
groups = {dig_immediate = 2,not_in_creative_inventory = 1,digiline_receiver = 1,},
is_ground_content = false,
drop = 'digistuff:button',
after_destruct = digistuff.remove_receiver,
on_rightclick = digistuff.button_push,
Expand Down Expand Up @@ -304,6 +308,7 @@ minetest.register_node("digistuff:button_on_pushed", {
},
on_timer = digistuff.button_turnoff,
groups = {dig_immediate = 2,not_in_creative_inventory = 1,digiline_receiver = 1,},
is_ground_content = false,
drop = 'digistuff:button',
after_destruct = digistuff.remove_receiver,
on_rightclick = digistuff.button_push,
Expand Down Expand Up @@ -346,6 +351,7 @@ minetest.register_node("digistuff:wall_knob", {
},
_digistuff_channelcopier_fieldname = "channel",
groups = {dig_immediate = 2,digiline_receiver = 1,},
is_ground_content = false,
description = "Digilines Wall Knob",
on_construct = function(pos)
local meta = minetest.get_meta(pos)
Expand Down
1 change: 1 addition & 0 deletions timer.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
minetest.register_node("digistuff:timer", {
description = "Digilines Timer",
groups = {cracky=3},
is_ground_content = false,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec","field[channel;Channel;${channel}")
Expand Down
1 change: 1 addition & 0 deletions touchscreen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ end
minetest.register_node("digistuff:touchscreen", {
description = "Digilines Touchscreen",
groups = {cracky = 3},
is_ground_content = false,
tiles = {
"digistuff_panel_back.png",
"digistuff_panel_back.png",
Expand Down

0 comments on commit 4bcb7f0

Please sign in to comment.