diff --git a/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/LICENSE b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/LICENSE new file mode 100644 index 0000000..97d3f20 --- /dev/null +++ b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 Poikilos (Jake Gustafson) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/README.md b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/README.md new file mode 100644 index 0000000..4468892 --- /dev/null +++ b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/README.md @@ -0,0 +1,21 @@ +# volcanic +(minetest mod) + +Using worldedit, make permanent lava flow shapes. + +## Usage +* select "lava fall" with worldedit +* replace "default:lava_flowing" with "volcanic:crusted_lava_flowing" +* replace "default:lava_source" with "volcanic:crusted_lava_source" + +## Licenses + +* Code: Open LICENCE file in your favorite text editor + (code from the Minetest default mod is trivial) +* Lava Gel Texture + CC BY-SA 3.0 + Attribution: Cisoun's texture pack, edited by Poikilos +* Lava Gel Cool Lava Bucket Texture + based on: + - CC BY-SA 3.0 Lava from Cisoun's texture pack, edited by Poikilos + - (c) 2015-2019 and CC BY-SA 3.0: Realistic Bucket by ElementW, modified by Poikilos. diff --git a/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/buckets.lua b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/buckets.lua new file mode 100644 index 0000000..c0a56b1 --- /dev/null +++ b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/buckets.lua @@ -0,0 +1,9 @@ +if rawget(_G, "bucket") and bucket.register_liquid then + bucket.register_liquid( + "volcanic:crusted_lava_source", + "volcanic:crusted_lava_flowing", + "volcanic:bucket_crusted_lava", + "volcanic_bucket_crusted_lava.png", + "Crusted Lava Bucket" + ) +end diff --git a/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/depends.txt b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/depends.txt new file mode 100644 index 0000000..2d4fd2f --- /dev/null +++ b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/depends.txt @@ -0,0 +1,2 @@ +bucket? +mesecons? diff --git a/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/init.lua b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/init.lua new file mode 100644 index 0000000..b361ba2 --- /dev/null +++ b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/init.lua @@ -0,0 +1,3 @@ +dofile(minetest.get_modpath("volcanic").."/nodes.lua") +dofile(minetest.get_modpath("volcanic").."/buckets.lua") +dofile(minetest.get_modpath("volcanic").."/recipes.lua") diff --git a/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/nodes.lua b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/nodes.lua new file mode 100644 index 0000000..343de1e --- /dev/null +++ b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/nodes.lua @@ -0,0 +1,98 @@ +-- exactly the same as lava_source and lava_flowing code from default, except: +-- * names are changed +-- * added liquid_range = 0 +-- * changed liquid_alternative_* params +-- * removed igniter from groups +minetest.register_node("volcanic:crusted_lava_source", { + description = "Crusted Lava Source", + drawtype = "liquid", + tiles = { + { + name = "volcanic_crusted_lava_source_animated.png", + animation = { + type = "vertical_frames", + aspect_w = 16, + aspect_h = 16, + length = 3.0, + }, + }, + }, + special_tiles = { + -- New-style lava source material (mostly unused) + { + name = "volcanic_crusted_lava_source_animated.png", + animation = { + type = "vertical_frames", + aspect_w = 16, + aspect_h = 16, + length = 3.0, + }, + backface_culling = false, + }, + }, + paramtype = "light", + light_source = default.LIGHT_MAX - 1, + walkable = true, + pointable = false, + diggable = false, + buildable_to = true, + is_ground_content = false, + drop = "", + drowning = 1, + liquidtype = "source", + liquid_alternative_flowing = "volcanic:crusted_lava_flowing", + liquid_alternative_source = "volcanic:crusted_lava_source", + liquid_range = 0, + liquid_viscosity = 7, + liquid_renewable = false, + damage_per_second = 2, -- formerly 4 * 2 + post_effect_color = {a = 191, r = 255, g = 64, b = 0}, + groups = {lava = 3, liquid = 2, hot = 3}, +}) +minetest.register_node("volcanic:crusted_lava_flowing", { + description = "Flowing Crusted Lava", + drawtype = "flowingliquid", + tiles = {"volcanic_crusted_lava.png"}, + special_tiles = { + { + name = "volcanic_crusted_lava_source_animated.png", -- intentionally use source animation + backface_culling = false, + animation = { + type = "vertical_frames", + aspect_w = 16, + aspect_h = 16, + length = 3.3, + }, + }, + { + name = "volcanic_crusted_lava_source_animated.png", -- intentionally use source animation + backface_culling = true, + animation = { + type = "vertical_frames", + aspect_w = 16, + aspect_h = 16, + length = 3.3, + }, + }, + }, + paramtype = "light", + paramtype2 = "flowingliquid", + light_source = default.LIGHT_MAX - 1, + walkable = true, + pointable = true, + diggable = true, + buildable_to = true, + is_ground_content = false, + drop = 'default:cobble', + drowning = 1, + liquidtype = "none", + liquid_alternative_flowing = "volcanic:crusted_lava_flowing", + liquid_alternative_source = "volcanic:crusted_lava_source", + liquid_range = 0, + liquid_viscosity = 7, + liquid_renewable = false, + damage_per_second = 2, -- formerly 4 * 2 + post_effect_color = {a = 191, r = 255, g = 64, b = 0}, + groups = {lava = 3, hot = 3, + not_in_creative_inventory = 1, crumbly = 3, cracky = 3}, +}) diff --git a/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/recipes.lua b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/recipes.lua new file mode 100644 index 0000000..adb56b3 --- /dev/null +++ b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/recipes.lua @@ -0,0 +1,14 @@ +local glue_fullname = nil + +if mesecons_materials then + glue_fullname = "mesecons_materials:glue" +elseif technic then + glue_fullname = "technic:glue" +end +if glue_fullname then + minetest.register_craft({ + type = "shapeless", + output = "volcanic:bucket_crusted_lava", + recipe = {"bucket:bucket_lava", glue_fullname}, + }) +end diff --git a/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/src/volcanic_bucket_crusted_lava.xcf b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/src/volcanic_bucket_crusted_lava.xcf new file mode 100644 index 0000000..56cec0b Binary files /dev/null and b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/src/volcanic_bucket_crusted_lava.xcf differ diff --git a/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/src/volcanic_crusted_lava_flowing_animated.xcf b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/src/volcanic_crusted_lava_flowing_animated.xcf new file mode 100644 index 0000000..e311ee4 Binary files /dev/null and b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/src/volcanic_crusted_lava_flowing_animated.xcf differ diff --git a/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/src/volcanic_crusted_lava_source_animated.xcf b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/src/volcanic_crusted_lava_source_animated.xcf new file mode 100644 index 0000000..d7914d3 Binary files /dev/null and b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/src/volcanic_crusted_lava_source_animated.xcf differ diff --git a/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/textures/volcanic_bucket_crusted_lava.png b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/textures/volcanic_bucket_crusted_lava.png new file mode 100644 index 0000000..da69e6d Binary files /dev/null and b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/textures/volcanic_bucket_crusted_lava.png differ diff --git a/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/textures/volcanic_crusted_lava.png b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/textures/volcanic_crusted_lava.png new file mode 100644 index 0000000..6dbe419 Binary files /dev/null and b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/textures/volcanic_crusted_lava.png differ diff --git a/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/textures/volcanic_crusted_lava_flowing_animated.png b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/textures/volcanic_crusted_lava_flowing_animated.png new file mode 100644 index 0000000..bdaa3c6 Binary files /dev/null and b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/textures/volcanic_crusted_lava_flowing_animated.png differ diff --git a/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/textures/volcanic_crusted_lava_source_animated.png b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/textures/volcanic_crusted_lava_source_animated.png new file mode 100644 index 0000000..4ea0ef7 Binary files /dev/null and b/patches/deprecated/merged-upstream/pre-Bucket_Game/mods/volcanic/textures/volcanic_crusted_lava_source_animated.png differ