This commit is contained in:
WilLiam12 2021-03-31 16:30:30 -03:00
parent 2ce91109fd
commit 840cb261dd
19 changed files with 126 additions and 0 deletions

1
dia/depends.txt Normal file
View File

@ -0,0 +1 @@
default

87
dia/init.lua Normal file
View File

@ -0,0 +1,87 @@
local pictures = { ["w_dia"]="Dia",
["dia"]="Dia%",
["dia_mkt1"]="Dia_Mkt1",
["dia_mkt2"]="Dia_Mkt2",
["texture_0"]="Bem-vindo!",
["texture_1"]="Diaaa",
}
for name,desc in pairs(pictures) do
minetest.register_node("dia:"..name, {
description = desc,
drawtype = "signlike",
inventory_image = name..".png",
wield_image = name..".png",
visual_scale = 3.0,
tiles = {name..".png",},
use_texture_alpha = true,
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
light_source = 5,
is_ground_content = false,
selection_box = {
type = "wallmounted",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4, 0.5}
},
groups = {cracky=3,dig_immediate=3},
on_construct = function(pos)
local msg = desc
local meta = minetest.get_meta(pos)
--meta:set_string("text", msg)
meta:set_string("infotext", '"' .. msg .. '"')
end,
})
end
minetest.register_node("dia:concrete", {
description = "Dia Concrete",
tiles = {"concrete_dia.jpg"},
is_ground_content = true,
groups = {cracky=3, stone=1}
})
minetest.register_node("dia:metal", {
description = "Dia Metal",
tiles = {"metal_dia.jpg"},
is_ground_content = true,
groups = {cracky=3, stone=1}
})
minetest.register_node("dia:concrete2", {
description = "Dia Concrete 2",
tiles = {"concrete2_dia.jpg"},
is_ground_content = true,
groups = {cracky=3, stone=1}
})
minetest.register_node("dia:blinds", {
description = "Dia Blinds",
tiles = {"blinds_dia.jpg"},
is_ground_content = true,
groups = {cracky=3, stone=1}
})
minetest.register_node("dia:azulejo", {
description = "Azulejo Dia",
tiles = {"azulejo_dia.jpg"},
is_ground_content = true,
groups = {cracky=3, stone=1}
})
minetest.register_node("dia:azulejo2", {
description = "Azulejo Dia 2",
tiles = {"azulejo_dia2.jpg"},
is_ground_content = true,
groups = {cracky=3, stone=1}
})
minetest.register_node("dia:asphalt", {
description = "Asphalt",
tiles = {"asphalt.jpg"},
is_ground_content = true,
groups = {cracky=3, stone=1}
})

BIN
dia/textures/asphalt.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
dia/textures/blinds_dia.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

BIN
dia/textures/dia.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
dia/textures/dia_mkt1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB

BIN
dia/textures/dia_mkt2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 KiB

BIN
dia/textures/metal_dia.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
dia/textures/texture_0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
dia/textures/texture_1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
dia/textures/w_dia.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

21
headanim/LICENSE Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2020 LoneWolfHT
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.

7
headanim/README.md Normal file
View File

@ -0,0 +1,7 @@
# Headanim
[![ContentDB](https://content.minetest.net/packages/Lone_Wolf/headanim/shields/downloads/)](https://content.minetest.net/packages/Lone_Wolf/headanim/)
Makes player heads follow their look dir in Minetest. Requires version 5.3+
## Similar mods
* https://github.com/minetest-mods/playeranim: A lot more complex (and possibly slower?) than Headanim but looks nicer as a result

5
headanim/init.lua Normal file
View File

@ -0,0 +1,5 @@
minetest.register_globalstep(function(dtime)
for _, player in pairs(minetest.get_connected_players()) do
player:set_bone_position("Head", vector.new(0, 6.35, 0), vector.new(-math.deg(player:get_look_vertical()), 0, 0))
end
end)

5
headanim/mod.conf Normal file
View File

@ -0,0 +1,5 @@
name = headanim
description = Makes player heads follow their look direction
release = 6116
author = Lone_Wolf
title = Headanim