mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-11-14 22:30:36 +01:00
6f492914db
Used and re-licensed with permission of LazyJ and jp: ``` [07-27 10:02] <jp__> Hi Vanessa. I replaced the LazyJ's smokes nodes by few particules : https://forum.minetest.net/viewtopic.php?p=149534#p149534 [07-27 10:03] <jp__> Now I think this mod is mature for integrate Homedecor... [07-27 10:17] <VanessaE> LazyJ: homedecor is LGPL. your code is GPL. by extension so is jp's fork. [07-27 10:18] <VanessaE> I'd like to include his fork of your mod into homedecor modpack. [07-27 10:18] <VanessaE> your permission is required :) [07-27 10:18] <LazyJ> Ok. [07-27 10:18] <LazyJ> What's the difference between LGPL and GPL? I just go with whatever the original author uses. [07-27 10:19] <VanessaE> beats the hell out of me exactly except LGPL is supposed to make it easier to use code so-licensed in proprietary projects or something. [07-27 10:19] <VanessaE> I only use it because minetest_game did and I got some code from there. [07-27 10:20] <LazyJ> Ok with me to use it. [07-27 10:21] <LazyJ> Credit to semmett9 too. ```
169 lines
3.3 KiB
Lua
169 lines
3.3 KiB
Lua
--[[
|
|
|
|
NEVER-ENDING FLINT and STEEL
|
|
|
|
Uncraftable, at the moment, and I'm not sure yet how many wanna-be-firebug
|
|
griefers are going to litter with fake-fire. Why give them this if it only
|
|
makes the mess bigger? ~ LazyJ, 2014_03_13
|
|
|
|
May add a priv for this later so trusted players can use it.
|
|
~ LazyJ, 2014_06_19
|
|
|
|
minetest.register_craftitem("fake_fire:old_flint_and_steel", {
|
|
description = "Never ending flint and steel",
|
|
inventory_image = "flint_and_steel.png",
|
|
stack_max = 1,
|
|
liquids_pointable = false,
|
|
on_use = function(itemstack, user, pointed_thing)
|
|
n = minetest.env:get_node(pointed_thing)
|
|
if pointed_thing.type == "node" then
|
|
minetest.env:add_node(pointed_thing.above,
|
|
{name="fake_fire:fake_fire"})
|
|
minetest.sound_play("",
|
|
{gain = 1.0, max_hear_distance = 20,})
|
|
end
|
|
end
|
|
})
|
|
--]]
|
|
|
|
|
|
-- RECIPE ITEM - FLINT
|
|
minetest.register_craftitem("fake_fire:flint", {
|
|
description = "flint",
|
|
inventory_image = "flint.png",
|
|
stack_max = 99,
|
|
liquids_pointable = false,
|
|
})
|
|
|
|
|
|
|
|
-- FLINT
|
|
minetest.register_craft({
|
|
type = "shapeless",
|
|
output = 'fake_fire:flint',
|
|
recipe = {
|
|
"default:gravel",
|
|
"default:gravel",
|
|
}
|
|
})
|
|
|
|
|
|
|
|
-- FLINT & STEEL
|
|
minetest.register_craft({
|
|
type = "shapeless",
|
|
output = 'fake_fire:flint_and_steel',
|
|
recipe = {
|
|
"fake_fire:flint",
|
|
"default:steel_ingot",
|
|
}
|
|
})
|
|
|
|
|
|
|
|
-- EMBERS
|
|
minetest.register_craft({
|
|
type = "shapeless",
|
|
output = 'fake_fire:embers',
|
|
recipe = {
|
|
"default:torch",
|
|
"group:wood",
|
|
}
|
|
})
|
|
|
|
|
|
|
|
-- CHIMNEY TOPS - SMOKELESS
|
|
|
|
-- Only the smokeless kind will be craftable and shown in the inventory.
|
|
-- The nodes are coded to switch to the smoking chimney tops when punched.
|
|
-- ~ LazyJ
|
|
|
|
-- STONE CHIMNEY TOP
|
|
minetest.register_craft({
|
|
type = "shapeless",
|
|
output = 'fake_fire:smokeless_chimney_top_stone',
|
|
recipe = {
|
|
"default:torch",
|
|
"stairs:slab_stone",
|
|
}
|
|
})
|
|
|
|
|
|
|
|
-- SANDSTONE CHIMNEY TOP
|
|
minetest.register_craft({
|
|
type = "shapeless",
|
|
output = 'fake_fire:smokeless_chimney_top_sandstone',
|
|
recipe = {
|
|
"default:torch",
|
|
"stairs:slab_sandstone",
|
|
}
|
|
})
|
|
|
|
|
|
|
|
-- Crafting Chain - Cobble-to-Gravel-to-Sand and Convert Sands
|
|
|
|
--[[
|
|
|
|
Craft one cobble into one gravel.
|
|
Craft one gravel into one sand.
|
|
Convert-craft sand to desert sand and vice-versa.
|
|
|
|
This was suggested by klappspaten and it makes sense in both its natural
|
|
progression and as a practical way for players to get some of the non-
|
|
renewable resources that they need.
|
|
|
|
Because the gravel-to-sand recipe (from one of our other custom mods)
|
|
conflicted with the Fake Fire mod's flint recipe, the Fake Fire mod's
|
|
recipe was changed to require 2 gravel.
|
|
|
|
I've added the cobble-gravel-sand and convert sands recipes as a bonus and
|
|
to make-up for the more expensive flint recipe. You can comment-out these
|
|
recipes because they aren't *required* by this fork of Fake Fire, but they
|
|
*are* handy recipes to have.
|
|
|
|
~ LazyJ
|
|
|
|
|
|
|
|
--]]
|
|
|
|
-- Cobble to Gravel
|
|
minetest.register_craft({
|
|
output = 'default:gravel',
|
|
recipe = {
|
|
{'default:cobble'},
|
|
}
|
|
})
|
|
|
|
|
|
|
|
-- Gravel to Sand
|
|
minetest.register_craft({
|
|
output = 'default:sand',
|
|
recipe = {
|
|
{'default:gravel'},
|
|
}
|
|
})
|
|
|
|
|
|
|
|
-- Desert Sand to Sand
|
|
minetest.register_craft({
|
|
output = 'default:sand',
|
|
recipe = {
|
|
{'default:desert_sand'},
|
|
}
|
|
})
|
|
|
|
|
|
|
|
-- Sand to Desert Sand
|
|
minetest.register_craft({
|
|
output = 'default:desert_sand',
|
|
recipe = {
|
|
{'default:sand'},
|
|
}
|
|
}) |