Compare commits

...

2 Commits

3 changed files with 53 additions and 21 deletions

View File

@ -232,6 +232,25 @@ local pages={
}
},
{
name="chargepads",
title=S("Chargepads"),
icon="industrialtest:batbox_chargepad",
content={
[[
<big>||Chargepads||</big>
<left>
||Chargepad is similar in functionality to regular power storage like <item name="industrialtest:batbox" height="{{ITEM_HEIGHT}}"> <b>BatBox</b>. The additional feature is that it can charge equipped electric gear and selected item in hotbar while player is standing on it. There is a chargepad corresponding to each power storage node and they have exact same information so there is no need to list that again here. While charging the top of chargepad changes color to blue.||
</left>
<mono>
----
</mono>
<img name="industrialtest_guide_chargepad.png">
<left>||Picture 1. Unused <item name="industrialtest:batbox_chargepad" height="{{ITEM_HEIGHT}}"> <b>BatBox Chargepad</b> attached to <item name="industrialtest:solar_panel" height="{{ITEM_HEIGHT}}"> <b>Solar Panel</b>.||</left>
]]
}
},
{
name="compressor",
title=S("Compressor"),

View File

@ -591,6 +591,8 @@ if industrialtest.mtgAvailable then
}
})
elseif industrialtest.mclAvailable then
-- Some MCL2 forks define this function so use it if available
if mcl_fences.register_fence_def then
mcl_fences.register_fence_def("iron_fence",{
description=S("Iron Fence"),
tiles={"default_steel_block.png"},
@ -607,10 +609,21 @@ elseif industrialtest.mclAvailable then
on_destruct=ironFenceOnDestruct,
after_destruct=function(pos,oldnode,oldmeta)
ironFenceDetach(oldmeta)
end,
_mcl_fences_baseitem="industrialtest:iron_plate",
_mcl_fences_stickreplacer="industrialtest:iron_plate"
end
})
else
mcl_fences.register_fence("iron_fence",S("Iron Fence"),"default_steel_block.png",{_industrialtest_metalFence=1},4,5,{"industrialtest:magnetizer","group:fence"},mcl_sounds.node_sound_metal_defaults())
end
if minetest.registered_nodes["mcl_fences:iron_fence"] then
-- mcl_fences.register_fence_def registers fences in it's own namespace so register alias here to keep compatibility
minetest.register_alias("industrialtest:iron_fence","mcl_fences:iron_fence")
end
minetest.register_craft({
type="shaped",
output="industrialtest:iron_fence 3",
recipe={
{"industrialtest:iron_plate","industrialtest:iron_plate","industrialtest:iron_plate"},
{"industrialtest:iron_plate","industrialtest:iron_plate","industrialtest:iron_plate"}
}
})
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 KiB