@ -0,0 +1,13 @@ |
|||||
|
DO WHAT THE F*CK 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 F*CK YOU WANT TO PUBLIC LICENSE |
||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
||||
|
|
||||
|
0. You just DO WHAT THE F*CK YOU WANT TO. |
@ -0,0 +1 @@ |
|||||
|
default |
@ -0,0 +1,332 @@ |
|||||
|
-- =================================================================== |
||||
|
-- Light. |
||||
|
|
||||
|
minetest.register_node ("nftools:light", { |
||||
|
drawtype = "glasslike" , |
||||
|
tiles = { "nftools_debug.png" } , |
||||
|
is_ground_content = true , |
||||
|
paramtype = "light" , |
||||
|
light_source = default.LIGHT_MAX - 1 , |
||||
|
|
||||
|
groups = { |
||||
|
cracky = 3, oddly_breakable_by_hand=2, |
||||
|
} , |
||||
|
|
||||
|
sounds = default.node_sound_stone_defaults() , |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- Mese Pickaxe. |
||||
|
|
||||
|
minetest.register_tool ("nftools:pick_mese", { |
||||
|
description = "Mese Pickaxe with light", |
||||
|
inventory_image = "nftools_mesepick.png", |
||||
|
wield_image = "nftools_mesepick_wield.png", |
||||
|
tool_capabilities = { |
||||
|
full_punch_interval = 1.0, |
||||
|
max_drop_level=3, |
||||
|
groupcaps={ |
||||
|
cracky={times={[1]=2.0, [2]=1.0, [3]=0.5}, uses=20, maxlevel=3}, |
||||
|
crumbly={times={[1]=2.0, [2]=1.0, [3]=0.5}, uses=20, maxlevel=3}, |
||||
|
snappy={times={[1]=2.0, [2]=1.0, [3]=0.5}, uses=20, maxlevel=3} |
||||
|
} |
||||
|
}, |
||||
|
}) |
||||
|
|
||||
|
minetest.register_craft ({ |
||||
|
output = 'nftools:pick_mese', |
||||
|
recipe = { |
||||
|
{'default:torch'}, |
||||
|
{'default:pick_mese'}, |
||||
|
} |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- Stool. |
||||
|
|
||||
|
minetest.register_node ("nftools:stool",{ |
||||
|
description = "Wooden Stool", |
||||
|
tiles = {"nftools_stool.png"}, |
||||
|
drop = 'nftools:stool', |
||||
|
groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1}, |
||||
|
sounds = default.node_sound_wood_defaults(), |
||||
|
drawtype="nodebox", |
||||
|
paramtype = "light", |
||||
|
node_box = { |
||||
|
type = "fixed", |
||||
|
fixed = { |
||||
|
{0.412500,-0.500000,-0.500000,0.500000,0.000000,-0.437500}, --NodeBox 1 |
||||
|
{-0.500000,-0.500000,-0.500000,-0.437500,0.000000,-0.437500}, --NodeBox 2 |
||||
|
{0.412500,-0.500000,0.437504,0.500000,0.000000,0.500000}, --NodeBox 3 |
||||
|
{-0.500000,-0.500000,0.462500,-0.437500,0.000000,0.500000}, --NodeBox 4 |
||||
|
{-0.500000,0.000000,-0.500000,0.500000,0.062500,0.500000}, --NodeBox 5 |
||||
|
} |
||||
|
} |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- Quartz crystals. |
||||
|
|
||||
|
minetest.register_node ("nftools:quartz_crystals", { |
||||
|
description = "Quartz Crystals", |
||||
|
tiles = {"nftools_quartz_crystal.png"}, |
||||
|
is_ground_content = true, |
||||
|
groups = {cracky=1,level=2}, |
||||
|
sounds = default.node_sound_stone_defaults(), |
||||
|
drawtype="nodebox", |
||||
|
paramtype = "light", |
||||
|
paramtype2="facedir", |
||||
|
sunlight_propagates = true, |
||||
|
node_box = { |
||||
|
type = "fixed", |
||||
|
fixed = { |
||||
|
{-0.437500,-0.500000,-0.437500,0.425000,-0.250000,0.425004}, |
||||
|
{-0.375000,-0.250000,0.187500,-0.250000,0.500000,0.312500}, |
||||
|
{0.062500,-0.250000,-0.187500,0.312500,0.375000,0.125000}, |
||||
|
{-0.312500,-0.500000,-0.250000,-0.125000,0.125000,0.000000}, |
||||
|
{-0.187500,-0.250000,-0.437500,0.125000,0.500000,-0.250000}, |
||||
|
{0.000000,-0.312500,0.187500,0.250000,0.312500,0.375000}, |
||||
|
{-0.125000,-0.187500,-0.250000,0.062500,0.312500,0.000000}, |
||||
|
{0.125000,-0.250000,-0.375000,0.375000,0.375000,-0.187500}, |
||||
|
{-0.250000,-0.250000,0.062500,0.000000,0.125000,0.375000}, |
||||
|
} |
||||
|
} |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- Ore. |
||||
|
|
||||
|
minetest.register_ore ({ |
||||
|
ore_type = "scatter", |
||||
|
ore = "nftools:alexandrite_ore", |
||||
|
wherein = "default:stone", |
||||
|
clust_scarcity = 24*24*24, |
||||
|
clust_num_ores = 27, |
||||
|
clust_size = 6, |
||||
|
y_max = -64, |
||||
|
y_min = -31000, |
||||
|
flags = "absheight", |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
|
||||
|
minetest.register_ore ({ |
||||
|
ore_type = "scatter", |
||||
|
ore = "nftools:amber", |
||||
|
wherein = "default:stone", |
||||
|
clust_scarcity = 24*24*24, |
||||
|
clust_num_ores = 27, |
||||
|
clust_size = 6, |
||||
|
y_max = -64, |
||||
|
y_min = -31000, |
||||
|
flags = "absheight", |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
|
||||
|
minetest.register_ore ({ |
||||
|
ore_type = "scatter", |
||||
|
ore = "nftools:amethyst_ore", |
||||
|
wherein = "default:stone", |
||||
|
clust_scarcity = 24*24*24, |
||||
|
clust_num_ores = 27, |
||||
|
clust_size = 6, |
||||
|
y_max = -64, |
||||
|
y_min = -31000, |
||||
|
flags = "absheight", |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
|
||||
|
minetest.register_ore ({ |
||||
|
ore_type = "scatter", |
||||
|
ore = "nftools:aquamarine_ore", |
||||
|
wherein = "default:stone", |
||||
|
clust_scarcity = 13*13*13, |
||||
|
clust_num_ores = 5, |
||||
|
clust_size = 3, |
||||
|
y_max = -5, |
||||
|
y_min = -40, |
||||
|
flags = "absheight", |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- Alexandrite |
||||
|
|
||||
|
minetest.register_node ("nftools:alexandrite_ore", { |
||||
|
description = "Alexandrite Ore", |
||||
|
tiles = {"nftools_alexandriteore.png"}, |
||||
|
is_ground_content = true, |
||||
|
groups = {cracky=1}, |
||||
|
drop = "nftools:alexandrite", |
||||
|
}) |
||||
|
|
||||
|
minetest.register_craftitem ("nftools:alexandrite", { |
||||
|
description = "Alexandrite", |
||||
|
inventory_image = "nftools_alexandrite.png", |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- Amber |
||||
|
|
||||
|
minetest.register_node ("nftools:amber", { |
||||
|
description = "Amber", |
||||
|
tiles = {"nftools_amber.png"}, |
||||
|
is_ground_content = true, |
||||
|
groups = {cracky=1}, |
||||
|
drop = "nftools:amber_chip", |
||||
|
}) |
||||
|
|
||||
|
minetest.register_craftitem ("nftools:amber_chip", { |
||||
|
description = "Amber Chip", |
||||
|
inventory_image = "nftools_amberchip.png", |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- Aquamarine |
||||
|
|
||||
|
minetest.register_node ("nftools:aquamarine_ore", { |
||||
|
description = "Aquamarine Ore", |
||||
|
tiles = {"nftools_aquamarineore.png"}, |
||||
|
is_ground_content = true, |
||||
|
groups = {cracky=1}, |
||||
|
drop = "nftools:aquamarine_ore", |
||||
|
}) |
||||
|
|
||||
|
minetest.register_craftitem ("nftools:aquamarine", { |
||||
|
description = "Aquamarine", |
||||
|
inventory_image = "nftools_aquamarine.png", |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- Smelting |
||||
|
|
||||
|
minetest.register_craft ({ |
||||
|
type = "cooking", |
||||
|
output = "nftools:aquamarine", |
||||
|
recipe = "nftools:aquamarine_ore", |
||||
|
}) |
||||
|
|
||||
|
minetest.register_craft ({ |
||||
|
type = "cooking", |
||||
|
output = "nftools:alexandrite", |
||||
|
recipe = "nftools:alexandrite_ore", |
||||
|
}) |
||||
|
|
||||
|
minetest.register_craft ({ |
||||
|
type = "cooking", |
||||
|
output = "nftools:amethyst", |
||||
|
recipe = "nftools:amethyst_ore", |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- Amethyst |
||||
|
|
||||
|
minetest.register_node ("nftools:amethyst_ore", { |
||||
|
description = "Amethyst Ore", |
||||
|
tiles = {"nftools_amethystore.png"}, |
||||
|
is_ground_content = true, |
||||
|
groups = {cracky=1}, |
||||
|
drop = "nftools:amethyst", |
||||
|
}) |
||||
|
|
||||
|
minetest.register_craftitem ("nftools:amethyst", { |
||||
|
description = "Amethyst", |
||||
|
inventory_image = "nftools_amethyst.png", |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- Sunflower. |
||||
|
|
||||
|
minetest.register_node ("nftools:sunflower", { |
||||
|
description = "Sunflower", |
||||
|
drawtype = "plantlike", |
||||
|
visual_scale = 1.5, |
||||
|
tiles = {"nftools_sunflower.png"}, |
||||
|
inventory_image = "nftools_sunflower.png", |
||||
|
wield_image = "nftools_sunflower.png", |
||||
|
paramtype = "light", |
||||
|
walkable = false, |
||||
|
buildable_to = true, |
||||
|
is_ground_content = true, |
||||
|
groups = {snappy=3,flammable=2,flora=1,attached_node=1}, |
||||
|
selection_box = { |
||||
|
type = "fixed", |
||||
|
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}, |
||||
|
}, |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- Scythe |
||||
|
|
||||
|
minetest.register_tool ("nftools:scythe", { |
||||
|
description = "Scythe", |
||||
|
inventory_image = "nftools_tool_scythe.png", |
||||
|
tool_capabilities = { |
||||
|
full_punch_interval = 0.8, |
||||
|
max_drop_level=1, |
||||
|
groupcaps={ |
||||
|
snappy={times={[1]=2.5, [2]=1.20, [3]=0.35}, uses=100, maxlevel=2}, |
||||
|
}, |
||||
|
damage_groups = {fleshy=6}, |
||||
|
} |
||||
|
}) |
||||
|
|
||||
|
minetest.register_craft ({ |
||||
|
output = 'nftools:scythe', |
||||
|
recipe = { |
||||
|
{'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'}, |
||||
|
{'', '', 'default:stick'}, |
||||
|
{'', '', 'default:stick'}, |
||||
|
} |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- Mace |
||||
|
|
||||
|
minetest.register_tool ("nftools:mace", { |
||||
|
description = "Mace", |
||||
|
inventory_image = "nftools_tool_mace.png", |
||||
|
tool_capabilities = { |
||||
|
full_punch_interval = 1.5, |
||||
|
max_drop_level=1, |
||||
|
groupcaps={ |
||||
|
snappy={times={[1]=2.5, [2]=1.20, [3]=0.35}, uses=70, maxlevel=2}, |
||||
|
}, |
||||
|
damage_groups = {fleshy=5}, |
||||
|
} |
||||
|
}) |
||||
|
|
||||
|
minetest.register_craft ({ |
||||
|
output = 'nftools:mace', |
||||
|
recipe = { |
||||
|
{'default:obsidian_shard', 'default:steel_ingot', 'default:obsidian_shard'}, |
||||
|
{'', 'default:stick', ''}, |
||||
|
{'', 'default:stick', ''}, |
||||
|
} |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- Battle-axe |
||||
|
|
||||
|
minetest.register_tool ("nftools:battleaxe", { |
||||
|
description = "Battle Axe", |
||||
|
inventory_image = "nftools_tool_battleaxe.png", |
||||
|
tool_capabilities = { |
||||
|
full_punch_interval = 0.8, |
||||
|
max_drop_level=1, |
||||
|
groupcaps={ |
||||
|
snappy={times={[1]=2.5, [2]=1.20, [3]=0.35}, uses=40, maxlevel=2}, |
||||
|
}, |
||||
|
damage_groups = {fleshy=4}, |
||||
|
} |
||||
|
}) |
||||
|
|
||||
|
minetest.register_craft ({ |
||||
|
output = 'nftools:battleaxe', |
||||
|
recipe = { |
||||
|
{'default:cobble', 'default:cobble', 'default:cobble'}, |
||||
|
{'', 'default:cobble', ''}, |
||||
|
{'', 'default:stick', ''}, |
||||
|
} |
||||
|
}) |
@ -0,0 +1,7 @@ |
|||||
|
Name: nftools |
||||
|
Source: Fork of upstream mod - Do not replace |
||||
|
License: WTFPL |
||||
|
|
||||
|
---------------------------------------------------------------------- |
||||
|
|
||||
|
To be documented. |
After Width: | Height: | Size: 242 B |
After Width: | Height: | Size: 561 B |
After Width: | Height: | Size: 791 B |
After Width: | Height: | Size: 244 B |
After Width: | Height: | Size: 556 B |
After Width: | Height: | Size: 588 B |
After Width: | Height: | Size: 458 B |
After Width: | Height: | Size: 279 B |
After Width: | Height: | Size: 3.3 KiB |
@ -0,0 +1,67 @@ |
|||||
|
# nftools license and author info |
||||
|
|
||||
|
|
||||
|
## Minerals |
||||
|
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>, Poikilos (modified by) |
||||
|
Creative Commons Zero |
||||
|
(formerly WTFPL Version 2, December 2004, and what I want to do is |
||||
|
rerelease an improved version with a better license) |
||||
|
<https://creativecommons.org/share-your-work/public-domain/cc0/> |
||||
|
|
||||
|
## Stool |
||||
|
photo-326311 by Pixabay, made into texture by Poikilos |
||||
|
Creative Commons Zero |
||||
|
(replaces old stool texture) |
||||
|
|
||||
|
|
||||
|
## Weapons |
||||
|
|
||||
|
### Mace model & image (only rendered, retouched image is included) |
||||
|
Creative Commons Attribution 3.0 |
||||
|
You can use this model for any porposes according to the following |
||||
|
conditions: |
||||
|
You MUST give attribution/credit to |
||||
|
antonis <https://www.blendswap.com/blends/view/73677>, |
||||
|
Poikilos (relit, rendered, & retouched by) |
||||
|
|
||||
|
### Axe model & image (only rendered, retouched image is included) |
||||
|
Creative Commons Attribution 3.0 |
||||
|
You can use this model for any porposes according to the following |
||||
|
conditions: |
||||
|
You MUST give attribution/credit to |
||||
|
izuzf <https://www.blendswap.com/blends/view/58591>, |
||||
|
Poikilos (relit, rendered, & retouched by) |
||||
|
|
||||
|
### Scythe model & image (only rendered, retouched image is included) |
||||
|
Creative Commons Attribution 3.0 |
||||
|
You can use this model for any porposes according to the following |
||||
|
conditions: |
||||
|
You MUST give attribution/credit to |
||||
|
GemmaMuhammad <https://www.blendswap.com/blends/view/60556> |
||||
|
Poikilos (relit, rendered, & retouched by) |
||||
|
|
||||
|
|
||||
|
## Code |
||||
|
MIT License |
||||
|
(formerly WTFPL Version 2, December 2004, and what I want to do is |
||||
|
rerelease an improved version with a better license) |
||||
|
Copyright 2004 Sam Hocevar, 2019 OldCoder, 2019 Poikilos |
||||
|
|
||||
|
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,2 @@ |
|||||
|
default |
||||
|
quartz? |
@ -0,0 +1,385 @@ |
|||||
|
-- =================================================================== |
||||
|
-- Light. |
||||
|
|
||||
|
minetest.register_node("nftools:light", { |
||||
|
drawtype = "glasslike" , |
||||
|
tiles = { "nftools_debug.png" } , |
||||
|
is_ground_content = true , |
||||
|
paramtype = "light" , |
||||
|
light_source = default.LIGHT_MAX - 1 , |
||||
|
|
||||
|
groups = { |
||||
|
cracky = 3, oddly_breakable_by_hand=2, |
||||
|
} , |
||||
|
|
||||
|
sounds = default.node_sound_stone_defaults() , |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- Mese Pickaxe. |
||||
|
|
||||
|
minetest.register_tool("nftools:pick_mese", { |
||||
|
description = "Mese Pickaxe with light", |
||||
|
inventory_image = "nftools_mesepick.png", |
||||
|
wield_image = "nftools_mesepick_wield.png", |
||||
|
tool_capabilities = { |
||||
|
full_punch_interval = 1.0, |
||||
|
max_drop_level=3, |
||||
|
groupcaps={ |
||||
|
cracky={times={[1]=2.0, [2]=1.0, [3]=0.5}, uses=20, maxlevel=3}, |
||||
|
crumbly={times={[1]=2.0, [2]=1.0, [3]=0.5}, uses=20, maxlevel=3}, |
||||
|
snappy={times={[1]=2.0, [2]=1.0, [3]=0.5}, uses=20, maxlevel=3} |
||||
|
} |
||||
|
}, |
||||
|
}) |
||||
|
|
||||
|
minetest.register_craft({ |
||||
|
output = 'nftools:pick_mese', |
||||
|
recipe = { |
||||
|
{'default:torch'}, |
||||
|
{'default:pick_mese'}, |
||||
|
} |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- Stool. |
||||
|
|
||||
|
minetest.register_node("nftools:stool",{ |
||||
|
description = "Wooden Stool", |
||||
|
tiles = {"nftools_stool.png"}, |
||||
|
drop = 'nftools:stool', |
||||
|
groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1}, |
||||
|
sounds = default.node_sound_wood_defaults(), |
||||
|
drawtype="nodebox", |
||||
|
paramtype = "light", |
||||
|
node_box = { |
||||
|
type = "fixed", |
||||
|
fixed = { |
||||
|
{0.412500,-0.500000,-0.500000,0.500000,0.000000,-0.437500}, --NodeBox 1 |
||||
|
{-0.500000,-0.500000,-0.500000,-0.437500,0.000000,-0.437500}, --NodeBox 2 |
||||
|
{0.412500,-0.500000,0.437504,0.500000,0.000000,0.500000}, --NodeBox 3 |
||||
|
{-0.500000,-0.500000,0.462500,-0.437500,0.000000,0.500000}, --NodeBox 4 |
||||
|
{-0.500000,0.000000,-0.500000,0.500000,0.062500,0.500000}, --NodeBox 5 |
||||
|
} |
||||
|
} |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- Quartz crystals. |
||||
|
|
||||
|
minetest.register_node("nftools:quartz_crystals", { |
||||
|
description = "Quartz Crystals", |
||||
|
tiles = {"nftools_quartz_crystal.png"}, |
||||
|
is_ground_content = true, |
||||
|
groups = {cracky=1,level=2}, |
||||
|
sounds = default.node_sound_stone_defaults(), |
||||
|
drawtype="nodebox", |
||||
|
paramtype = "light", |
||||
|
paramtype2="facedir", |
||||
|
sunlight_propagates = true, |
||||
|
node_box = { |
||||
|
type = "fixed", |
||||
|
fixed = { |
||||
|
{-0.437500,-0.500000,-0.437500,0.425000,-0.250000,0.425004}, |
||||
|
{-0.375000,-0.250000,0.187500,-0.250000,0.500000,0.312500}, |
||||
|
{0.062500,-0.250000,-0.187500,0.312500,0.375000,0.125000}, |
||||
|
{-0.312500,-0.500000,-0.250000,-0.125000,0.125000,0.000000}, |
||||
|
{-0.187500,-0.250000,-0.437500,0.125000,0.500000,-0.250000}, |
||||
|
{0.000000,-0.312500,0.187500,0.250000,0.312500,0.375000}, |
||||
|
{-0.125000,-0.187500,-0.250000,0.062500,0.312500,0.000000}, |
||||
|
{0.125000,-0.250000,-0.375000,0.375000,0.375000,-0.187500}, |
||||
|
{-0.250000,-0.250000,0.062500,0.000000,0.125000,0.375000}, |
||||
|
} |
||||
|
} |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- Ore. |
||||
|
|
||||
|
minetest.register_ore({ |
||||
|
ore_type = "scatter", |
||||
|
ore = "nftools:stone_with_bismuth", |
||||
|
wherein = "default:stone", |
||||
|
clust_scarcity = 24*24*24, |
||||
|
clust_num_ores = 27, |
||||
|
clust_size = 6, |
||||
|
y_max = -64, |
||||
|
y_min = -31000, |
||||
|
flags = "absheight", |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
|
||||
|
minetest.register_ore({ |
||||
|
ore_type = "scatter", |
||||
|
ore = "nftools:stone_with_amber", |
||||
|
wherein = "default:stone", |
||||
|
clust_scarcity = 24*24*24, |
||||
|
clust_num_ores = 27, |
||||
|
clust_size = 6, |
||||
|
y_max = -64, |
||||
|
y_min = -31000, |
||||
|
flags = "absheight", |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
|
||||
|
minetest.register_ore({ |
||||
|
ore_type = "scatter", |
||||
|
ore = "nftools:stone_with_blackopal", |
||||
|
wherein = "default:stone", |
||||
|
clust_scarcity = 24*24*24, |
||||
|
clust_num_ores = 27, |
||||
|
clust_size = 6, |
||||
|
y_max = -64, |
||||
|
y_min = -31000, |
||||
|
flags = "absheight", |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
|
||||
|
minetest.register_ore({ |
||||
|
ore_type = "scatter", |
||||
|
ore = "nftools:stone_with_turquoise", |
||||
|
wherein = "default:stone", |
||||
|
clust_scarcity = 13*13*13, |
||||
|
clust_num_ores = 5, |
||||
|
clust_size = 3, |
||||
|
y_max = -5, |
||||
|
y_min = -40, |
||||
|
flags = "absheight", |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- Bismuth (formerly Alexandrite) |
||||
|
|
||||
|
minetest.register_alias("nftools:alexandrite_ore", "nftools:stone_with_bismuth") |
||||
|
minetest.register_alias("nftools:alexandrite", "nftools:bismuth") |
||||
|
|
||||
|
minetest.register_craftitem("nftools:bismuth", { |
||||
|
description = "Bismuth", |
||||
|
inventory_image = "nftools_bismuth.png", |
||||
|
}) |
||||
|
|
||||
|
minetest.register_node("nftools:stone_with_bismuth", { |
||||
|
description = "Raw Bismuth", |
||||
|
tiles = {"default_stone.png^nftools_mineral_bismuth.png"}, |
||||
|
is_ground_content = true, |
||||
|
groups = {cracky=1}, |
||||
|
drop = "nftools:stone_with_bismuth", |
||||
|
}) |
||||
|
|
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- Smelting (only metals) |
||||
|
|
||||
|
minetest.register_craft ({ |
||||
|
type = "cooking", |
||||
|
output = "nftools:bismuth", |
||||
|
recipe = "nftools:stone_with_bismuth", |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- Amber |
||||
|
|
||||
|
minetest.register_alias("nftools:amber", "nftools:stone_with_amber") |
||||
|
-- (formerly called amber but dropped chip; use conventions instead) |
||||
|
|
||||
|
minetest.register_node("nftools:stone_with_amber", { |
||||
|
description = "Rough Amber", |
||||
|
tiles = {"default_stone.png^nftools_mineral_amber.png"}, |
||||
|
is_ground_content = true, |
||||
|
groups = {cracky=1}, |
||||
|
drop = "nftools:amber_chip", |
||||
|
}) |
||||
|
|
||||
|
minetest.register_craftitem("nftools:amber_chip", { |
||||
|
description = "Amber", |
||||
|
inventory_image = "nftools_amberchip.png", |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- Turquoise (formerly Aquamarine) |
||||
|
|
||||
|
minetest.register_alias("nftools:aquamarine_ore", "nftools:stone_with_turquoise") |
||||
|
minetest.register_alias("nftools:aquamarine", "nftools:turquoise") |
||||
|
|
||||
|
minetest.register_node("nftools:stone_with_turquoise", { |
||||
|
description = "Rough Turquoise", |
||||
|
tiles = {"default_stone.png^nftools_mineral_turquoise.png"}, |
||||
|
is_ground_content = true, |
||||
|
groups = {cracky=1}, |
||||
|
drop = "nftools:turquoise", |
||||
|
}) |
||||
|
|
||||
|
minetest.register_craftitem("nftools:turquoise", { |
||||
|
description = "Turquoise", |
||||
|
inventory_image = "nftools_turquoise.png", |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- Black Opal (formerly Amethyst) |
||||
|
|
||||
|
minetest.register_alias("nftools:amethyst_ore", "nftools:stone_with_blackopal") |
||||
|
minetest.register_alias("nftools:amethyst", "nftools:blackopal") |
||||
|
|
||||
|
minetest.register_craftitem("nftools:blackopal", { |
||||
|
description = "Black Opal", |
||||
|
inventory_image = "nftools_blackopal.png", |
||||
|
}) |
||||
|
|
||||
|
minetest.register_node("nftools:stone_with_blackopal", { |
||||
|
description = "Rough Black Opal", |
||||
|
tiles = {"default_stone.png^nftools_mineral_blackopal.png"}, |
||||
|
is_ground_content = true, |
||||
|
groups = {cracky=1}, |
||||
|
drop = "nftools:blackopal", |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- Sunflower. |
||||
|
|
||||
|
minetest.register_node("nftools:sunflower", { |
||||
|
description = "Sunflower", |
||||
|
drawtype = "plantlike", |
||||
|
visual_scale = 1.5, |
||||
|
tiles = {"nftools_sunflower.png"}, |
||||
|
inventory_image = "nftools_sunflower.png", |
||||
|
wield_image = "nftools_sunflower.png", |
||||
|
paramtype = "light", |
||||
|
walkable = false, |
||||
|
buildable_to = true, |
||||
|
is_ground_content = true, |
||||
|
groups = {snappy=3,flammable=2,flora=1,attached_node=1}, |
||||
|
selection_box = { |
||||
|
type = "fixed", |
||||
|
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}, |
||||
|
}, |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- Blocks |
||||
|
|
||||
|
|
||||
|
minetest.register_node("nftools:amberblock", { |
||||
|
description = "Amber Block", |
||||
|
drawtype = "glasslike", |
||||
|
paramtype = "light", |
||||
|
sunlight_propagates = true, |
||||
|
tiles = {"nftools_amber_block.png"}, |
||||
|
is_ground_content = true, |
||||
|
groups = {cracky=1}, |
||||
|
drop = "nftools:amberblock", |
||||
|
}) |
||||
|
|
||||
|
local function registerblockrecipe(name, blockname) |
||||
|
minetest.register_craft({ |
||||
|
output = blockname, |
||||
|
recipe = {{name, name, name}, |
||||
|
{name, name, name}, |
||||
|
{name, name, name} |
||||
|
} |
||||
|
}) |
||||
|
minetest.register_craft({ |
||||
|
output = name..' 9', |
||||
|
recipe = { |
||||
|
{blockname}, |
||||
|
} |
||||
|
}) |
||||
|
end |
||||
|
|
||||
|
registerblockrecipe('nftools:amber_chip', 'nftools:amberblock') |
||||
|
|
||||
|
if minetest.get_modpath("quartz") ~= nil then |
||||
|
minetest.register_craft({ |
||||
|
output = "nftools:quartz_crystals", |
||||
|
recipe = { |
||||
|
{'', '', ''}, |
||||
|
{'', 'quartz:quartz_crystal', ''}, |
||||
|
{'quartz:quartz_crystal', 'nftools:amberblock', 'quartz:quartz_crystal'} |
||||
|
} |
||||
|
|
||||
|
}) |
||||
|
|
||||
|
minetest.register_craft({ |
||||
|
output = "quartz:quartz_crystal"..' 3', |
||||
|
recipe = { |
||||
|
{"nftools:quartz_crystals"}, |
||||
|
} |
||||
|
}) |
||||
|
end |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- Scythe |
||||
|
|
||||
|
minetest.register_tool("nftools:scythe", { |
||||
|
description = "Scythe", |
||||
|
inventory_image = "nftools_tool_scythe.png", |
||||
|
tool_capabilities = { |
||||
|
full_punch_interval = 0.8, |
||||
|
max_drop_level=1, |
||||
|
groupcaps={ |
||||
|
snappy={times={[1]=2.5, [2]=1.20, [3]=0.35}, uses=100, maxlevel=2}, |
||||
|
}, |
||||
|
damage_groups = {fleshy=6}, |
||||
|
} |
||||
|
}) |
||||
|
|
||||
|
minetest.register_craft({ |
||||
|
output = 'nftools:scythe', |
||||
|
recipe = { |
||||
|
{'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'}, |
||||
|
{'', '', 'default:stick'}, |
||||
|
{'', '', 'default:stick'}, |
||||
|
} |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- Mace |
||||
|
|
||||
|
minetest.register_tool("nftools:mace", { |
||||
|
description = "Mace", |
||||
|
inventory_image = "nftools_tool_mace.png", |
||||
|
tool_capabilities = { |
||||
|
full_punch_interval = 1.5, |
||||
|
max_drop_level=1, |
||||
|
groupcaps={ |
||||
|
snappy={times={[1]=2.5, [2]=1.20, [3]=0.35}, uses=70, maxlevel=2}, |
||||
|
}, |
||||
|
damage_groups = {fleshy=5}, |
||||
|
} |
||||
|
}) |
||||
|
|
||||
|
minetest.register_craft({ |
||||
|
output = 'nftools:mace', |
||||
|
recipe = { |
||||
|
{'default:obsidian_shard', 'default:steel_ingot', 'default:obsidian_shard'}, |
||||
|
{'', 'default:stick', ''}, |
||||
|
{'', 'default:stick', ''}, |
||||
|
} |
||||
|
}) |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- Battle-axe |
||||
|
|
||||
|
minetest.register_tool("nftools:battleaxe", { |
||||
|
description = "Battle Axe", |
||||
|
inventory_image = "nftools_tool_battleaxe.png", |
||||
|
tool_capabilities = { |
||||
|
full_punch_interval = 0.8, |
||||
|
max_drop_level=1, |
||||
|
groupcaps={ |
||||
|
snappy={times={[1]=2.5, [2]=1.20, [3]=0.35}, uses=40, maxlevel=2}, |
||||
|
}, |
||||
|
damage_groups = {fleshy=4}, |
||||
|
} |
||||
|
}) |
||||
|
|
||||
|
minetest.register_craft({ |
||||
|
output = 'nftools:battleaxe', |
||||
|
recipe = { |
||||
|
{'default:cobble', 'default:cobble', 'default:cobble'}, |
||||
|
{'', 'default:cobble', ''}, |
||||
|
{'', 'default:stick', ''}, |
||||
|
} |
||||
|
}) |
@ -0,0 +1,43 @@ |
|||||
|
Name: nftools |
||||
|
Source: Fork of upstream mod - Do not replace |
||||
|
License: MIT rerelease of modified WTFPL source media and code |
||||
|
|
||||
|
---------------------------------------------------------------------- |
||||
|
|
||||
|
Nftools adds additional minerals and tools to minetest. |
||||
|
New tools: |
||||
|
* Battle Axe (low level weapon, does knockback occasionally) |
||||
|
* Mace (high level weapon) |
||||
|
* Scythe |
||||
|
|
||||
|
The Original version by Sam Hocevar adds the following minerals: |
||||
|
Amber (block and "chip") |
||||
|
|
||||
|
Poikilos' fork is designed to compliment birthstones by making the |
||||
|
following changes: |
||||
|
* Changed alexandrite (overlap with birthstones): |
||||
|
to bismuth (it already looked somewhat like bismuth) |
||||
|
* Changed amethyst (modified texture until looked like black opal): |
||||
|
to black opal. |
||||
|
* Changed aquamarine: |
||||
|
to turquoise |
||||
|
* Use standard texture naming conventions |
||||
|
(change nftools_*ore.png to nftools_mineral_*.png, |
||||
|
nftools:*_ore to nftools:stone_with_*, |
||||
|
nftools:amber to nftools:stone_with_amber) |
||||
|
* The old minerals in the world converted to the one following the comma: |
||||
|
`nftools:amethyst, nftools:black_opal` |
||||
|
`nftools:alexandrite_ore, nftools:bismuth` |
||||
|
`nftools:aquamarine, nftools:turquoise` |
||||
|
|
||||
|
Unrelated changes: |
||||
|
* Battle Axe, Mace, and Scythe textures |
||||
|
* Tint of amber nodes is now amber (with yellow highlights) instead of |
||||
|
yellow. Blending is improved, and texture is 16% transparent. |
||||
|
* Bismuth texture is more angular to look even more like bismuth |
||||
|
* Improve ore textures (nftools_mineral_*.png) |
||||
|
* fixed issue where aquamarine ore drops ore |
||||
|
* removed all smelting (smelting gemstones? really? not anymore) |
||||
|
except Bismuth (formerly nftools:alexandrite) |
||||
|
* Register each craftitem before referencding it as a drop. |
||||
|
* Make missing recipe for quartz crystals node (displayable quartz) |
After Width: | Height: | Size: 475 KiB |
After Width: | Height: | Size: 59 KiB |
After Width: | Height: | Size: 53 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 7.3 KiB |
After Width: | Height: | Size: 81 KiB |
After Width: | Height: | Size: 62 KiB |
After Width: | Height: | Size: 8.5 KiB |
After Width: | Height: | Size: 8.7 KiB |
After Width: | Height: | Size: 141 KiB |
After Width: | Height: | Size: 52 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 219 B |
After Width: | Height: | Size: 402 B |
After Width: | Height: | Size: 758 B |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 6.9 KiB |
After Width: | Height: | Size: 8.7 KiB |
After Width: | Height: | Size: 1.9 KiB |