Compare commits
5 Commits
723276d58a
...
e4b687b6e9
Author | SHA1 | Date |
---|---|---|
Auke Kok | e4b687b6e9 | |
Auke Kok | ba874c5c64 | |
Vanessa Ezekowitz | 75c8443a75 | |
Vanessa Ezekowitz | aef0889bd7 | |
Vanessa Ezekowitz | 9e8cd59b7c |
|
@ -0,0 +1,29 @@
|
|||
|
||||
License:
|
||||
|
||||
Copyright (C) 2016 - VanessaE, cheapie, jojoa1997
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject
|
||||
to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included
|
||||
in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
||||
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
||||
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the name of the authors shall
|
||||
not be used in advertising or otherwise to promote the sale, use or
|
||||
other dealings in this Software without prior written authorization
|
||||
from the authors.
|
||||
|
|
@ -0,0 +1 @@
|
|||
This mod adds blocks that create crystals on top. Some have different light levels others can be seen through and i hope i can make them do other things too.
|
36
init.lua
36
init.lua
|
@ -12,7 +12,7 @@ local Scale = 0.9
|
|||
function disp(base, name, light, rec, rp)
|
||||
minetest.register_node( "display_blocks:"..base.."_base", {
|
||||
description = name.."Display Base",
|
||||
tile_images = { "display_blocks_"..base.."_block.png" },
|
||||
tiles = { "display_blocks_"..base.."_block.png" },
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3,},
|
||||
light_source = light,
|
||||
|
@ -24,7 +24,7 @@ function disp(base, name, light, rec, rp)
|
|||
minetest.register_node( "display_blocks:"..base.."_crystal", {
|
||||
drawtype = "plantlike",
|
||||
description = name.." Display Crystal",
|
||||
tile_images = { "display_blocks_"..base.."_crystal.png" },
|
||||
tiles = { "display_blocks_"..base.."_crystal.png" },
|
||||
is_ground_content = true,
|
||||
paramtype = "light",
|
||||
visual_scale = Scale,
|
||||
|
@ -44,7 +44,7 @@ function disp(base, name, light, rec, rp)
|
|||
pos.y = pos.y + 1
|
||||
local n = minetest.get_node(pos)
|
||||
if n and n.name == "air" then
|
||||
minetest.env:add_node(pos, {name="display_blocks:"..base.."_crystal"})
|
||||
minetest.add_node(pos, {name="display_blocks:"..base.."_crystal"})
|
||||
end
|
||||
end
|
||||
})
|
||||
|
@ -54,7 +54,7 @@ function disp(base, name, light, rec, rp)
|
|||
pos.y = pos.y + 1
|
||||
local n = minetest.get_node(pos)
|
||||
if n and n.name == "display_blocks:"..base.."_crystal" then
|
||||
minetest.env:remove_node(pos)
|
||||
minetest.remove_node(pos)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -92,7 +92,7 @@ end
|
|||
|
||||
minetest.register_node( "display_blocks:universia_base", {
|
||||
description = "Universia Display Base",
|
||||
tile_images = {"display_blocks_universia_block.png"},
|
||||
tiles = {"display_blocks_universia_block.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3,},
|
||||
light_source = 15,
|
||||
|
@ -104,7 +104,7 @@ minetest.register_node( "display_blocks:universia_base", {
|
|||
minetest.register_node( "display_blocks:universia_crystal", {
|
||||
description = "Universia Display Crystal",
|
||||
drawtype = "plantlike",
|
||||
tile_images = {"display_blocks_universia_crystal.png"},
|
||||
tiles = {"display_blocks_universia_crystal.png"},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
|
||||
|
@ -122,7 +122,7 @@ minetest.register_abm({
|
|||
chance = 1.0,
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
pos.y = pos.y + 1
|
||||
minetest.env:add_node(pos, {name="display_blocks:universia_crystal"})
|
||||
minetest.add_node(pos, {name="display_blocks:universia_crystal"})
|
||||
end
|
||||
})
|
||||
|
||||
|
@ -131,7 +131,7 @@ function remove_crystal(pos, node, active_object_count, active_object_count_wide
|
|||
node.name == "display_blocks:universia_base"
|
||||
then
|
||||
pos.y = pos.y + 1
|
||||
minetest.env:remove_node(pos, {name="display_blocks:universia_crystal"})
|
||||
minetest.remove_node(pos, {name="display_blocks:universia_crystal"})
|
||||
end
|
||||
end
|
||||
minetest.register_on_dignode(remove_crystal)
|
||||
|
@ -151,7 +151,7 @@ minetest.register_craft({
|
|||
|
||||
minetest.register_node("display_blocks:compressed_earth", {
|
||||
description = "Compressed Earth",
|
||||
tile_images = {"display_blocks_compressed_earth.png"},
|
||||
tiles = {"display_blocks_compressed_earth.png"},
|
||||
groups = {crumbly=3,soil=1},
|
||||
sounds = default.node_sound_dirt_defaults({
|
||||
footstep = {name="default_grass_footstep", gain=0.25},
|
||||
|
@ -160,7 +160,7 @@ minetest.register_node("display_blocks:compressed_earth", {
|
|||
|
||||
minetest.register_node("display_blocks:empty_display", {
|
||||
description = "Empty Display",
|
||||
tile_images = {"display_blocks_empty_display.png"},
|
||||
tiles = {"display_blocks_empty_display.png"},
|
||||
groups = {cracky=3,oddly_breakable_by_hand=3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
sunlight_propagates = true,
|
||||
|
@ -171,7 +171,7 @@ minetest.register_node("display_blocks:empty_display", {
|
|||
|
||||
minetest.register_node("display_blocks:industria_cube", {
|
||||
description = "Industria Cube",
|
||||
tile_images = {"display_blocks_industria_cube.png"},
|
||||
tiles = {"display_blocks_industria_cube.png"},
|
||||
groups = {cracky=3,oddly_breakable_by_hand=3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
sunlight_propagates = true,
|
||||
|
@ -182,7 +182,7 @@ minetest.register_node("display_blocks:industria_cube", {
|
|||
|
||||
minetest.register_node("display_blocks:natura_cube", {
|
||||
description = "Natura Cube",
|
||||
tile_images = {"display_blocks_natura_cube.png"},
|
||||
tiles = {"display_blocks_natura_cube.png"},
|
||||
groups = {cracky=3,oddly_breakable_by_hand=3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
sunlight_propagates = true,
|
||||
|
@ -238,8 +238,8 @@ minetest.register_ore({
|
|||
clust_scarcity = 25*25*25,
|
||||
clust_num_ores = 20,
|
||||
clust_size = 5,
|
||||
height_max = -5,
|
||||
height_min = -15,
|
||||
y_max = -5,
|
||||
y_min = -15,
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
|
@ -249,8 +249,8 @@ minetest.register_ore({
|
|||
clust_scarcity = 20*20*20,
|
||||
clust_num_ores = 50,
|
||||
clust_size = 5,
|
||||
height_max = -16,
|
||||
height_min = -29,
|
||||
y_max = -16,
|
||||
y_min = -29,
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
|
@ -260,8 +260,8 @@ minetest.register_ore({
|
|||
clust_scarcity = 15*15*15,
|
||||
clust_num_ores = 80,
|
||||
clust_size = 5,
|
||||
height_max = -30,
|
||||
height_min = -100,
|
||||
y_max = -30,
|
||||
y_min = -100,
|
||||
})
|
||||
|
||||
print("[Display Blocks] Loaded! by jojoa1997 :-)")
|
||||
|
|
|
@ -12,8 +12,8 @@ if technic_uranium_new_ore_gen == true then
|
|||
clust_scarcity = 20*20*20,
|
||||
clust_num_ores = 18,
|
||||
clust_size = 3,
|
||||
height_min = -3000,
|
||||
height_max = -2000,
|
||||
y_min = -3000,
|
||||
y_max = -2000,
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
|
@ -23,8 +23,8 @@ if technic_uranium_new_ore_gen == true then
|
|||
clust_scarcity =30*30*30,
|
||||
clust_num_ores = 40,
|
||||
clust_size = 4,
|
||||
height_min = -7000,
|
||||
height_max = -5000,
|
||||
y_min = -7000,
|
||||
y_max = -5000,
|
||||
})
|
||||
end
|
||||
|
||||
|
|
12
uranium.lua
12
uranium.lua
|
@ -1,6 +1,6 @@
|
|||
minetest.register_node( "display_blocks:uranium_ore", {
|
||||
description = "Uranium Ore",
|
||||
tile_images = { "default_stone.png^uranium_ore.png" },
|
||||
tiles = { "default_stone.png^uranium_ore.png" },
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3},
|
||||
drop = 'craft "display_blocks:uranium_dust" 3',
|
||||
|
@ -14,7 +14,7 @@ minetest.register_craftitem( "display_blocks:uranium_dust", {
|
|||
|
||||
minetest.register_node( "display_blocks:uranium_block", {
|
||||
description = "Uranium Block",
|
||||
tile_images = { "uranium_block.png" },
|
||||
tiles = { "uranium_block.png" },
|
||||
light_propagates = true,
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
|
@ -40,8 +40,8 @@ minetest.register_ore({
|
|||
clust_scarcity = 10*10*10,
|
||||
clust_num_ores =18,
|
||||
clust_size = 3,
|
||||
height_min = -3000,
|
||||
height_max = -2000,
|
||||
y_min = -3000,
|
||||
y_max = -2000,
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
|
@ -51,6 +51,6 @@ minetest.register_ore({
|
|||
clust_scarcity =20*20*20,
|
||||
clust_num_ores =40,
|
||||
clust_size = 4,
|
||||
height_min = -7000,
|
||||
height_max = -5000,
|
||||
y_min = -7000,
|
||||
y_max = -5000,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue