Imported from trollstream "ContentDB"

master
OldCoder 2022-09-04 22:00:39 -07:00
commit 90009082e6
15 changed files with 137 additions and 0 deletions

1
depends.txt Normal file
View File

@ -0,0 +1 @@
default?

1
description.txt Normal file
View File

@ -0,0 +1 @@
This mod currently adds 2 colorscreens: green and blue. Yes, they are like the colored screens you see in movies. You can use them as decoration or as something to photoshop out of.

76
init.lua Normal file
View File

@ -0,0 +1,76 @@
minetest.register_node("colorscreens:greenscreen", {
description = "Green Screen",
drawtype = "mesh",
mesh = "grayscreen.obj",
tiles = {"colorscreens_green.png"},
paramtype2 = "facedir",
inventory_image = "greenscreen.png",
groups = {oddly_breakable_by_hand=1},
selection_box = {
type = "fixed",
fixed = {-8.45, -.3, -.1, 8.42, 7.5, .1},
},
})
minetest.register_node("colorscreens:bluescreen", {
description = "Blue Screen",
drawtype = "mesh",
mesh = "grayscreen.obj",
tiles = {"colorscreens_blue.png"},
paramtype2 = "facedir",
inventory_image = "bluescreen.png",
groups = {oddly_breakable_by_hand=1},
selection_box = {
type = "fixed",
fixed = {-8.45, -.3, -.1, 8.42, 7.5, .1},
},
})
minetest.register_node("colorscreens:blackscreen", {
description = "Black Screen",
drawtype = "mesh",
mesh = "grayscreen.obj",
tiles = {"colorscreens_black.png"},
paramtype2 = "facedir",
inventory_image = "blackscreen.png",
groups = {oddly_breakable_by_hand=1},
selection_box = {
type = "fixed",
fixed = {-8.45, -.3, -.1, 8.42, 7.5, .1},
},
})
minetest.register_node("colorscreens:whitescreen", {
description = "White Screen",
drawtype = "mesh",
mesh = "grayscreen.obj",
tiles = {"colorscreens_white.png"},
paramtype2 = "facedir",
inventory_image = "whitescreen.png",
groups = {oddly_breakable_by_hand=1},
selection_box = {
type = "fixed",
fixed = {-8.45, -.3, -.1, 8.42, 7.5, .1},
},
})
minetest.register_node("colorscreens:redscreen", {
description = "Red Screen",
drawtype = "mesh",
mesh = "grayscreen.obj",
tiles = {"colorscreens_red.png"},
paramtype2 = "facedir",
inventory_image = "redscreen.png",
groups = {oddly_breakable_by_hand=1},
selection_box = {
type = "fixed",
fixed = {-8.45, -.3, -.1, 8.42, 7.5, .1},
},
})
-- Feel free to make whatever colors you want. Preferably the colors would be bright colors, because it is harder to edit out more "dull" colors. Just use the code you see here, but make sure you use the pre-made mesh, unless you want to create your own. The selection_box is like a hitbox. It is in order like {-x, -y, -z, x, y, z}. Feel free to experiment with this and other stuff as well.
--DELTA_FORCE

10
license.txt Normal file
View File

@ -0,0 +1,10 @@
Copyright 2019 DELTA_FORCE
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Model and artwork licensed under CC-BY-4.0.

49
models/grayscreen.obj Normal file
View File

@ -0,0 +1,49 @@
# Blender v2.79 (sub 0) OBJ File: ''
# www.blender.org
mtllib grayscreen.mtl
o Cube.002
v -0.015847 6.641496 0.020595
v -0.015847 -0.499157 0.020595
v -0.015847 6.641496 0.103565
v -0.015847 -0.499157 0.103565
v 0.015847 6.641496 0.020595
v 0.015847 -0.499157 0.020595
v 0.015847 6.641496 0.103565
v 0.015847 -0.499157 0.103565
vn -1.0000 0.0000 0.0000
vn 0.0000 0.0000 1.0000
vn 1.0000 0.0000 0.0000
vn 0.0000 0.0000 -1.0000
vn 0.0000 1.0000 0.0000
vn 0.0000 -1.0000 0.0000
usemtl None
s off
f 1//1 2//1 4//1 3//1
f 3//2 4//2 8//2 7//2
f 7//3 8//3 6//3 5//3
f 5//4 6//4 2//4 1//4
f 3//5 7//5 5//5 1//5
f 8//6 4//6 2//6 6//6
o Cube.001
v 8.458963 7.529798 0.013905
v 8.458963 -0.293678 0.013905
v 8.458963 7.529798 -0.013905
v 8.458963 -0.293678 -0.013905
v -8.458963 7.529798 0.013905
v -8.458963 -0.293678 0.013905
v -8.458963 7.529798 -0.013905
v -8.458963 -0.293678 -0.013905
vn 1.0000 0.0000 0.0000
vn 0.0000 0.0000 -1.0000
vn -1.0000 0.0000 0.0000
vn 0.0000 0.0000 1.0000
vn 0.0000 1.0000 0.0000
vn 0.0000 -1.0000 0.0000
usemtl None
s off
f 9//7 10//7 12//7 11//7
f 11//8 12//8 16//8 15//8
f 15//9 16//9 14//9 13//9
f 13//10 14//10 10//10 9//10
f 11//11 15//11 13//11 9//11
f 16//12 12//12 10//12 14//12

BIN
textures/blackscreen.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 548 B

BIN
textures/bluescreen.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 568 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 B

BIN
textures/greenscreen.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 569 B

BIN
textures/redscreen.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 564 B

BIN
textures/whitescreen.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 567 B