1
0
mirror of https://github.com/D00Med/scifi_nodes.git synced 2025-07-15 06:20:24 +02:00

2 Commits

Author SHA1 Message Date
0a625939d9 add facedir param2type to lightbars and liquidpipes 2022-12-08 13:36:07 +01:00
10d818b2e1 add forcefield node (#75)
Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
2022-12-07 08:08:55 +01:00
5 changed files with 25 additions and 0 deletions

View File

@ -38,6 +38,7 @@ CC BY 3.0
* scifi_nodes_palm_scanner.ogg https://freesound.org/people/THE_bizniss/sounds/39313/ * scifi_nodes_palm_scanner.ogg https://freesound.org/people/THE_bizniss/sounds/39313/
* scifi_nodes_access_granted https://freesound.org/people/TheBuilder15/sounds/415762/ * scifi_nodes_access_granted https://freesound.org/people/TheBuilder15/sounds/415762/
* scifi_nodes_access_refused https://freesound.org/people/RICHERlandTV/sounds/216090/ * scifi_nodes_access_refused https://freesound.org/people/RICHERlandTV/sounds/216090/
* scifi_nodes_forcefield.png https://github.com/minetest-mods/technic/
CC0 CC0
* scifi_nodes_digicode.ogg https://freesound.org/people/benjaminharveydesign/sounds/315921/ * scifi_nodes_digicode.ogg https://freesound.org/people/benjaminharveydesign/sounds/315921/

20
forcefield.lua Normal file
View File

@ -0,0 +1,20 @@
minetest.register_node("scifi_nodes:forcefield", {
description = "Forcefield",
sunlight_propagates = true,
drawtype = "glasslike",
groups = {},
paramtype = "light",
light_source = minetest.LIGHT_MAX,
diggable = false,
drop = '',
tiles = {{
name = "scifi_nodes_forcefield.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 1.0,
}
}},
on_blast = function() end,
})

View File

@ -30,4 +30,5 @@ dofile(MP.."/palm_scanner.lua")
dofile(MP.."/digicode.lua") dofile(MP.."/digicode.lua")
dofile(MP.."/models.lua") dofile(MP.."/models.lua")
dofile(MP.."/octagon_panes.lua") dofile(MP.."/octagon_panes.lua")
dofile(MP.."/forcefield.lua")
dofile(MP.."/crafts.lua") dofile(MP.."/crafts.lua")

View File

@ -543,6 +543,7 @@ minetest.register_node("scifi_nodes:lightbars", {
}, },
drawtype = "nodebox", drawtype = "nodebox",
paramtype = "light", paramtype = "light",
paramtype2 = "facedir",
use_texture_alpha = "blend", use_texture_alpha = "blend",
light_source = minetest.LIGHT_MAX, light_source = minetest.LIGHT_MAX,
node_box = { node_box = {
@ -569,6 +570,7 @@ tiles = {{
drawtype = "nodebox", drawtype = "nodebox",
sunlight_propagates = true, sunlight_propagates = true,
paramtype = "light", paramtype = "light",
paramtype2 = "facedir",
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = { fixed = {
@ -589,6 +591,7 @@ tiles = {
drawtype = "nodebox", drawtype = "nodebox",
sunlight_propagates = true, sunlight_propagates = true,
paramtype = "light", paramtype = "light",
paramtype2 = "facedir",
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = { fixed = {

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB