mirror of
https://github.com/minetest-mods/nether.git
synced 2025-06-30 23:40:45 +02:00
New/extra portal animation
(new animation by Extex101) The original texture is now "nether_portal_alt.png", and used to provide a "nether:portal_alt" node, which is used/demoed by the Surface-portal as the original animation still has a "it's full of stars" charm coming out when used for lighter coloured portals.
This commit is contained in:
29
nodes.lua
29
nodes.lua
@ -21,7 +21,7 @@
|
||||
|
||||
local S = nether.get_translator
|
||||
|
||||
-- Portal/wormhole node
|
||||
-- Portal/wormhole nodes
|
||||
|
||||
nether.register_wormhole_node("nether:portal", {
|
||||
description = S("Nether Portal"),
|
||||
@ -37,6 +37,33 @@ nether.register_wormhole_node("nether:portal", {
|
||||
}
|
||||
})
|
||||
|
||||
local portal_animation2 = {
|
||||
name = "nether_portal_alt.png",
|
||||
animation = {
|
||||
type = "vertical_frames",
|
||||
aspect_w = 16,
|
||||
aspect_h = 16,
|
||||
length = 0.5,
|
||||
},
|
||||
}
|
||||
|
||||
nether.register_wormhole_node("nether:portal_alt", {
|
||||
description = S("Portal"),
|
||||
tiles = {
|
||||
"nether_transparent.png",
|
||||
"nether_transparent.png",
|
||||
"nether_transparent.png",
|
||||
"nether_transparent.png",
|
||||
portal_animation2,
|
||||
portal_animation2
|
||||
},
|
||||
post_effect_color = {
|
||||
-- hopefully blue enough to work with blue portals, and green enough to
|
||||
-- work with cyan portals.
|
||||
a = 120, r = 0, g = 128, b = 188
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
-- Nether nodes
|
||||
|
||||
|
Reference in New Issue
Block a user