forked from MineClone5/MineClone5
Merge MineClone2/master
This commit is contained in:
commit
9f67432865
|
@ -28,8 +28,12 @@ tt.register_snippet(function(itemstring)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
minetest.register_alias(new_id, itemstring)
|
if new_id ~= game .. ":book_enchanted" then
|
||||||
if minetest.settings:get_bool("mcl_item_id_debug", true) then
|
minetest.register_alias_force(new_id, itemstring)
|
||||||
|
end
|
||||||
|
if minetest.settings:get_bool("mcl_item_id_debug", false) then
|
||||||
return new_id, "#555555"
|
return new_id, "#555555"
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
minetest.register_alias_force(game .. ":book_enchanted", "mcl_enchanting:book_enchanted")
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 167 B After Width: | Height: | Size: 409 B |
|
@ -1,4 +1,4 @@
|
||||||
name = mcl_portals
|
name = mcl_portals
|
||||||
description = Adds buildable portals to the Nether and End dimensions.
|
description = Adds buildable portals to the Nether and End dimensions.
|
||||||
depends = mcl_nether, mcl_end, mcl_particles, mcl_spawn
|
depends = mcl_nether, mcl_end, mcl_particles, mcl_spawn, mcl_credits
|
||||||
optional_depends = awards, doc
|
optional_depends = awards, doc
|
||||||
|
|
|
@ -4,6 +4,8 @@ local table = table
|
||||||
local vector = vector
|
local vector = vector
|
||||||
local math = math
|
local math = math
|
||||||
|
|
||||||
|
local has_doc = minetest.get_modpath("doc")
|
||||||
|
|
||||||
-- Parameters
|
-- Parameters
|
||||||
--local SPAWN_MIN = mcl_vars.mg_end_min+70
|
--local SPAWN_MIN = mcl_vars.mg_end_min+70
|
||||||
--local SPAWN_MAX = mcl_vars.mg_end_min+98
|
--local SPAWN_MAX = mcl_vars.mg_end_min+98
|
||||||
|
@ -339,7 +341,7 @@ minetest.register_node("mcl_portals:end_portal_frame_eye", {
|
||||||
_mcl_hardness = -1,
|
_mcl_hardness = -1,
|
||||||
})
|
})
|
||||||
|
|
||||||
if minetest.get_modpath("doc") then
|
if has_doc then
|
||||||
doc.add_entry_alias("nodes", "mcl_portals:end_portal_frame", "nodes", "mcl_portals:end_portal_frame_eye")
|
doc.add_entry_alias("nodes", "mcl_portals:end_portal_frame", "nodes", "mcl_portals:end_portal_frame_eye")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -366,7 +368,7 @@ minetest.override_item("mcl_end:ender_eye", {
|
||||||
end
|
end
|
||||||
minetest.set_node(pointed_thing.under, { name = "mcl_portals:end_portal_frame_eye", param2 = node.param2 })
|
minetest.set_node(pointed_thing.under, { name = "mcl_portals:end_portal_frame_eye", param2 = node.param2 })
|
||||||
|
|
||||||
if minetest.get_modpath("doc") then
|
if has_doc then
|
||||||
doc.mark_entry_as_revealed(user:get_player_name(), "nodes", "mcl_portals:end_portal_frame")
|
doc.mark_entry_as_revealed(user:get_player_name(), "nodes", "mcl_portals:end_portal_frame")
|
||||||
end
|
end
|
||||||
minetest.sound_play(
|
minetest.sound_play(
|
||||||
|
@ -381,7 +383,7 @@ minetest.override_item("mcl_end:ender_eye", {
|
||||||
-- Epic 'portal open' sound effect that can be heard everywhere
|
-- Epic 'portal open' sound effect that can be heard everywhere
|
||||||
minetest.sound_play("mcl_portals_open_end_portal", {gain=0.8}, true)
|
minetest.sound_play("mcl_portals_open_end_portal", {gain=0.8}, true)
|
||||||
end_portal_area(ppos)
|
end_portal_area(ppos)
|
||||||
if minetest.get_modpath("doc") then
|
if has_doc then
|
||||||
doc.mark_entry_as_revealed(user:get_player_name(), "nodes", "mcl_portals:portal_end")
|
doc.mark_entry_as_revealed(user:get_player_name(), "nodes", "mcl_portals:portal_end")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue