Page Menu
Home
1F616EMO Bugtracker
Search
Configure Global Search
Log In
Files
F156764
init.lua
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
init.lua
View Options
-- twi_mods/moreblocks_mod/init.lua
-- Moreblocks modifications
--[[
This code is licensed under the zlib license;
see ./LICENSE.md for more information.
]]
-- Adopt the linuxforks way of crafting stone tiles
core
.
clear_craft
({
recipe
=
{
{
"default:cobble"
,
"default:cobble"
,
"default:cobble"
},
{
"default:cobble"
,
"default:stone"
,
"default:cobble"
},
{
"default:cobble"
,
"default:cobble"
,
"default:cobble"
},
}
})
core
.
register_craft
({
output
=
"moreblocks:stone_tile 4"
,
recipe
=
{
{
"default:cobble"
,
"default:cobble"
},
{
"default:cobble"
,
"default:cobble"
},
}
})
core
.
register_craft
({
output
=
"moreblocks:stone_tile 36"
,
recipe
=
{
{
"moreblocks:cobble_compressed"
,
"moreblocks:cobble_compressed"
},
{
"moreblocks:cobble_compressed"
,
"moreblocks:cobble_compressed"
},
}
})
-- Allow compressed cobbles to be smelt into stone/grind into gravel
core
.
register_craft
({
type
=
"cooking"
,
output
=
"default:stone 9"
,
recipe
=
"moreblocks:cobble_compressed"
,
cooktime
=
3
*
8
,
})
technic
.
register_grinder_recipe
({
input
=
{
"moreblocks:cobble_compressed"
},
time
=
3
*
8
,
output
=
"default:gravel 9"
})
-- Hide deprecated nodes from crafting recipies
local
nodes
=
{
"moreblocks:wood_tile_flipped"
,
"moreblocks:wood_tile_down"
,
"moreblocks:wood_tile_left"
,
"moreblocks:wood_tile_right"
,
}
for
_
,
name
in
ipairs
(
nodes
)
do
local
groups
=
table
.
copy
(
core
.
registered_nodes
[
name
].
groups
or
{})
groups
.
not_in_creative_inventory
=
1
groups
.
not_in_craft_guide
=
1
core
.
override_item
(
name
,
{
groups
=
groups
})
end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 2, 4:28 PM (7 h, 31 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
6c/3f/23a7c17505b02e4d81f55546ccfe
Default Alt Text
init.lua (1 KB)
Attached To
Mode
rTWIMODS Survival Server Custom Modifications
Attached
Detach File
Event Timeline
Log In to Comment