mirror of
https://github.com/minetest-mods/more_chests.git
synced 2025-06-30 14:20:31 +02:00
Mod rewrite and new models (#21)
* Aliases moved to utils folder * Method to generate two different formspec layouts, big and small * Log Actions moved to separate module * Added method to generate a chest definition * Rewritten models * Add Fridge model * Add Toolbox models * "Mod loaded" message; Updated localization template * Add Italian localization * Fridge now has both normal and big (2 blocks) models * Fixed mixed indentation * Rewritten README; improved IT and FR (thanks to @louisroyer) localizations.
This commit is contained in:
26
models/cobble.lua
Normal file
26
models/cobble.lua
Normal file
@ -0,0 +1,26 @@
|
||||
local gen_def = dofile(minetest.get_modpath("more_chests") .. "/utils/base.lua")
|
||||
local S = minetest.get_translator("more_chests")
|
||||
|
||||
local cobble = gen_def({
|
||||
description = S("Cobble Chest"),
|
||||
type = "chest",
|
||||
size = "small",
|
||||
tiles = {
|
||||
top = "default_cobble.png",
|
||||
side = "default_cobble.png",
|
||||
front = "cobblechest_front.png"
|
||||
},
|
||||
pipeworks_enabled = true,
|
||||
recipe = {
|
||||
{"group:wood", "default:cobble", "group:wood"},
|
||||
{"default:cobble", "default:steel_ingot", "default:cobble"},
|
||||
{"group:wood", "default:cobble", "group:wood"}
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
minetest.register_node("more_chests:cobble", cobble)
|
||||
minetest.register_craft({
|
||||
output = "more_chests:cobble",
|
||||
recipe = cobble.recipe,
|
||||
})
|
Reference in New Issue
Block a user