useless files removed and code updated

file characters was a copy error, sounds/... too. Hit structures's sound is defined in case of `on_punch` function.
This commit is contained in:
jimy-byerley 2014-06-23 23:10:58 +02:00
parent 24c8482b18
commit 1b5f9157bd
21 changed files with 42 additions and 318 deletions

View File

@ -2,3 +2,13 @@ minetest-technology
===================
A minetest mod which provide some hi-tech stuff : flat screen, bronze structures, concrete, ...
Install
=======
As other minetest mod : extract the zip file as "technology" in the `games/minetest_game/mods` directory.
Other
=====
See documentation.txt to learn more (about crafting for exemple).

0
aircraft.lua Executable file → Normal file
View File

View File

@ -1,279 +0,0 @@
A
_a_
4
B
_b_
4
C
_c_
3
D
_d_
4
E
_e_
3
F
_f_
3
G
_g_
4
H
_h_
4
I
_i_
3
J
_j_
4
K
_k_
4
L
_l_
3
M
_m_
5
N
_n_
4
O
_o_
4
P
_p_
4
Q
_q_
4
R
_r_
4
S
_s_
4
T
_t_
3
U
_u_
4
V
_v_
4
W
_w_
5
X
_x_
4
Y
_y_
4
Z
_z_
3
a
_a
4
b
_b
4
c
_c
3
d
_d
4
e
_e
4
f
_f
3
g
_g
4
h
_h
4
i
_i
1
j
_j
2
k
_k
4
l
_l
1
m
_m
5
n
_n
4
o
_o
4
p
_p
4
q
_q
4
r
_r
3
s
_s
4
t
_t
3
u
_u
4
v
_v
4
w
_w
5
x
_x
3
y
_y
4
z
_z
4
_sp
2
0
_0
4
1
_1
2
2
_2
4
3
_3
4
4
_4
4
5
_5
4
6
_6
4
7
_7
4
8
_8
4
9
_9
4
(
_bl
2
)
_br
2
{
_cl
3
}
_cr
3
[
_sl
2
]
_sr
2
'
_ap
1
!
_ex
1
?
_qu
4
@
_at
5
#
_hs
5
$
_dl
4
%
_pr
5
^
_ca
3
&
_am
5
*
_as
3
_
_un
3
+
_ps
3
-
_mn
3
=
_eq
3
;
_sm
1
,
_cm
2
"
_qo
3
/
_dv
5
~
_tl
4
<
_lt
3
>
_gt
3
\
_re
5
|
_vb
1
.
_dt
1

0
depends.txt Executable file → Normal file
View File

2
documentation.txt Executable file → Normal file
View File

@ -1,6 +1,6 @@
This mod add computers and screen to minetest
made by jimy byerley jimy.byerley@gmail.com
License is GNU GPL v2, do it what you want !
License is GNU GPL v2
==[ crafting ]==========================================

16
electric_nodes.lua Executable file → Normal file
View File

