initial commit.

everything's broken.
lots of cruft and leftover coppied code.
meh.
master
dhunt 2013-10-09 13:42:16 -07:00
parent 8dd6b96979
commit fcc9cb9ca1
12 changed files with 178 additions and 0 deletions

22
LICENSE
View File

@ -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 <http://unlicense.org/>
-- or --
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
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. ;)

View File

@ -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:
<http://wiki.minetest.com/wiki/Installing_Mods>
License:
UNLICENSE (see LICENSE file in package)
--or--
WTFPL (see below)
--or--
Whatever license you feel like. AGPLv3 is nice. ;)
See also:
<http://minetest.net/>
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
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.

3
depends.txt Normal file
View File

@ -0,0 +1,3 @@
moretrees
pipeworks
technic

6
init.lua Normal file
View File

@ -0,0 +1,6 @@
local modpath = minetest.get_modpath("bitumen")
-- dofile(modpath.."/plastic.lua")
dofile(modpath.."/tarsands.lua")
dofile(modpath.."/oilshale.lua")

23
oilshale.lua Normal file
View File

@ -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}
})

7
plastic.lua Normal file
View File

@ -0,0 +1,7 @@
-- compatibility for plastic mod.
-- extractor plastic into oil

62
tarsands.lua Normal file
View File

@ -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}
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

11
textures/normals.sh Normal file
View File

@ -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