Meseboxes work with hoppers.

master
Nathan Salapat 2020-11-13 19:03:04 -06:00
parent 366340aee6
commit 6369cc4395
5 changed files with 11 additions and 6 deletions

View File

@ -373,7 +373,7 @@ for color, desc in pairs(mesebox.variants) do
})
end
minetest.register_craft({ --Make this more expensive.
minetest.register_craft({
output = "mesebox:yellow_mesebox 1",
recipe = {
{ "default:mese", "furniture:lock", "default:mese" },
@ -382,6 +382,10 @@ minetest.register_craft({ --Make this more expensive.
}
})
hopper:add_container({
{"top", "group:mesebox", "main"},
{"bottom", "group:mesebox", "main"},
})
-- Keep inventory of mesebox when changing color by crafting
minetest.register_on_craft(

View File

@ -1,6 +1,6 @@
name = mesebox
description = Mobile storage box powered by Mese
depends = default
depends = default, hopper
optional_depends = pipeworks
author = johalun
title = Mesebox Mobile Storage

View File

@ -1,4 +1,7 @@
local news = {
'11/13/20',
'Meseboxes are now compatible with hoppers.',
'',
'11/5/20',
'Added the mesebox mod.',
'Kitchen cabinets now have a face on the back wall.',

View File

@ -9,13 +9,11 @@ local dye_table = dye.dyes
for i in ipairs(dye_table) do
local name = dye_table[i][1]
unified_inventory.register_craft({
type = 'dye',
items = {'furniture:fabric_white', 'dye:'..name},
output = 'furniture:fabric_'..name
})
end
local function dying_formspec(water_level)

View File

@ -17,10 +17,10 @@ local shapes = { --mesh identifier, shape, col
{'_14', 'Octothorp', colbox_14_0, colbox_14_1},
}
local group = {oddly_breakable_by_hand=2, not_in_creative_inventory=1}
local group = {oddly_breakable_by_hand=2, not_in_creative_inventory=1, tomb=1}
if minetest.settings:get_bool('tombs.creative') then
group = {oddly_breakable_by_hand=2, cracky=3}
group = {oddly_breakable_by_hand=2, cracky=3, tomb=1}
end
for i in ipairs (shapes) do