1
0
mirror of https://github.com/HybridDog/nether-pack.git synced 2025-07-14 14:00:19 +02:00

Added craft definitions for nether, and added obsidian mod

This commit is contained in:
Joel Leclerc
2012-04-18 16:26:47 -06:00
parent be5c41f76d
commit d8e3a0864c
8 changed files with 213 additions and 10 deletions

81
obsidian/crafting.txt Normal file
View File

@ -0,0 +1,81 @@
Obsidian Crafting:
LEGEND: x=obsidian block
o=nothing
i=obsidian rod
S=obsidian shard
c=coal lump
m=mese (or mese ore if you use the default mod from my texture pack)
r=ruby gemstone
a=obsidian arrowhead
Sword:
oxo
oxo
oio
Axe:
xxo
xio
oio
Pick:
xxx
oio
oio
Shovel:
oxo
oio
oio
Knife:
ooo
oao
oio
Fence:
ooo
xxx
xxx
Ladder:
xox
xxx
xox
Torch:
ooo
oco
oio
Obsidian Rod:
ooo
ooo
oox
Bucket:
ooo
xox
oxo
Door:
xxo
xxo
xxo
Obsidian Shelf(with gemstones mod):
mrm
xxx
mxm
Obsidian Shelf(without gemstones mod):
mxm
xxx
mxm
Obsidian Block (reformed from shards)
sso
sso
ooo

2
obsidian/depends.txt Normal file
View File

@ -0,0 +1,2 @@
default

54
obsidian/init.lua Normal file
View File

@ -0,0 +1,54 @@
minetest.register_node("obsidian:obsidian_block", {
tile_images = {"obsidian_block.png"},
inventory_image = minetest.inventorycube("obsidian_block.png"),
is_ground_content = true,
groups = {oddly_breakable_by_hand=1},
drop = "obsidian:obsidian_block",
})
minetest.register_abm({nodenames = {"default:lava_source"},
interval = 1.0,
chance = 1,
action = function(pos, node, active_obsidianject_count, active_obsidianject_count_wider)
for i=-1,1 do
for j=-1,1 do
for k=-1,1 do
p = {x=pos.x+i, y=pos.y+j, z=pos.z+k}
n = minetest.env:get_node(p)
if (n.name == "default:water_flowing") or (n.name == "default:water_source") then
if not (((p.x > pos.x) and (p.z > pos.z)) or ((p.x < pos.x) and (p.z < pos.z)) or ((p.x < pos.x) and (p.z > pos.z)) or ((p.x > pos.x) and (p.z < pos.z))) then
minetest.env:add_node(pos, {name="obsidian:obsidian_block"})
end
end
end
end
end
end
})
minetest.register_abm({nodenames = {"default:lava_flowing"},
interval = 1.0,
chance = 1,
action = function(pos, node, active_obsidianject_count, active_obsidianject_count_wider)
for i=-1,1 do
for j=-1,1 do
for k=-1,1 do
p = {x=pos.x+i, y=pos.y+j, z=pos.z+k}
n = minetest.env:get_node(p)
if (n.name == "default:water_flowing") or (n.name == "default:water_source") then
if not (((p.x > pos.x) and (p.z > pos.z)) or ((p.x < pos.x) and (p.z < pos.z)) or ((p.x < pos.x) and (p.z > pos.z)) or ((p.x > pos.x) and (p.z < pos.z))) then
if (j == -1) then
minetest.env:add_node({x=pos.x, y=pos.y-1, z=pos.z}, {name="obsidian:obsidian_block"})
else
minetest.env:add_node(pos, {name="cobble"})
end
end
end
end
end
end
end
})
print( 'Obsidian Mod Loaded! ' )

54
obsidian/init.lua~ Normal file
View File

@ -0,0 +1,54 @@
minetest.register_node("obsidian:obsidian_block", {
tile_images = {"obsidian_block.png"},
inventory_image = minetest.inventorycube("obsidian_block.png"),
is_ground_content = true,
groups = {oddly_breakable_by_hand=1},
drop = "obsidian:obsidian_block",
})
minetest.register_abm({nodenames = {"default:lava_source"},
interval = 1.0,
chance = 1,
action = function(pos, node, active_obsidianject_count, active_obsidianject_count_wider)
for i=-1,1 do
for j=-1,1 do
for k=-1,1 do
p = {x=pos.x+i, y=pos.y+j, z=pos.z+k}
n = minetest.env:get_node(p)
if (n.name == "default:water_flowing") or (n.name == "default:water_source") then
if not ((p.x > pos.x) and (p.z > pos.z)) or ((p.x < pos.x) and (p.z < pos.z)) or ((p.x < pos.x) and (p.z > pos.z)) or ((p.x > pos.x) and (p.z < pos.z)) then
minetest.env:add_node(pos, {name="obsidian:obsidian_block"})
end
end
end
end
end
end
})
minetest.register_abm({nodenames = {"default:lava_flowing"},
interval = 1.0,
chance = 1,
action = function(pos, node, active_obsidianject_count, active_obsidianject_count_wider)
for i=-1,1 do
for j=-1,1 do
for k=-1,1 do
p = {x=pos.x+i, y=pos.y+j, z=pos.z+k}
n = minetest.env:get_node(p)
if (n.name == "default:water_flowing") or (n.name == "default:water_source") then
if not (((p.x > pos.x) and (p.z > pos.z)) or ((p.x < pos.x) and (p.z < pos.z)) or ((p.x < pos.x) and (p.z > pos.z)) or ((p.x > pos.x) and (p.z < pos.z))) then
if (j == -1) then
minetest.env:add_node({x=pos.x, y=pos.y-1, z=pos.z}, {name="obsidian:obsidian_block"})
else
minetest.env:add_node(pos, {name="cobble"})
end
end
end
end
end
end
end
})
print( 'Obsidian Mod Loaded! ' )

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB