poikilos
6 years ago
committed by
Jacob Gustafson
14 changed files with 168 additions and 0 deletions
@ -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. |
@ -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. |
@ -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 |
@ -0,0 +1,2 @@ |
|||
bucket? |
|||
mesecons? |
@ -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") |
@ -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}, |
|||
}) |
@ -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 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 41 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 4.2 KiB |
Loading…
Reference in new issue