Compare commits
No commits in common. "89ca0b6b16c00f9b5832a3653030b1edafc234b8" and "90264452e541d62180d2a33e808219e04645dc51" have entirely different histories.
89ca0b6b16
...
90264452e5
@ -19,6 +19,5 @@ read_globals = {
|
||||
"player_monoids",
|
||||
"epic",
|
||||
"player_monoids",
|
||||
"sfinv",
|
||||
"soundblock"
|
||||
"sfinv"
|
||||
}
|
||||
|
@ -1,18 +0,0 @@
|
||||
|
||||
minetest.register_node("damocles_custom:transportation_animation", {
|
||||
tiles = {
|
||||
{
|
||||
name = "hyperloop_door1IN.png",
|
||||
animation = {
|
||||
type = "vertical_frames",
|
||||
aspect_w = 32,
|
||||
aspect_h = 32,
|
||||
length = 1.0,
|
||||
},
|
||||
}
|
||||
},
|
||||
light_source = 2,
|
||||
sounds = default.node_sound_metal_defaults(),
|
||||
groups = {cracky=1},
|
||||
is_ground_content = false,
|
||||
})
|
18
init.lua
18
init.lua
@ -1,26 +1,34 @@
|
||||
|
||||
local MP = minetest.get_modpath("damocles_custom")
|
||||
|
||||
minetest.override_item("default:ice", {
|
||||
groups = {cracky = 3, cools_lava = 1, slippery = 10}
|
||||
})
|
||||
|
||||
dofile(MP.."/center.lua")
|
||||
dofile(MP.."/privs.lua")
|
||||
dofile(MP.."/teleport_back.lua")
|
||||
dofile(MP.."/node_here.lua")
|
||||
dofile(MP.."/animations.lua")
|
||||
|
||||
|
||||
if minetest.get_modpath("unified_inventory") and minetest.get_modpath("sfinv") then
|
||||
dofile(MP.."/inventory.lua")
|
||||
end
|
||||
|
||||
if minetest.get_modpath("moreblocks") then
|
||||
dofile(MP.."/moreblocks.lua")
|
||||
end
|
||||
|
||||
if minetest.get_modpath("travelnet") then
|
||||
dofile(MP.."/travelnet.lua")
|
||||
end
|
||||
|
||||
if minetest.get_modpath("player_monoids") then
|
||||
dofile(MP.."/center_fast_walk.lua")
|
||||
if minetest.get_modpath("epic_skybox") then
|
||||
dofile(MP.."/skybox.lua")
|
||||
end
|
||||
|
||||
if minetest.get_modpath("soundblock") then
|
||||
dofile(MP.."/sounds.lua")
|
||||
if minetest.get_modpath("player_monoids") then
|
||||
dofile(MP.."/center_fast_walk.lua")
|
||||
end
|
||||
|
||||
if minetest.settings:get_bool("enable_integration_test") then
|
||||
|
2
mod.conf
2
mod.conf
@ -1,3 +1,3 @@
|
||||
name = damocles_custom
|
||||
depends = default
|
||||
optional_depends = travelnet,player_monoids,unified_inventory,sfinv,soundblock
|
||||
optional_depends = moreblocks,travelnet,epic_skybox,player_monoids,unified_inventory,sfinv
|
||||
|
1
moreblocks.lua
Normal file
1
moreblocks.lua
Normal file
@ -0,0 +1 @@
|
||||
|
10
readme.md
10
readme.md
@ -1,10 +0,0 @@
|
||||
|
||||
# Overview
|
||||
|
||||
Damocles custom mod (this and that)
|
||||
|
||||
|
||||
# Licenses
|
||||
|
||||
* `textures/hyperloop_door1IN.png` CC0 https://github.com/joe7575/Minetest-Hyperloop
|
||||
* `sounds/*` CC0 https://github.com/joe7575/Minetest-Hyperloop
|
39
skybox.lua
Normal file
39
skybox.lua
Normal file
@ -0,0 +1,39 @@
|
||||
|
||||
local function reset_sky(player)
|
||||
if not player then
|
||||
return
|
||||
end
|
||||
|
||||
player:set_clouds({
|
||||
thickness = 1,
|
||||
color = { r=243, g=214, b=255, a=229 },
|
||||
ambient = { r=0, g=0, b=0, a=255 },
|
||||
density = 0,
|
||||
height= 100,
|
||||
speed={ y=-2, x=-1 }
|
||||
})
|
||||
|
||||
player:set_sky({r=0, g=0, b=0}, "skybox", {
|
||||
"heaven_up.jpg^[transformR270",
|
||||
"heaven_dn.jpg^[transformR90",
|
||||
"heaven_ft.jpg",
|
||||
"heaven_bk.jpg",
|
||||
"heaven_lf.jpg",
|
||||
"heaven_rt.jpg"
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
minetest.register_on_joinplayer(reset_sky)
|
||||
|
||||
|
||||
epic.register_hook({
|
||||
on_epic_exit = function(playername)
|
||||
reset_sky(minetest.get_player_by_name(playername))
|
||||
end,
|
||||
|
||||
on_epic_abort = function(playername)
|
||||
reset_sky(minetest.get_player_by_name(playername))
|
||||
end,
|
||||
|
||||
})
|
17
sounds.lua
17
sounds.lua
@ -1,17 +0,0 @@
|
||||
soundblock.register({
|
||||
filename = "up2",
|
||||
key = "transport_up",
|
||||
name = "Transportation up"
|
||||
})
|
||||
|
||||
soundblock.register({
|
||||
filename = "normal2",
|
||||
key = "transport_normal",
|
||||
name = "Transportation normal"
|
||||
})
|
||||
|
||||
soundblock.register({
|
||||
filename = "down2",
|
||||
key = "transport_down",
|
||||
name = "Transportation down"
|
||||
})
|
BIN
sounds/down2.ogg
BIN
sounds/down2.ogg
Binary file not shown.
Binary file not shown.
BIN
sounds/up2.ogg
BIN
sounds/up2.ogg
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 1.8 KiB |
Loading…
x
Reference in New Issue
Block a user