diff --git a/README.md b/README.md index a125e97..c44279e 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,7 @@ CC BY 3.0 * 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_refused https://freesound.org/people/RICHERlandTV/sounds/216090/ +* scifi_nodes_forcefield.png https://github.com/minetest-mods/technic/ CC0 * scifi_nodes_digicode.ogg https://freesound.org/people/benjaminharveydesign/sounds/315921/ diff --git a/forcefield.lua b/forcefield.lua new file mode 100644 index 0000000..7071fce --- /dev/null +++ b/forcefield.lua @@ -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, +}) \ No newline at end of file diff --git a/init.lua b/init.lua index 25314e4..2d19d68 100644 --- a/init.lua +++ b/init.lua @@ -30,4 +30,5 @@ dofile(MP.."/palm_scanner.lua") dofile(MP.."/digicode.lua") dofile(MP.."/models.lua") dofile(MP.."/octagon_panes.lua") +dofile(MP.."/forcefield.lua") dofile(MP.."/crafts.lua") diff --git a/textures/scifi_nodes_forcefield.png b/textures/scifi_nodes_forcefield.png new file mode 100644 index 0000000..26997a6 Binary files /dev/null and b/textures/scifi_nodes_forcefield.png differ