mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-26 18:09:33 +01:00
Remove mtg compatibility code
This commit is contained in:
parent
489d3b7da6
commit
3153c41f3a
1 changed files with 0 additions and 81 deletions
|
@ -57,84 +57,3 @@ mcl_mobs.register_mob("mobs_mc:silverfish", {
|
|||
})
|
||||
|
||||
mcl_mobs.register_egg("mobs_mc:silverfish", S("Silverfish"), "#6d6d6d", "#313131", 0)
|
||||
|
||||
-- Monster egg blocks (Minetest Game)
|
||||
if minetest.get_modpath("default") and mobs_mc.create_monster_egg_nodes then
|
||||
local spawn_silverfish = function(pos, oldnode, oldmetadata, digger)
|
||||
if not minetest.is_creative_enabled(digger:get_player_name()) then
|
||||
minetest.add_entity(pos, "mobs_mc:silverfish")
|
||||
end
|
||||
end
|
||||
minetest.register_node("mobs_mc:monster_egg_stone", {
|
||||
description = "Stone Monster Egg",
|
||||
tiles = { "default_stone.png" },
|
||||
groups = { oddly_breakable_by_hand = 2, spawns_silverfish = 1 },
|
||||
drop = '',
|
||||
is_ground_content = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
after_dig_node = spawn_silverfish,
|
||||
})
|
||||
|
||||
minetest.register_node("mobs_mc:monster_egg_cobble", {
|
||||
description = "Cobblestone Monster Egg",
|
||||
tiles = { "default_cobble.png" },
|
||||
is_ground_content = false,
|
||||
groups = { oddly_breakable_by_hand = 2, spawns_silverfish = 1 },
|
||||
drop = '',
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
after_dig_node = spawn_silverfish,
|
||||
})
|
||||
|
||||
minetest.register_node("mobs_mc:monster_egg_mossycobble", {
|
||||
description = "Mossy Cobblestone Monster Egg",
|
||||
tiles = { "default_mossycobble.png" },
|
||||
is_ground_content = false,
|
||||
groups = { oddly_breakable_by_hand = 2, spawns_silverfish = 1 },
|
||||
drop = '',
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
after_dig_node = spawn_silverfish,
|
||||
})
|
||||
|
||||
minetest.register_node("mobs_mc:monster_egg_stonebrick", {
|
||||
description = "Stone Brick Monster Egg",
|
||||
paramtype2 = "facedir",
|
||||
place_param2 = 0,
|
||||
tiles = { "default_stone_brick.png" },
|
||||
is_ground_content = false,
|
||||
groups = { oddly_breakable_by_hand = 2, spawns_silverfish = 1 },
|
||||
drop = '',
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
after_dig_node = spawn_silverfish,
|
||||
})
|
||||
|
||||
minetest.register_node("mobs_mc:monster_egg_stone_block", {
|
||||
description = "Stone Block Monster Egg",
|
||||
tiles = { "default_stone_block.png" },
|
||||
is_ground_content = false,
|
||||
groups = { oddly_breakable_by_hand = 2, spawns_silverfish = 1 },
|
||||
drop = '',
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
after_dig_node = spawn_silverfish,
|
||||
})
|
||||
|
||||
-- Randomly spawn stone monster eggs in the world
|
||||
local mg_name = minetest.get_mapgen_setting("mg_name")
|
||||
local scarcity
|
||||
if mg_name == "v6" then
|
||||
scarcity = 28 * 28 * 28
|
||||
else
|
||||
scarcity = 22 * 22 * 22
|
||||
end
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "mobs_mc:monster_egg_stone",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = scarcity,
|
||||
clust_num_ores = 3,
|
||||
clust_size = 2,
|
||||
y_min = -31000,
|
||||
y_max = 31000,
|
||||
biomes = { "grassland" },
|
||||
})
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue