Make flint pickaxe mandatory.
This commit is contained in:
parent
1096fb1b42
commit
b706504fb2
11
README.md
11
README.md
@ -56,7 +56,7 @@ Additional notes
|
||||
|
||||
- A scaffold node is provided to support the cobble and cut\_stone nodes while digging and mortaring them.
|
||||
|
||||
- Finally, for consistency, dirt nodes are also made falling, and the wooden pickaxe has optionally been removed and replaced with a flint pickaxe.
|
||||
- Finally, for consistency, dirt nodes are also made falling, and the wooden pickaxe has been removed and replaced with a flint pickaxe.
|
||||
|
||||
|
||||
Craft Recipes
|
||||
@ -72,17 +72,12 @@ Craft Recipes
|
||||
Early Game Considerations
|
||||
-------------------------
|
||||
|
||||
By default, the wooden pickaxe has been removed. There are two other ways to get started digging stone:
|
||||
Since the wooden pickaxe has been removed, other ways are needed to get started digging stone:
|
||||
|
||||
- Find three flints (in gravel) and make a flint pickaxe.
|
||||
|
||||
- Find a dungeon that has cobble floors, and make a stone pickaxe (cobble can be picked up by hand).
|
||||
- Find a dungeon that has cobble floors, and make a stone pickaxe (cobble can be picked up by hand). *[But only if stonebrick\_dungeons mod is using its default to keep cobble floors.]*
|
||||
|
||||
However, there are two configuration options that could change this:
|
||||
|
||||
- quarry\_replace\_wooden\_pickaxe = false, will keep wooden pickaxe in game.
|
||||
|
||||
- stonebrick\_dungeons\_change\_floor = true, will get rid of cobble floors in dungeons.
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
59
init.lua
59
init.lua
@ -1,9 +1,6 @@
|
||||
-- Quarry Mechanics [quarry]
|
||||
-- by David_G [kestral246@gmail.com]
|
||||
-- 2020-04-15
|
||||
|
||||
-- Optionally replace wooden pickaxe with flint one.
|
||||
local replace_wooden_pickaxe = minetest.settings:get_bool("quarry_replace_wooden_pickaxe", true)
|
||||
-- 2020-09-12
|
||||
|
||||
-- Other overrides.
|
||||
dofile(minetest.get_modpath("quarry").."/falling_nodes.lua")
|
||||
@ -503,27 +500,25 @@ minetest.register_tool("quarry:trowel_and_mortar", {
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
})
|
||||
|
||||
-- Optional flint pickaxe.
|
||||
if replace_wooden_pickaxe then
|
||||
minetest.register_tool("quarry:pick_flint", {
|
||||
description = "Flint Pickaxe",
|
||||
inventory_image = "quarry_flint_pick.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 1.2,
|
||||
max_drop_level=0,
|
||||
groupcaps={
|
||||
cracky = {times={[3]=1.6}, uses=4, maxlevel=1},
|
||||
},
|
||||
damage_groups = {fleshy=2},
|
||||
-- Add flint pickaxe.
|
||||
minetest.register_tool("quarry:pick_flint", {
|
||||
description = "Flint Pickaxe",
|
||||
inventory_image = "quarry_flint_pick.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 1.2,
|
||||
max_drop_level=0,
|
||||
groupcaps={
|
||||
cracky = {times={[3]=1.6}, uses=4, maxlevel=1},
|
||||
},
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
groups = {pickaxe = 1}
|
||||
})
|
||||
damage_groups = {fleshy=2},
|
||||
},
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
groups = {pickaxe = 1}
|
||||
})
|
||||
|
||||
-- Get rid of wood pickaxe.
|
||||
minetest.unregister_item("default:pick_wood")
|
||||
minetest.clear_craft({output = "default:pick_wood"})
|
||||
end
|
||||
-- Get rid of wood pickaxe.
|
||||
minetest.unregister_item("default:pick_wood")
|
||||
minetest.clear_craft({output = "default:pick_wood"})
|
||||
|
||||
-- These stone nodes can no longer be crafted directly.
|
||||
for _,nodename in pairs({
|
||||
@ -589,13 +584,11 @@ minetest.register_craft({
|
||||
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}},
|
||||
})
|
||||
|
||||
if replace_wooden_pickaxe then
|
||||
minetest.register_craft({
|
||||
output = "quarry:pick_flint",
|
||||
recipe = {
|
||||
{"default:flint", "default:flint", "default:flint"},
|
||||
{"", "group:stick", ""},
|
||||
{"", "group:stick", ""}
|
||||
}
|
||||
})
|
||||
end
|
||||
minetest.register_craft({
|
||||
output = "quarry:pick_flint",
|
||||
recipe = {
|
||||
{"default:flint", "default:flint", "default:flint"},
|
||||
{"", "group:stick", ""},
|
||||
{"", "group:stick", ""}
|
||||
}
|
||||
})
|
||||
|
@ -1,6 +0,0 @@
|
||||
# This file contains settings for quarry that can be changed in
|
||||
# minetest.conf
|
||||
|
||||
# Get rid of wooden pickaxe and replace it with a flint pickaxe.
|
||||
# (default = true)
|
||||
quarry_replace_wooden_pickaxe (Replace wooden pickaxe) bool true
|
Loading…
x
Reference in New Issue
Block a user