MineClone2 support (#2)
This commit is contained in:
parent
a5fb922c9e
commit
0d291b0ac2
@ -1,4 +1,5 @@
|
|||||||
default
|
default?
|
||||||
|
mcl_core?
|
||||||
intllib?
|
intllib?
|
||||||
loot?
|
loot?
|
||||||
doc?
|
doc?
|
80
init.lua
80
init.lua
@ -13,6 +13,7 @@ minetest.register_tool("orbs_of_time:orb_day", {
|
|||||||
inventory_image = "orbs_orb_day.png",
|
inventory_image = "orbs_orb_day.png",
|
||||||
wield_image = "orbs_orb_day_weild.png",
|
wield_image = "orbs_orb_day_weild.png",
|
||||||
stack_max=1,
|
stack_max=1,
|
||||||
|
groups = { tool=1 },
|
||||||
on_use = function(itemstack, user)
|
on_use = function(itemstack, user)
|
||||||
minetest.sound_play("orbs_ding", {pos=user:getpos(), loop=false})
|
minetest.sound_play("orbs_ding", {pos=user:getpos(), loop=false})
|
||||||
minetest.set_timeofday(0.5)
|
minetest.set_timeofday(0.5)
|
||||||
@ -32,6 +33,7 @@ minetest.register_tool("orbs_of_time:orb_night",{
|
|||||||
inventory_image = "orbs_orb_night.png",
|
inventory_image = "orbs_orb_night.png",
|
||||||
wield_image = "orbs_orb_night_weild.png",
|
wield_image = "orbs_orb_night_weild.png",
|
||||||
stack_max=1,
|
stack_max=1,
|
||||||
|
groups = { tool=1 },
|
||||||
on_use = function(itemstack, user)
|
on_use = function(itemstack, user)
|
||||||
minetest.sound_play("orbs_ding", {pos=user:getpos(), loop=false})
|
minetest.sound_play("orbs_ding", {pos=user:getpos(), loop=false})
|
||||||
minetest.set_timeofday(0)
|
minetest.set_timeofday(0)
|
||||||
@ -86,38 +88,58 @@ minetest.register_tool("orbs_of_time:orb_dusk",{
|
|||||||
--Crafting
|
--Crafting
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
minetest.register_craft( {
|
if minetest.get_modpath("mcl_core") then
|
||||||
output = "orbs_of_time:orb_day",
|
minetest.register_craft({
|
||||||
recipe = {
|
output = "orbs_of_time:orb_day",
|
||||||
{"default:diamond", "default:diamond","default:diamond"},
|
recipe = {
|
||||||
{"default:diamond", "default:mese_crystal","default:diamond"},
|
{"mcl_core:diamond", "mcl_core:diamond","mcl_core:diamond"},
|
||||||
{"default:diamond", "default:diamond","default:diamond"}
|
{"mcl_core:diamond", "mesecons:redstone","mcl_core:diamond"},
|
||||||
},
|
{"mcl_core:diamond", "mcl_core:diamond","mcl_core:diamond"}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "orbs_of_time:orb_night",
|
||||||
|
recipe = {
|
||||||
|
{"mcl_core:diamond", "mcl_core:diamond","mcl_core:diamond"},
|
||||||
|
{"mcl_core:diamond", "dye:black","mcl_core:diamond"},
|
||||||
|
{"mcl_core:diamond", "mcl_core:diamond","mcl_core:diamond"}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
else
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "orbs_of_time:orb_day",
|
||||||
|
recipe = {
|
||||||
|
{"mcl_core:diamond", "mcl_core:diamond","mcl_core:diamond"},
|
||||||
|
{"mcl_core:diamond", "default:mese_crystal","mcl_core:diamond"},
|
||||||
|
{"mcl_core:diamond", "mcl_core:diamond","mcl_core:diamond"}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "orbs_of_time:orb_night",
|
||||||
|
recipe = {
|
||||||
|
{"mcl_core:diamond", "mcl_core:diamond","mcl_core:diamond"},
|
||||||
|
{"mcl_core:diamond", "default:obsidian_shard","mcl_core:diamond"},
|
||||||
|
{"mcl_core:diamond", "mcl_core:diamond","mcl_core:diamond"}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "orbs_of_time:orb_dawn 2",
|
||||||
|
recipe = {
|
||||||
|
{"orbs_of_time:orb_day"},
|
||||||
|
{"orbs_of_time:orb_night"},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "orbs_of_time:orb_night",
|
output = "orbs_of_time:orb_dusk 2",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:diamond", "default:diamond","default:diamond"},
|
{"orbs_of_time:orb_night"},
|
||||||
{"default:diamond", "default:obsidian_shard","default:diamond"},
|
{"orbs_of_time:orb_day"},
|
||||||
{"default:diamond", "default:diamond","default:diamond"}
|
},
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "orbs_of_time:orb_dawn 2",
|
|
||||||
recipe = {
|
|
||||||
{"orbs_of_time:orb_day"},
|
|
||||||
{"orbs_of_time:orb_night"},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "orbs_of_time:orb_dusk 2",
|
|
||||||
recipe = {
|
|
||||||
{"orbs_of_time:orb_night"},
|
|
||||||
{"orbs_of_time:orb_day"},
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
-----------
|
-----------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user