mirror of
https://github.com/Dragonop/claycrafter.git
synced 2025-07-14 09:20:14 +02:00
Compare commits
6 Commits
1.0
...
fc9daaa401
Author | SHA1 | Date | |
---|---|---|---|
fc9daaa401 | |||
34575ded4d | |||
902f3c0e4c | |||
1a64404611 | |||
f62ad8ef38 | |||
feb2efb6bc |
21
README.md
21
README.md
@ -5,28 +5,15 @@ Dependencies:
|
|||||||
Default
|
Default
|
||||||
Vessels
|
Vessels
|
||||||
Bucket
|
Bucket
|
||||||
|
moreblocks (optional)
|
||||||
|
|
||||||
claycrafter.lua is derivated from furnace.lua (minetest_game) by PilzAdam and Amaz1.
|
claycrafter.lua is derivated from furnace.lua (minetest_game) by PilzAdam and Amaz1.
|
||||||
Edited by everamzah to work for this mod.
|
Edited by everamzah to work for this mod.
|
||||||
|
|
||||||
#####License for Code
|
#####License for Code
|
||||||
|
|
||||||
Copyright (C) 2016 Dragonop <joaco-mono@hotmail.com>
|
Dragonop (LGPLv3)
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
#####License for Media
|
||||||
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,
|
Textures by Dragonop (CC-BY-SA 4.0)
|
||||||
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.
|
|
||||||
|
|
||||||
#####License for Textures, Models and Sounds
|
|
||||||
|
|
||||||
CC-BY-SA 3.0 UNPORTED. Created by Dragonop
|
|
||||||
|
@ -200,10 +200,13 @@ minetest.register_abm({
|
|||||||
--
|
--
|
||||||
-- Cooking
|
-- Cooking
|
||||||
--
|
--
|
||||||
|
local compressed_dirt = "claycrafter:compressed_dirt"
|
||||||
|
if minetest.get_modpath("moreblocks") then
|
||||||
|
compressed_dirt = "moreblocks:dirt_compressed"
|
||||||
|
end
|
||||||
local cooktime = minetest.get_item_group(inv:get_stack("fuel", 1):get_name(), "h2o")
|
local cooktime = minetest.get_item_group(inv:get_stack("fuel", 1):get_name(), "h2o")
|
||||||
local cookable = true
|
local cookable = true
|
||||||
if inv:get_stack("src", 1):get_name() ~= "claycrafter:compressed_dirt" then
|
if inv:get_stack("src", 1):get_name() ~= compressed_dirt then
|
||||||
cookable = false
|
cookable = false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
2
init.lua
2
init.lua
@ -5,3 +5,5 @@ local modpath = minetest.get_modpath("claycrafter")
|
|||||||
dofile(modpath .. "/items.lua")
|
dofile(modpath .. "/items.lua")
|
||||||
dofile(modpath .. "/recipes.lua")
|
dofile(modpath .. "/recipes.lua")
|
||||||
dofile(modpath .. "/claycrafter.lua")
|
dofile(modpath .. "/claycrafter.lua")
|
||||||
|
|
||||||
|
minetest.log("action", "[claycrafter] loaded.")
|
||||||
|
@ -1,8 +1,12 @@
|
|||||||
|
if minetest.get_modpath("moreblocks") then
|
||||||
|
minetest.register_alias("claycrafter:compressed_dirt", "moreblocks:dirt_compressed")
|
||||||
|
else
|
||||||
minetest.register_node("claycrafter:compressed_dirt", {
|
minetest.register_node("claycrafter:compressed_dirt", {
|
||||||
description = "Compressed Dirt",
|
description = "Compressed Dirt",
|
||||||
tiles = {"claycrafter_compressed_dirt.png"},
|
tiles = {"claycrafter_compressed_dirt.png"},
|
||||||
groups = {crumbly = 1, oddly_breakable_by_hand = 1, soil = 1, cracky =1}
|
groups = {crumbly = 1, oddly_breakable_by_hand = 1, soil = 1, cracky =1}
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_node("claycrafter:glass_of_water", {
|
minetest.register_node("claycrafter:glass_of_water", {
|
||||||
description = ("Glass of Water"),
|
description = ("Glass of Water"),
|
||||||
|
1
mod.conf
1
mod.conf
@ -1,4 +1,5 @@
|
|||||||
name = claycrafter
|
name = claycrafter
|
||||||
description = This mod introduces the Claycrafter, which converts Compressed Dirt to Clay using Glasses of Water.
|
description = This mod introduces the Claycrafter, which converts Compressed Dirt to Clay using Glasses of Water.
|
||||||
depends = vessels, default, bucket
|
depends = vessels, default, bucket
|
||||||
|
optional_depends = moreblocks
|
||||||
author = Dragonop
|
author = Dragonop
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
if not minetest.get_modpath("moreblocks") then
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "claycrafter:compressed_dirt",
|
output = "claycrafter:compressed_dirt",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -6,6 +7,7 @@ minetest.register_craft({
|
|||||||
{"default:dirt", "default:dirt", "default:dirt"}
|
{"default:dirt", "default:dirt", "default:dirt"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "default:dirt 9",
|
output = "default:dirt 9",
|
||||||
|
Reference in New Issue
Block a user