diff --git a/LICENSE b/LICENSE index 68a49da..b44a8df 100644 --- a/LICENSE +++ b/LICENSE @@ -22,3 +22,25 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. For more information, please refer to + + +-- or -- + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. + + +-- or -- + +Whatever license you feel like. AGPLv3 is nice. ;) diff --git a/README.md b/README.md index 36d3868..ba28985 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,48 @@ minetest_bitumen ================ +by Izzy +Lots of code "borrowed" from RealBadAngel, VanessaE. + +Introduction: Adds bitumen to minetest, including tar sands, oil shale, refineries, and some basic generators + +How to install: +Unzip the archive an place it in minetest-base-directory/mods/minetest/ +if you have a windows client or a linux run-in-place client. If you have +a linux system-wide instalation place it in ~/.minetest/mods/minetest/. +If you want to install this mod only in one world create the folder +worldmods/ in your worlddirectory. +For further information or help see: + + + +License: +UNLICENSE (see LICENSE file in package) +--or-- +WTFPL (see below) +--or-- +Whatever license you feel like. AGPLv3 is nice. ;) + +See also: + + + + + + + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. + diff --git a/depends.txt b/depends.txt new file mode 100644 index 0000000..523579b --- /dev/null +++ b/depends.txt @@ -0,0 +1,3 @@ +moretrees +pipeworks +technic diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..2b11ba0 --- /dev/null +++ b/init.lua @@ -0,0 +1,6 @@ +local modpath = minetest.get_modpath("bitumen") +-- dofile(modpath.."/plastic.lua") +dofile(modpath.."/tarsands.lua") +dofile(modpath.."/oilshale.lua") + + diff --git a/oilshale.lua b/oilshale.lua new file mode 100644 index 0000000..89970d2 --- /dev/null +++ b/oilshale.lua @@ -0,0 +1,23 @@ + -- need to get the info for stone-type things +minetest.register_node( "atomic:oil_shale", { + description = "Oil Shale", + tiles = { "default_coal_block.png" }, + is_ground_content = true, + groups = {choppy=2}, + sounds = default.node_sound_wood_defaults(), +}) + + + +minetest.register_ore({ + ore_type = "sheet", + ore = "atomic:oil_shale", + wherein = "air", + clust_scarcity = 1, + clust_num_ores = 1, + clust_size = 4, + height_min = 50, + height_max = 100, + noise_threshhold = 0.4, + noise_params = {offset=0, scale=15, spread={x=130, y=130, z=130}, seed=24, octaves=3, persist=0.70} +}) \ No newline at end of file diff --git a/plastic.lua b/plastic.lua new file mode 100644 index 0000000..d61e40d --- /dev/null +++ b/plastic.lua @@ -0,0 +1,7 @@ + +-- compatibility for plastic mod. + + +-- extractor plastic into oil + + \ No newline at end of file diff --git a/tarsands.lua b/tarsands.lua new file mode 100644 index 0000000..9e185d5 --- /dev/null +++ b/tarsands.lua @@ -0,0 +1,62 @@ + + +-- oil drums. plastic and steel +-- oil containers, for carrying +-- oil storage tanks +-- cracking tower + +-- generators + + +-- add bananas/cocoa to chainsaw +-- flower seeds and garden +-- "sucker"/"fetcher" that will pull an item from the connected system + +-- need to get the info for sand-type things +minetest.register_node( "atomic:tar_sand", { + description = "Tar Sand", + tiles = { "bitumen_tar_sand.png" }, + is_ground_content = true, + groups = {choppy=2}, + sounds = default.node_sound_wood_defaults(), + drop = 'craft "atomic:bitumen" 1', + +}) + +minetest.register_craftitem(":atomic:bitumen", { + description = "Bitumen", + inventory_image = "bitumen_bitumen.png", + on_place_on_ground = minetest.craftitem_place_item, +}) + +-- upper layer +minetest.register_ore({ + ore_type = "sheet", + ore = "atomic:tar_sand", + wherein = "default:desertstone", + clust_scarcity = 1, + clust_num_ores = 1, + clust_size = 4, + height_min = 0, + height_max = 20, + noise_threshhold = 0.4, + noise_params = {offset=0, scale=15, spread={x=130, y=130, z=130}, seed=24, octaves=3, persist=0.70} +}) + + +-- lower layer +minetest.register_ore({ + ore_type = "sheet", + ore = "atomic:tar_sand", + wherein = "default:stone", + clust_scarcity = 1, + clust_num_ores = 1, + clust_size = 4, + height_min = -50, + height_max = 0, + noise_threshhold = 0.4, + noise_params = {offset=0, scale=15, spread={x=130, y=130, z=130}, seed=24, octaves=3, persist=0.70} +}) + + + diff --git a/textures/bitumen_bitumen.png b/textures/bitumen_bitumen.png new file mode 100644 index 0000000..e62c977 Binary files /dev/null and b/textures/bitumen_bitumen.png differ diff --git a/textures/bitumen_bitumen_normal.png b/textures/bitumen_bitumen_normal.png new file mode 100644 index 0000000..e669868 Binary files /dev/null and b/textures/bitumen_bitumen_normal.png differ diff --git a/textures/bitumen_tar_sand.png b/textures/bitumen_tar_sand.png new file mode 100644 index 0000000..7e9f566 Binary files /dev/null and b/textures/bitumen_tar_sand.png differ diff --git a/textures/bitumen_tar_sand_normal.png b/textures/bitumen_tar_sand_normal.png new file mode 100644 index 0000000..94b223e Binary files /dev/null and b/textures/bitumen_tar_sand_normal.png differ diff --git a/textures/normals.sh b/textures/normals.sh new file mode 100644 index 0000000..9bf2bdf --- /dev/null +++ b/textures/normals.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +function normalMap() +{ + gimp -i -b "(define (normalMap-fbx-conversion fileName newFileName nscale) (let* ((image (car (gimp-file-load RUN-NONINTERACTIVE fileName fileName))) (drawable (car (gimp-image-get-active-layer image)))) (plug-in-normalmap RUN-NONINTERACTIVE image drawable 7 0.0 nscale 0 0 0 0 0 0 0 0 0.0 drawable ) (gimp-file-save RUN-NONINTERACTIVE image drawable newFileName newFileName) (gimp-image-delete image))) (normalMap-fbx-conversion \"$1\" \"$2\" $3)" -b '(gimp-quit 0)' +} + +for file in `ls *.png | grep -v _normal` +do + normalMap $file `echo $file | sed 's/.png/_normal.png/'` 8 +done