Compare commits

...

5 Commits

Author SHA1 Message Date
BuckarooBanzay 89ca0b6b16 add transportation sounds 2020-05-09 11:33:08 +02:00
BuckarooBanzay b5f33b0fee add transportation animation 2020-05-09 11:28:41 +02:00
BuckarooBanzay a7a6c8599c cleanup skybox stuff 2020-05-08 10:02:53 +02:00
BuckarooBanzay 00424da1a1 moreblocks cleanup 2020-03-10 08:55:20 +01:00
BuckarooBanzay 4c565ed4aa cleanup (slippery ice) 2020-03-06 07:47:50 +01:00
12 changed files with 53 additions and 55 deletions

View File

@ -19,5 +19,6 @@ read_globals = {
"player_monoids",
"epic",
"player_monoids",
"sfinv"
"sfinv",
"soundblock"
}

18
animations.lua Normal file
View File

@ -0,0 +1,18 @@
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,
})

View File

@ -1,36 +1,28 @@
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("epic_skybox") then
dofile(MP.."/skybox.lua")
end
if minetest.get_modpath("player_monoids") then
dofile(MP.."/center_fast_walk.lua")
end
if minetest.get_modpath("soundblock") then
dofile(MP.."/sounds.lua")
end
if minetest.settings:get_bool("enable_integration_test") then
dofile(MP.."/integration_test.lua")
end

View File

@ -1,3 +1,3 @@
name = damocles_custom
depends = default
optional_depends = moreblocks,travelnet,epic_skybox,player_monoids,unified_inventory,sfinv
optional_depends = travelnet,player_monoids,unified_inventory,sfinv,soundblock

View File

@ -1 +0,0 @@

10
readme.md Normal file
View File

@ -0,0 +1,10 @@
# 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

View File

@ -1,39 +0,0 @@
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 Normal file
View File

@ -0,0 +1,17 @@
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 Normal file

Binary file not shown.

BIN
sounds/normal2.ogg Normal file

Binary file not shown.

BIN
sounds/up2.ogg Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB