fancier crystals
This commit is contained in:
parent
8cee5ee5fb
commit
1cca6ee664
@ -1768,14 +1768,15 @@ minetest.register_node("mapgen:stalagmite2", {
|
||||
|
||||
minetest.register_node("mapgen:crystal_small", {
|
||||
description = "Small Crystal",
|
||||
tiles = {
|
||||
"mapgen_crystal.png",
|
||||
},
|
||||
tiles = {{
|
||||
name = "mapgen_crystal_anim.png",
|
||||
animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 1.00},
|
||||
}},
|
||||
use_texture_alpha = true,
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
light_source = 5,
|
||||
light_source = 7,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
@ -1797,14 +1798,15 @@ minetest.register_node("mapgen:crystal_small", {
|
||||
|
||||
minetest.register_node("mapgen:crystal", {
|
||||
description = "Crystal",
|
||||
tiles = {
|
||||
"mapgen_crystal.png",
|
||||
},
|
||||
tiles = {{
|
||||
name = "mapgen_crystal_anim.png",
|
||||
animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 1.00},
|
||||
}},
|
||||
use_texture_alpha = true,
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
light_source = 5,
|
||||
light_source = 7,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
@ -1822,6 +1824,48 @@ minetest.register_node("mapgen:crystal", {
|
||||
sounds = default.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"mapgen:crystal_small"},
|
||||
interval = 5,
|
||||
chance = 1,
|
||||
action = function(pos, node)
|
||||
minetest.add_particle({
|
||||
pos = {x=pos.x, y=pos.y+0.1, z=pos.z},
|
||||
velocity = {x=0, y=0, z=0},
|
||||
acceleration = {x=0, y=0, z=0},
|
||||
expirationtime = 5,
|
||||
size = 15,
|
||||
collisiondetection = false,
|
||||
collisionremoval = false,
|
||||
vertical = true,
|
||||
texture = "mapgen_crystal_glow.png",
|
||||
animation = {type = "vertical_frames", aspect_w = 32, aspect_h = 32, length = 1.00},
|
||||
glow = 9
|
||||
})
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"mapgen:crystal"},
|
||||
interval = 5,
|
||||
chance = 1,
|
||||
action = function(pos, node)
|
||||
minetest.add_particle({
|
||||
pos = {x=pos.x, y=pos.y+0.5, z=pos.z},
|
||||
velocity = {x=0, y=0, z=0},
|
||||
acceleration = {x=0, y=0, z=0},
|
||||
expirationtime = 5,
|
||||
size = 25,
|
||||
collisiondetection = false,
|
||||
collisionremoval = false,
|
||||
vertical = true,
|
||||
texture = "mapgen_crystal_glow.png",
|
||||
animation = {type = "vertical_frames", aspect_w = 32, aspect_h = 32, length = 1.00},
|
||||
glow = 9
|
||||
})
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_craftitem("mapgen:crystal_item", {
|
||||
description = "Crystal Shard",
|
||||
inventory_image = "mapgen_crystal_item.png"
|
||||
|
BIN
mods/mapgen/textures/mapgen_crystal_anim.png
Normal file
BIN
mods/mapgen/textures/mapgen_crystal_anim.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
BIN
mods/mapgen/textures/mapgen_crystal_glow.png
Normal file
BIN
mods/mapgen/textures/mapgen_crystal_glow.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.3 KiB |
Loading…
x
Reference in New Issue
Block a user