1
0
mirror of https://github.com/D00Med/scifi_nodes.git synced 2024-12-22 16:10:18 +01:00

add forcefield node

This commit is contained in:
BuckarooBanzay 2022-12-04 17:26:06 +01:00
parent ab81d74f33
commit c99ca991cf
4 changed files with 22 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")

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB