Code changes for bug fixing?
parent
35e37df0ee
commit
3d7fcd93bd
|
@ -1,3 +1 @@
|
|||
default
|
||||
titanium?
|
||||
technic?
|
27
init.lua
27
init.lua
|
@ -1,4 +1,11 @@
|
|||
dofile(minetest.get_modpath("display_blocks").."/config.txt")
|
||||
technic_uranium = false
|
||||
|
||||
if technic_uranium == false then
|
||||
dofile(minetest.get_modpath("display_blocks").."/uranium.lua")
|
||||
elseif technic_uranium == true then
|
||||
minetest.register_alias("display_blocks:uranium_dust", "technic:uranium_block")
|
||||
minetest.register_alias("display_blocks:uranium_block", "technic:uranium_block")
|
||||
end
|
||||
|
||||
function disp(base, name, light, rp)
|
||||
minetest.register_node( "display_blocks:"..base.."_base", {
|
||||
|
@ -49,7 +56,7 @@ function disp(base, name, light, rp)
|
|||
{rec, 'default:glass', rec},
|
||||
{'', rec, ''},
|
||||
},
|
||||
replacements = {rp},
|
||||
replacements = rp,
|
||||
})
|
||||
end
|
||||
|
||||
|
@ -59,16 +66,13 @@ disp("glass", "Glass", 0, "default:sand", "")
|
|||
disp("fire", "Fire", 15, "bucket:bucket_lava", {{"bucket:bucket_lava", "bucket:bucket_empty"}, {"bucket:bucket_lava", "bucket:bucket_empty"}, {"bucket:bucket_lava", "bucket:bucket_empty"}})
|
||||
disp("air", "Air", 5, "bucket:bucket_empty", {{"bucket:bucket_empty", "bucket:bucket_empty"}, {"bucket:bucket_empty", "bucket:bucket_empty"}, {"bucket:bucket_empty", "bucket:bucket_empty"}})
|
||||
disp("water", "Water", 0, "bucket:bucket_water", {{"bucket:bucket_water", "bucket:bucket_empty"}, {"bucket:bucket_water", "bucket:bucket_empty"}, {"bucket:bucket_water", "bucket:bucket_empty"}})
|
||||
disp("uranium", "Uranium", 10, "display_blocks:uranium_block", "")
|
||||
|
||||
if minetest.get_modpath("technic") and uranium_with_technic == false then
|
||||
dofile(minetest.get_modpath("display_blocks").."/technic.lua")
|
||||
else
|
||||
dofile(minetest.get_modpath("display_blocks").."/uranium.lua")
|
||||
end
|
||||
|
||||
if minetest.get_modpath("titanium") then
|
||||
disp("titanium", "Titanium", 0, "titanium:block", '')
|
||||
end
|
||||
|
||||
--
|
||||
--Mese Giver Display
|
||||
--
|
||||
|
@ -111,4 +115,13 @@ minetest.register_craft({
|
|||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'display_blocks:uranium_base 5',
|
||||
recipe = {
|
||||
{'', 'default:mese_crystal_fragment', ''},
|
||||
{'technic:uranium', 'default:glass', 'technic:uranium'},
|
||||
{'', 'technic:uranium', ''},
|
||||
}
|
||||
})
|
||||
|
||||
print("[Display Blocks] Loaded! by jojoa1997 :-)")
|
||||
|
|
|
@ -54,5 +54,3 @@ minetest.register_ore({
|
|||
height_min = -7000,
|
||||
height_max = -5000,
|
||||
})
|
||||
|
||||
disp("uranium", "Uranium", 10, "display_blocks:uranium_block", "")
|
Loading…
Reference in New Issue