add transportation animation

master
BuckarooBanzay 2020-05-09 11:28:41 +02:00
parent a7a6c8599c
commit b5f33b0fee
4 changed files with 28 additions and 0 deletions

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

@ -5,6 +5,7 @@ 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")

9
readme.md Normal file
View File

@ -0,0 +1,9 @@
# Overview
Damocles custom mod (this and that)
# Licenses
* `textures/hyperloop_door1IN.png` CC0 https://github.com/joe7575/Minetest-Hyperloop

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB