2020-02-08 18:34:26 +09:00
|
|
|
--
|
|
|
|
-- =====================================================================================
|
|
|
|
--
|
|
|
|
-- OpenMiner
|
|
|
|
-- Copyright (C) 2018-2020 Unarelith, Quentin Bazin <openminer@unarelith.net>
|
|
|
|
--
|
|
|
|
-- This program is free software; you can redistribute it and/or
|
|
|
|
-- modify it under the terms of the GNU Lesser General Public
|
|
|
|
-- License as published by the Free Software Foundation; either
|
|
|
|
-- version 2.1 of the License, or (at your option) any later version.
|
|
|
|
--
|
|
|
|
-- This program is distributed in the hope that it will be useful,
|
|
|
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
-- Lesser General Public License for more details.
|
|
|
|
--
|
|
|
|
-- You should have received a copy of the GNU Lesser General Public License
|
|
|
|
-- along with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
-- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
--
|
|
|
|
-- =====================================================================================
|
|
|
|
--
|
|
|
|
|
2019-01-04 18:05:35 +01:00
|
|
|
mod:block {
|
|
|
|
id = "dirt",
|
|
|
|
name = "Dirt",
|
2020-01-30 17:25:48 +09:00
|
|
|
tiles = "dirt.png"
|
2019-01-04 18:05:35 +01:00
|
|
|
}
|
2018-12-28 08:36:56 +01:00
|
|
|
|
2019-01-04 18:05:35 +01:00
|
|
|
mod:block {
|
|
|
|
id = "cobblestone",
|
|
|
|
name = "Cobblestone",
|
2020-01-30 17:25:48 +09:00
|
|
|
tiles = "cobblestone.png",
|
2018-12-28 08:36:56 +01:00
|
|
|
hardness = 2,
|
|
|
|
harvest_requirements = 1,
|
2019-01-04 18:05:35 +01:00
|
|
|
}
|
2018-12-28 08:36:56 +01:00
|
|
|
|
2019-01-04 18:05:35 +01:00
|
|
|
mod:block {
|
|
|
|
id = "grass",
|
|
|
|
name = "Grass",
|
2020-01-30 21:35:51 +09:00
|
|
|
tiles = {"grass_block_top.png", "dirt.png", "grass_block_side.png"},
|
2020-02-19 19:30:07 +09:00
|
|
|
color_multiplier = {129, 191, 91, 255},
|
|
|
|
|
2018-12-28 08:36:56 +01:00
|
|
|
item_drop = {
|
2019-01-04 18:05:35 +01:00
|
|
|
id = mod:id()..":dirt",
|
2018-12-28 08:36:56 +01:00
|
|
|
amount = 1
|
|
|
|
}
|
2019-01-04 18:05:35 +01:00
|
|
|
}
|
2018-12-28 08:36:56 +01:00
|
|
|
|
2019-01-04 18:05:35 +01:00
|
|
|
mod:block {
|
|
|
|
id = "leaves",
|
|
|
|
name = "Leaves",
|
2020-01-30 17:25:48 +09:00
|
|
|
tiles = "oak_leaves.png",
|
2020-02-19 19:30:07 +09:00
|
|
|
color_multiplier = {106, 173, 51, 255},
|
2018-12-28 08:36:56 +01:00
|
|
|
hardness = 0.5,
|
2020-02-03 15:10:09 +09:00
|
|
|
draw_type = 2, -- FIXME: Use string instead
|
2020-02-03 16:07:14 +09:00
|
|
|
-- is_opaque = false, -- FIXME
|
2019-01-04 18:05:35 +01:00
|
|
|
}
|
2018-12-28 08:36:56 +01:00
|
|
|
|
2019-01-04 18:05:35 +01:00
|
|
|
mod:block {
|
|
|
|
id = "wood",
|
|
|
|
name = "Wood",
|
2020-01-30 21:35:51 +09:00
|
|
|
tiles = {"oak_log_top.png", "oak_log.png"},
|
2018-12-28 08:36:56 +01:00
|
|
|
hardness = 2
|
2019-01-04 18:05:35 +01:00
|
|
|
}
|
2018-12-28 08:36:56 +01:00
|
|
|
|
2019-01-04 18:05:35 +01:00
|
|
|
mod:block {
|
|
|
|
id = "stone",
|
|
|
|
name = "Stone",
|
2020-01-30 17:25:48 +09:00
|
|
|
tiles = "stone.png",
|
2018-12-28 08:36:56 +01:00
|
|
|
hardness = 1.5,
|
|
|
|
harvest_requirements = 1,
|
|
|
|
item_drop = {
|
2019-01-04 18:05:35 +01:00
|
|
|
id = mod:id()..":cobblestone",
|
2018-12-28 08:36:56 +01:00
|
|
|
amount = 1
|
|
|
|
},
|
2019-01-04 18:05:35 +01:00
|
|
|
}
|
2018-12-28 08:36:56 +01:00
|
|
|
|
2019-01-04 18:05:35 +01:00
|
|
|
mod:block {
|
|
|
|
id = "sand",
|
|
|
|
name = "Sand",
|
2020-01-30 17:25:48 +09:00
|
|
|
tiles = "sand.png"
|
2019-01-04 18:05:35 +01:00
|
|
|
}
|
2018-12-28 08:36:56 +01:00
|
|
|
|
2019-01-04 18:05:35 +01:00
|
|
|
mod:block {
|
|
|
|
id = "water",
|
|
|
|
name = "Water",
|
2020-02-03 15:29:00 +09:00
|
|
|
tiles = "water.png",
|
2020-02-19 19:30:07 +09:00
|
|
|
color_multiplier = {51, 115, 255, 217},
|
2020-02-03 16:07:14 +09:00
|
|
|
draw_type = 3, -- FIXME: Use string instead
|
|
|
|
is_opaque = false,
|
2019-01-04 18:05:35 +01:00
|
|
|
}
|
2018-12-28 08:36:56 +01:00
|
|
|
|
2019-01-04 18:05:35 +01:00
|
|
|
mod:block {
|
|
|
|
id = "glass",
|
|
|
|
name = "Glass",
|
2020-02-03 15:38:34 +09:00
|
|
|
tiles = "glass.png",
|
2020-02-03 16:07:14 +09:00
|
|
|
draw_type = 4, -- FIXME: Use string instead
|
|
|
|
is_opaque = false,
|
2019-01-04 18:05:35 +01:00
|
|
|
}
|
2018-12-28 08:36:56 +01:00
|
|
|
|
2019-01-04 18:05:35 +01:00
|
|
|
mod:block {
|
|
|
|
id = "ore_coal",
|
|
|
|
name = "Coal Ore",
|
2020-01-30 17:25:48 +09:00
|
|
|
tiles = "coal_ore.png",
|
2018-12-28 08:36:56 +01:00
|
|
|
hardness = 3,
|
|
|
|
harvest_requirements = 1,
|
|
|
|
item_drop = {
|
2019-01-04 18:05:35 +01:00
|
|
|
id = mod:id()..":coal",
|
2018-12-28 08:36:56 +01:00
|
|
|
amount = 1
|
|
|
|
},
|
2019-01-04 18:05:35 +01:00
|
|
|
}
|
2018-12-28 08:36:56 +01:00
|
|
|
|
2019-01-04 18:05:35 +01:00
|
|
|
mod:block {
|
|
|
|
id = "planks",
|
|
|
|
name = "Planks",
|
2020-01-30 17:25:48 +09:00
|
|
|
tiles = "oak_planks.png"
|
2019-01-04 18:05:35 +01:00
|
|
|
}
|
2018-12-28 08:36:56 +01:00
|
|
|
|
2019-01-04 18:05:35 +01:00
|
|
|
mod:block {
|
|
|
|
id = "glowstone",
|
|
|
|
name = "Glowstone",
|
2020-02-03 19:01:11 +09:00
|
|
|
tiles = "glowstone.png",
|
|
|
|
is_light_source = true
|
2019-01-04 18:05:35 +01:00
|
|
|
}
|
2018-12-28 08:36:56 +01:00
|
|
|
|
2020-01-30 21:53:28 +09:00
|
|
|
dofile("mods/default/workbench.lua")
|
|
|
|
dofile("mods/default/furnace.lua")
|
2018-12-28 08:36:56 +01:00
|
|
|
|
2019-01-04 18:05:35 +01:00
|
|
|
mod:block {
|
2020-01-30 15:31:49 +09:00
|
|
|
id = "iron_ore",
|
2019-01-04 18:05:35 +01:00
|
|
|
name = "Iron Ore",
|
2020-01-30 17:25:48 +09:00
|
|
|
tiles = "iron_ore.png",
|
2018-12-28 08:36:56 +01:00
|
|
|
hardness = 3,
|
|
|
|
harvest_requirements = 1,
|
2019-01-04 18:05:35 +01:00
|
|
|
}
|
2018-12-28 08:36:56 +01:00
|
|
|
|
2019-01-05 05:41:18 +01:00
|
|
|
mod:block {
|
|
|
|
id = "flower",
|
|
|
|
name = "Flower",
|
2020-01-30 17:25:48 +09:00
|
|
|
tiles = "dandelion.png",
|
2019-01-07 01:26:02 +01:00
|
|
|
hardness = 0.05,
|
2020-02-03 15:10:09 +09:00
|
|
|
draw_type = 1, -- FIXME: Use string instead
|
2020-02-03 11:13:23 +09:00
|
|
|
bounding_box = {0.25, 0.0, 0.25, 0.5, 0.5, 0.5},
|
2019-01-05 05:41:18 +01:00
|
|
|
}
|
|
|
|
|