Make flint pickaxe mandatory.

master
David G 2020-09-12 10:00:43 -07:00
parent 1096fb1b42
commit b706504fb2
3 changed files with 29 additions and 47 deletions

View File

@ -56,7 +56,7 @@ Additional notes
- A scaffold node is provided to support the cobble and cut\_stone nodes while digging and mortaring them. - 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 Craft Recipes
@ -72,17 +72,12 @@ Craft Recipes
Early Game Considerations 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 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 Dependencies
------------ ------------

View File

@ -1,9 +1,6 @@
-- Quarry Mechanics [quarry] -- Quarry Mechanics [quarry]
-- by David_G [kestral246@gmail.com] -- by David_G [kestral246@gmail.com]
-- 2020-04-15 -- 2020-09-12
-- Optionally replace wooden pickaxe with flint one.
local replace_wooden_pickaxe = minetest.settings:get_bool("quarry_replace_wooden_pickaxe", true)
-- Other overrides. -- Other overrides.
dofile(minetest.get_modpath("quarry").."/falling_nodes.lua") dofile(minetest.get_modpath("quarry").."/falling_nodes.lua")
@ -503,27 +500,25 @@ minetest.register_tool("quarry:trowel_and_mortar", {
sound = {breaks = "default_tool_breaks"}, sound = {breaks = "default_tool_breaks"},
}) })
-- Optional flint pickaxe. -- Add flint pickaxe.
if replace_wooden_pickaxe then minetest.register_tool("quarry:pick_flint", {
minetest.register_tool("quarry:pick_flint", { description = "Flint Pickaxe",
description = "Flint Pickaxe", inventory_image = "quarry_flint_pick.png",
inventory_image = "quarry_flint_pick.png", tool_capabilities = {
tool_capabilities = { full_punch_interval = 1.2,
full_punch_interval = 1.2, max_drop_level=0,
max_drop_level=0, groupcaps={
groupcaps={ cracky = {times={[3]=1.6}, uses=4, maxlevel=1},
cracky = {times={[3]=1.6}, uses=4, maxlevel=1},
},
damage_groups = {fleshy=2},
}, },
sound = {breaks = "default_tool_breaks"}, damage_groups = {fleshy=2},
groups = {pickaxe = 1} },
}) sound = {breaks = "default_tool_breaks"},
groups = {pickaxe = 1}
})
-- Get rid of wood pickaxe. -- Get rid of wood pickaxe.
minetest.unregister_item("default:pick_wood") minetest.unregister_item("default:pick_wood")
minetest.clear_craft({output = "default:pick_wood"}) minetest.clear_craft({output = "default:pick_wood"})
end
-- These stone nodes can no longer be crafted directly. -- These stone nodes can no longer be crafted directly.
for _,nodename in pairs({ for _,nodename in pairs({
@ -589,13 +584,11 @@ minetest.register_craft({
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}, replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}},
}) })
if replace_wooden_pickaxe then minetest.register_craft({
minetest.register_craft({ output = "quarry:pick_flint",
output = "quarry:pick_flint", recipe = {
recipe = { {"default:flint", "default:flint", "default:flint"},
{"default:flint", "default:flint", "default:flint"}, {"", "group:stick", ""},
{"", "group:stick", ""}, {"", "group:stick", ""}
{"", "group:stick", ""} }
} })
})
end

View File

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