summaryrefslogtreecommitdiff
path: root/fake_fire
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-08-12 20:37:50 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-08-12 20:37:50 -0400
commit4aab7d0dbd782cf6741bdbba94440faf0c5c2e61 (patch)
treef5a13374fb176c21e381a2ae6ab53ac2ff282057 /fake_fire
parent047a770ad04fc264039fa5b6109c803bd3d2d258 (diff)
downloaddreambuilder_modpack-4aab7d0dbd782cf6741bdbba94440faf0c5c2e61.tar
dreambuilder_modpack-4aab7d0dbd782cf6741bdbba94440faf0c5c2e61.tar.gz
dreambuilder_modpack-4aab7d0dbd782cf6741bdbba94440faf0c5c2e61.tar.bz2
dreambuilder_modpack-4aab7d0dbd782cf6741bdbba94440faf0c5c2e61.tar.xz
dreambuilder_modpack-4aab7d0dbd782cf6741bdbba94440faf0c5c2e61.zip
updated several mods
biome_lib, boost cart, homedecor modpack, plantlife modpack, cottages, currency, farming redo, gloopblocks, ilights, moreores, moretrees, pipeworks, plasticbox, replacer, signs_lib, streets, travelnet, unified dyes, and vines, and maybe one or two others that I didn't see in the list. :-) I fixed the misc_overrides component (it broke when I switched over to farming redo a while back), and also I've added the classic peaceful_npc mod back into the modpack, since it seems to work now. Be sure when you run a world for the first time after this update, that you "Configure" the world, *disable* all of Dreambuilder Modpack, then re-enable the whole thing. If you don't, a few mods will fail to load due to recent changes in their dependencies.
Diffstat (limited to 'fake_fire')
-rw-r--r--fake_fire/init.lua104
1 files changed, 36 insertions, 68 deletions
diff --git a/fake_fire/init.lua b/fake_fire/init.lua
index 20cd442..628438b 100644
--- a/fake_fire/init.lua
+++ b/fake_fire/init.lua
@@ -66,43 +66,36 @@ local function stop_smoke(pos)
this_spawner_meta:set_int("sound", nil)
end
--- FLAME TYPES
-local flame_types = {
- { "fake", S("Fake fire") },
- { "ice", S("Ice fire") },
-}
+minetest.register_node("fake_fire:ice_fire", {
+ inventory_image = "ice_fire_inv.png",
+ description = desc,
+ drawtype = "plantlike",
+ paramtype = "light",
+ paramtype2 = "facedir",
+ groups = {dig_immediate=3, not_in_creative_inventory=1},
+ sunlight_propagates = true,
+ buildable_to = true,
+ walkable = false,
+ light_source = 14,
+ waving = 1,
+ tiles = {
+ {name="ice_fire_animated.png", animation={type="vertical_frames",
+ aspect_w=16, aspect_h=16, length=1.5}},
+ },
+ on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
+ start_smoke(pos, node, clicker)
+ return itemstack
+ end,
+ on_destruct = function (pos)
+ stop_smoke(pos)
+ minetest.sound_play("fire_extinguish", {
+ pos = pos, max_hear_distance = 5
+ })
+ end,
+ drop = ""
+})
-for _, f in ipairs(flame_types) do
- local name, desc = unpack(f)
- minetest.register_node("fake_fire:"..name.."_fire", {
- inventory_image = name.."_fire_inv.png",
- description = desc,
- drawtype = "plantlike",
- paramtype = "light",
- paramtype2 = "facedir",
- groups = {dig_immediate=3, not_in_creative_inventory=1},
- sunlight_propagates = true,
- buildable_to = true,
- walkable = false,
- light_source = 14,
- waving = 1,
- tiles = {
- {name=name.."_fire_animated.png", animation={type="vertical_frames",
- aspect_w=16, aspect_h=16, length=1.5}},
- },
- on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
- start_smoke(pos, node, clicker)
- return itemstack
- end,
- on_destruct = function (pos)
- stop_smoke(pos)
- minetest.sound_play("fire_extinguish", {
- pos = pos, max_hear_distance = 5
- })
- end,
- drop = ""
- })
-end
+minetest.register_alias("fake_fire:fake_fire", "fire:permanent_flame")
minetest.register_node("fake_fire:fancy_fire", {
inventory_image = "fancy_fire_inv.png",
@@ -190,43 +183,18 @@ for _, mat in ipairs(materials) do
})
end
--- FLINT and STEEL
-minetest.register_tool("fake_fire:flint_and_steel", {
- description = S("Flint and steel"),
- inventory_image = "flint_and_steel.png",
- liquids_pointable = false,
- stack_max = 1,
- tool_capabilities = {
- full_punch_interval = 1.0,
- max_drop_level=0,
- groupcaps={flamable = {uses=65, maxlevel=1}}
- },
- on_use = function(itemstack, user, pointed_thing)
- if pointed_thing.type == "node" and minetest.get_node(pointed_thing.above).name == "air" then
- if not minetest.is_protected(pointed_thing.above, user:get_player_name()) then
- if string.find(minetest.get_node(pointed_thing.under).name, "ice") then
- minetest.set_node(pointed_thing.above, {name="fake_fire:ice_fire"})
- else
- minetest.set_node(pointed_thing.above, {name="fake_fire:fake_fire"})
- end
- else
- minetest.chat_send_player(user:get_player_name(), S("This area is protected!"))
- end
- else
- return
- end
+minetest.register_alias("fake_fire:flint_and_steel", "fire:flint_and_steel")
- itemstack:add_wear(65535/65)
- return itemstack
+minetest.override_item("default:ice", {
+ on_ignite = function(pos, igniter)
+ local flame_pos = {x = pos.x, y = pos.y + 1, z = pos.z}
+ if minetest.get_node(flame_pos).name == "air" then
+ minetest.set_node(flame_pos, {name = "fake_fire:ice_fire"})
+ end
end
})
-- CRAFTS
-minetest.register_craft({
- type = "shapeless",
- output = 'fake_fire:flint_and_steel',
- recipe = {"default:obsidian_shard", "default:steel_ingot"}
-})
minetest.register_craft({
type = "shapeless",