VoxeLibre/mods/MISC/mcl_wip/init.lua
Wuzzy f2ed6f126e Add 5 “Minecart with X” entities
* Minecart with Chest
* Minecart with Furnace
* Minecart with TNT
* Minecart with Hopper
* Minecart with Command Block
2017-08-28 14:19:46 +02:00

53 lines
1.5 KiB
Lua

local wip_items = {
"mcl_anvils:anvil",
"mcl_anvils:anvil_damage_1",
"mcl_anvils:anvil_damage_2",
"mcl_core:darksapling",
"mcl_core:apple_gold",
"mcl_end:chorus_fruit",
"mcl_end:chorus_flower",
"mcl_end:chorus_flower_dead",
"mcl_fishing:fishing_rod",
"mcl_maps:filled_map",
"mcl_maps:empty_map",
"mcl_minecarts:golden_rail",
"gemalde:node_1",
"mcl_observers:observer",
"mcl_chests:trapped_chest",
"mobs_mc:totem",
"mcl_paintings:painting",
"mcl_comparators:comparator_off_comp",
"mcl_minecarts:hopper_minecart",
"mcl_minecarts:command_block_minecart",
"mcl_minecarts:chest_minecart",
"mcl_minecarts:furnace_minecart",
"mcl_minecarts:tnt_minecart",
}
for i=1,#wip_items do
local def = minetest.registered_items[wip_items[i]]
if not def then
minetest.log("error", "[mcl_wip] Unknown item: "..wip_items[i])
break
end
local new_description = def.description
new_description = new_description .. "\n"..core.colorize("#FF0000", "(WIP)")
minetest.override_item(wip_items[i], { description = new_description })
end
local experimental_items = {
"doc_identifier:identifier_solid",
"doc_identifier:identifier_liquid",
}
for i=1,#experimental_items do
local def = minetest.registered_items[experimental_items[i]]
if not def then
minetest.log("error", "[mcl_wip] Unknown item: "..experimental_items[i])
break
end
local new_description = def.description
new_description = new_description .. "\n"..core.colorize("#FFFF00", "(Experimental)")
minetest.override_item(experimental_items[i], { description = new_description })
end