@ -51,7 +51,7 @@ minetest.register_craft({
})
minetest.register_craft({
output = 'technology:lamp_small 5',
output = 'technology:small_lamp 5',
recipe = {
{'glass:bottle_empty'},
{'default:steel_ingot'},
@ -128,14 +128,14 @@ minetest.register_node("technology:12V_battery", {
tiles = {"battery_top.png", "battery_top.png", "battery_side.png", "battery_side.png", "battery_side.png", "battery_back.png"},
walkable = true,
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,pinch=1,generator=1},
electric = {generated = 12.5},
electric = {generated = 12},
on_construct = function(pos)
local meta = minetest.env:get_meta(pos)
meta:set_string("infotext", "\"12.5V DC BATTERY\"")
meta:set_string("infotext", "\"12V DC BATTERY\"")
end,
})
minetest.register_node("technology:lamp_small", {
minetest.register_node("technology:small_lamp", {
description = "Electric lamp small",
drawtype = "torchlike",
tiles = {"lamp_small_floor.png", "lamp_small_ceiling.png", "lamp_small.png"},
@ -162,14 +162,14 @@ minetest.register_node("technology:lamp_small", {
minetest.env:set_node(pos, {name="fire:basic_flame"})
else
local node = minetest.env:get_node(pos)
node.name = "technology:lamp_small_on"
node.name = "technology:small_lamp_on"
minetest.env:set_node(pos, node)
end
end,
}
})
minetest.register_node("technology:lamp_small_on", {
minetest.register_node("technology:small_lamp_on", {
description = "Electric lamp small",
drawtype = "torchlike",
tiles = {"lamp_small_on_floor.png", "lamp_small_on_ceiling.png", "lamp_small_on.png"},
@ -187,13 +187,13 @@ minetest.register_node("technology:lamp_small_on", {
wall_side = {-0.5, -0.3, -0.1, -0.5+0.3, 0.3, 0.1},
},
legacy_wallmounted = true,
drop = "technology:lamp_small",
drop = "technology:small_lamp",
groups = {choppy=2,dig_immediate=3,flammable=1,attached_node=1,electric=1},
electric = {
action = function(pos, energy)
if energy < 10 then
local node = minetest.env:get_node(pos)
node.name = "technology:lamp_small"
node.name = "technology:small_lamp"
minetest.env:set_node(pos, node)
elseif energy > 80 then
minetest.env:set_node(pos, {name="fire:basic_flame"})

0
init.lua Executable file → Normal file
View File

0
screen.lua Executable file → Normal file
View File

Binary file not shown.

51
structures.lua Executable file → Normal file
View File

@ -59,14 +59,6 @@ minetest.register_node("technology:concrete", {
})
local metal_punch = function(pos, puncher)
local table = {
name = "metal_footstep",
gain = 1.0,
max_hear_distance = 200,
loop = false,
pos = pos
}
minetest.sound_play(table.name, table)
end
local metal_footstep = {
@ -93,9 +85,9 @@ minetest.register_node("technology:armature_h", {
}},
tiles = {"steel_armature_top.png", "steel_armature_top.png", "steel_armature_top.png", "steel_armature_top.png", "steel_armature_h_side.png", "steel_armature_h_side.png"},
walkable = true,
groups = {mecanic=1},
on_punch = metal_punch,
groups = {mechanic=1},
sounds = metal_footstep,
sound = "metal_footstep",
})
minetest.register_node("technology:armature_v", {
@ -117,9 +109,9 @@ minetest.register_node("technology:armature_v", {
}},
tiles = {"steel_armature_top.png", "steel_armature_top.png", "steel_armature_top.png", "steel_armature_top.png", "steel_armature_v_side.png", "steel_armature_v_side.png"},
walkable = true,
groups = {mecanic=1},
on_punch = metal_punch,
groups = {mechanic=1},
sounds = metal_footstep,
sound = "metal_footstep",
})
minetest.register_node("technology:grid_v", {
@ -141,8 +133,8 @@ minetest.register_node("technology:grid_v", {
tiles = {"bronze_grid_side.png", "bronze_grid_side.png", "bronze_grid_side.png", "bronze_grid_side.png", "bronze_grid_front.png", "steel_grid_front.png"},
walkable = true,
groups = {paffy=2},
on_punch = metal_punch,
sounds = metal_footstep,
sound = "metal_footstep",
})
minetest.register_node("technology:grid_h", {
@ -164,8 +156,8 @@ minetest.register_node("technology:grid_h", {
tiles = {"bronze_grid_side.png", "bronze_grid_front.png", "bronze_grid_side.png", "bronze_grid_front.png", "bronze_grid_side.png", "steel_grid_side.png"},
walkable = true,
groups = {paffy=2},
on_punch = metal_punch,
sounds = metal_footstep,
sound = "metal_footstep",
})
minetest.register_craft({
@ -243,9 +235,9 @@ minetest.register_node("technology:floor", {
}},
tiles = {"floor_top.png", "floor_bottom.png", "floor_side.png", "floor_side.png", "floor_side.png", "floor_side.png"},
walkable = true,
groups = {paffly=2, mecanic=1},
on_punch = metal_punch,
groups = {paffly=2, mechanic=1},
sounds = metal_footstep,
sound = "metal_footstep",
})
minetest.register_craft({
@ -270,13 +262,14 @@ minetest.register_node("technology:stairs", {
{-0.5, -0.1, 0, 0.5, 0.02, 0.5},
}},
selection_box = {type = "fixed", fixed = {
{-0.5, 0, -0.5, 0.5, 0.5, 0.5},
{-0.5, -0.5, -0.5, 0.5, -0.38, 0},
{-0.5, -0.1, 0, 0.5, 0.02, 0.5},
}},
tiles = {"floor_top.png", "floor_bottom.png", "floor_side.png", "floor_side.png", "floor_side.png", "floor_side.png"},
walkable = true,
groups = {paffly=2, mecanic=1},
on_punch = metal_punch,
groups = {paffly=2, mechanic=1},
sounds = metal_footstep,
sound = "metal_footstep",
})
minetest.register_node("technology:edge", {
@ -296,9 +289,9 @@ minetest.register_node("technology:edge", {
}},
tiles = {"edge_side.png", "edge_side.png", "edge_side.png", "edge_side.png", "edge_side.png", "edge_side.png"},
walkable = true,
groups = {paffly=2, mecanic=1},
on_punch = metal_punch,
groups = {paffly=2, mechanic=1},
sounds = metal_footstep,
sound = "metal_footstep",
})
minetest.register_node("technology:edge_angle", {
@ -322,9 +315,9 @@ minetest.register_node("technology:edge_angle", {
}},
tiles = {"edge_side.png", "edge_side.png", "edge_side.png", "edge_side.png", "edge_side.png", "edge_side.png"},
walkable = true,
groups = {paffly=2, mecanic=1},
on_punch = metal_punch,
groups = {paffly=2, mechanic=1},
sounds = metal_footstep,
sound = "metal_footstep",
drop = "technology:edge",
})
@ -344,9 +337,9 @@ minetest.register_node("technology:triangle", {
}},
tiles = {"triangle_side.png", "triangle_side.png", "triangle_right.png", "triangle_left.png", "triangle_side.png", "triangle_side.png"},
walkable = true,
groups = {paffly=2, mecanic=1},
on_punch = metal_punch,
groups = {paffly=2, mechanic=1},
sounds = metal_footstep,
sound = "metal_footstep",
})
@ -379,9 +372,9 @@ minetest.register_node("technology:ladder", {
tiles = {"technology_ladder.png", "technology_ladder.png", "technology_ladder.png", "technology_ladder.png", "technology_ladder.png", "technology_ladder.png"},
walkable = true,
climbable = true,
groups = {paffly=2, mecanic=1},
on_punch = metal_punch,
groups = {paffly=2, mechanic=1},
sounds = metal_footstep,
sound = "metal_footstep",
})
@ -422,8 +415,8 @@ minetest.register_node("technology:ladder_closed", {
tiles = {"technology_ladder.png", "technology_ladder.png", "technology_ladder.png", "technology_ladder.png", "technology_ladder.png", "technology_ladder.png"},
walkable = true,
climbable = true,
groups = {paffly=2, mecanic=1},
on_punch = metal_punch,
groups = {paffly=2, mechanic=1},
sounds = metal_footstep,
sound = "metal_footstep",
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

BIN
textures/jeija_mesecon_off.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 B

BIN
textures/jeija_mesecon_on.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 B

BIN
textures/wires_bump_on.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

BIN
textures/wires_full_off.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 B

BIN
textures/wires_full_on.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 B

BIN
textures/wires_off.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 B

BIN
textures/wires_vertical_off.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

2
tools.lua Executable file → Normal file
View File

@ -14,7 +14,7 @@ minetest.register_tool("technology:wrench", {
tool_capabilities = {
max_drop_level=1,
groupcaps={
mecanic={times={[1]=1.00, [2]=2.60, [3]=4.00}, uses=0, maxlevel=3},
mechanic={times={[1]=1.00, [2]=2.60, [3]=4.00}, uses=0, maxlevel=3},
}
},
})