mods that hopefully work for a TechAge-based pack

This commit is contained in:
2026-09-09 06:27:51 -06:00
parent 4e6b08d194
commit c27db2a537
6234 changed files with 375578 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
*.png_original
*.xcf
locale/*.old
+6
View File
@@ -0,0 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
"diagnostics": {
"globals": ["minetest", "core", "farming", "x_farming", "ItemStack", "vector", "default", "stairs"]
}
}
+54
View File
@@ -0,0 +1,54 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [0.1.0] - 2025-09-22
### Added
- Add emerald tools when mod `mcl_emerald_stuff` is used (#10)
- Add netherite tools for Mineclonia (#11, #13)
### Changed
- Update german translations
- Update french translations
### Fixed
- Fix warning about boolean value being deprecated for `use_texture_alpha` parameter (#14, #15)
- Tools are now compatible with Mineclonia enchantment unbreaking (#9)
## [0.0.2] - 2025-07-27
### Added
- Add rakes
- Add mithril tools if mod `moreores` is enabled
- Add support for `x_farming` mod (#3, #4)
- Add partial support for `cucina_vegana` mod (#2, #6)
- Add Mineclonia & VoxeLibre support (thanks to @bgstack15) (#7, #8)
### Changed
- Improved backwards-compatibility with the `sickles` mod
- Improve translations
### Fixed
- Auto-replant melons and pumpkins from `farming_redo` mod
- Prevent trellis and bean poles duplication from the `farming_redo` mod (#1)
- Do not wear out scythes when player is in creative (#5)
## [0.0.1] - 2025-07-13
### Added
- This is the initial release of this mod. It is still WIP.
[Unreleased]: https://codeberg.org/camelia/farmtools/src/branch/main
[0.1.0]: https://codeberg.org/camelia/farmtools/releases/tag/0.1.0
[0.0.2]: https://codeberg.org/camelia/farmtools/releases/tag/0.0.2
[0.0.1]: https://codeberg.org/camelia/farmtools/releases/tag/0.0.1
+192
View File
@@ -0,0 +1,192 @@
License of textures
--------------------
textures/farmtools_*:
Copyright (C) 2025 Camelia Lavender <cam@camelia.dev>
textures/sickles_*:
Copyright (C) 2020-2024 Cap
textures/nature_blossom.png textures/trunks_moss.png:
Copyright (C) 2012-2024 Vanessa Ezekowitz
Individual licenses can be found under textures/LICENSES/*.txt
License of sounds
------------------
Copyright (C) 2012 DrMinky
Full license text can be found under sounds/LICENSE.txt
License of source code
----------------------
Copyright (C) 2025 Camelia Lavender <cam@camelia.dev>
Copyright (C) 2020-2024 Till Affeldt
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
+89
View File
@@ -0,0 +1,89 @@
# Farm Tools
Based on the [Scythes & Sickles](https://github.com/t-affeldt/sickles) mod by TestificateMods, this mod adds various tools to make farming more convenient.
![Banner image](https://codeberg.org/camelia/farmtools/media/tag/0.0.1/screenshot.png)
Scythes allow you to quickly sweep through your fields. They can only break fully grown crops and harvest multiple plants at once. They also replant harvested crops automatically. Alternatively, they can be used as an effective weapon with higher range.
Sickles allow you to scrape grass and moss from overgrown nodes. The resulting moss can then be used as dye or fertilizer. They also let you to cut wheat and other grains more precisely, allowing you to harvest some crops without completely resetting them.
Finally, rakes allow you to turn dirt into soil in a 3x3 area, so that you can create bigger farms more quickly.
## About this mod
### Why a fork?
When I created this fork, the source code repository of the original mod didn't have any activity since almost a year, and there were some issues in the mod since multiple years. After sending my patches to the maintainer of the original mod, I decided to go ahead and make my own fork.
### How does it differ from the original mod?
It may differ more and more in the future. Currently, I have fixed two long-lasting bugs:
- The scythes and sickles now work on all plants from the `farming_redo` mod. In the original mod, they didn't work when the node ID of the plant was different from the item name (for instance, raspberries have the following node ID: `farming:raspberry`, whereas the item in the inventory has `farming:raspberries`).
- Plants from the `farming_redo` that don't drop their seeds when harvested can now be replanted if seeds can be crafted from their fruit. This is the case for `farming:sunflower`, `farming:garlic` and `farming:pepper`.
In addition:
- I also added a diamond version of the tools, and plan to support other materials in the future.
- I added rakes, that allow to turn dirt into soil in a 3x3 area.
## Roadmap
- [x] Add support for `x_farming` mod
- [x] Add rakes with other materials (i.e. gold, diamond, etc.)
- [x] Add mithril tools
- [ ] Improve translations
## Features
### Scythes
- only break fully grown crops
- harvest all grown neighboring crops as well
- automatically replant harvested crops
- can be used as a weapon with slightly more range
### Sickles
- are an effective cutting tool
- can harvest grass and moss from overgrown nodes
- reset wheat and other grains by a few stages upon harvest instead of destroying them
- have a slightly shorter range
### Rakes
- can turn dirt into soil in a 3x3 area
- are therefore more efficient than hoes
### Moss
- can be found in four different colors
- can be used as fuel in a furnace
- can be crafted into dye
- can be cooked into fertiliser (requires bonemeal mod)
- can be turned into blocks
- can be placed on the side of any node
- can be eaten for a minimal health gain
### Moss Blocks
- are an effective fuel in a furnace
- can be used as a building block
- can be crafted into slabs and stairs
- can be dyed in any of it's four natural colors
## Credits
### Code
- This is a fork of [the original mod](https://github.com/t-affeldt/sickles) written by Till Affeldt and licensed under [LGPL-3.0](https://www.gnu.org/licenses/lgpl-3.0.en.html).
- This fork is made by Camelia Lavender and is licensed under [LGPL-3.0](https://www.gnu.org/licenses/lgpl-3.0.en.html). as well.
- Some of the code used for the rakes (`lib/rake.lua`) is directly based on the [Minetest Game farming/hoes mod](https://github.com/luanti-org/minetest_game/blob/master/mods/farming/hoes.lua). The original code is licensed under [LGPL-2.1](https://github.com/luanti-org/minetest_game/blob/master/LICENSE.txt), and the adapted code present in this repository is licensed under [LGPL-3.0](https://www.gnu.org/licenses/lgpl-3.0.en.html).
- Mineclonia/VoxeLibre support was made by [bgstack15](https://codeberg.org/bgstack15).
### Assets
- Textures for rakes are made by Camelia Lavender, and are licensed under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/deed.en).
- Textures for scythes and sickles added in this fork (i.e. diamond scythes and sickles, etc.) are made by Camelia Lavender based on the textures made by Cap for the original mod, that are licensed under _CC BY-SA 3.0_. [Therefore](https://creativecommons.org/share-your-work/licensing-considerations/compatible-licenses/), those textures are licensed under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/deed.en).
- Textures for tools included in the original mod and moss items are made by Cap for the original mod and licensed under [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/deed.en).
- Textures for placed moss node and flower petals are by Vanessa Ezekowitz under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/deed.en) for her [plantlife modpack](https://forum.minetest.net/viewtopic.php?t=3898).
- The sound effect for placing or breaking moss blocks is made by DrMinky under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/deed.en) and can be found on [FreeSound](https://freesound.org/people/DrMinky/sounds/167073/).
+241
View File
@@ -0,0 +1,241 @@
# Farm Tools API
The `farmtools` mod exposes an API that makes it easy (as long as you understand Lua) to register new tools.
## 1. Scythes
The code related to scythes is available in `lib/scythes.lua`. However, scythes (along with other tools) are registered in `lib/tools.lua`.
### 1.1. `farmtools.register_scythe`
The function used for registering new scythes.
#### Usage
```lua
local S = core.get_translator("my_mod")
farmtools.register_scythe("my_mod:my_scythe", {
description = S("My Scythe"),
inventory_image = "my_mod_my_scythe.png",
level = 1,
max_uses = 200,
material = "my_mod:my_material_ingot"
})
```
#### Arguments
- **name**: the name of the item to register as a scythe (e.g. `"my_mod:my_scythe"`).
- **def**: the definition table, that can contain:
- **description**: the name of the item as shown to the user (default: `Scythe`).
- **inventory_image**: the image of the item to display in the game (default: `unknown_item.png`)
- **level**: the level of the scythe (`0` = the scythe will harvest the pointed node only, `1` = the scythe will harvest in a 3x3 area, `2` = the scythe will harvest in a 5x5 area, and so on) (default: `1`).
- **max_uses**: the number of times the scythe can be used (default: `90`, but you may want to use at least `200` here, otherwise the tool will wear out very fast). Note that unlike in the original `sickles` mod, _one use_ corresponds to _one node_ processed (i.e. if 9 nodes are processed, this will be considered _nine uses_).
- **material**: the material used for the default scythe recipe (no default: if not specified, the recipe won't be registered)
- **recipe**: alternatively, it is possible to specify the recipe directly (note that this will override any `material` specified)
#### Default recipe
The default recipe for scythes is as follow (it can be overriden using `recipe` in the definition table):
```text
----------------------------------
| | | |
| | material | material |
| | | |
----------------------------------
| | | |
| material | | stick |
| | | |
----------------------------------
| | | |
| | | stick |
| | | |
----------------------------------
```
### 1.2. `farmtools.scythe_on_use`
The function called when the scythe is used. This function should not be called directly unless you know what you are doing.
#### Usage
```lua
farmtools.scythe_on_use(itemstack, user, pointed_thing, uses)
```
#### Arguments
- **itemstack**: the ItemStack object (should be in the scythe group, otherwise it will not be able to harvest in an area bigger than a single node).
- **user**: the player using the scythe.
- **pointed_thing**: the pointed thing when the scythe is used.
- **uses**: the maximum number of times the scythe can be used.
#### Returns
- **ItemStack**: the ItemStack specified as an argument (worn-out, if it should be)
## 2. Rakes
The code related to rakes is available in `lib/rakes.lua`. However, rakes (along with other tools) are registered in `lib/tools.lua`.
### 2.1. `farmtools.register_rake`
The function used for registering new rakes.
#### Usage
```lua
local S = core.get_translator("my_mod")
farmtools.register_rake("my_mod:my_rake", {
description = S("My Rake"),
inventory_image = "my_mod_my_rake.png",
level = 1,
max_uses = 200,
material = "my_mod:my_material_ingot"
})
```
#### Arguments
- **name**: the name of the item to register as a rake (e.g. `"my_mod:my_rake"`).
- **def**: the definition table, that can contain:
- **description**: the name of the item as shown to the user (default: `Rake`).
- **inventory_image**: the image of the item to display in the game (default: `unknown_item.png`)
- **level**: the level of the rake (`0` = the rake will turn only the pointed node into soil (as long as it is possible to do so), `1` = the rake will turn dirt into soil in a 3x3 area, `2` = the rake will turn dirt into soil in a 5x5 area, and so on) (default: `1`).
- **max_uses**: the number of times the rake can be used (default: `90`). Note that unlike in the original `sickles` mod, _one use_ corresponds to _one node_ processed (i.e. if 9 nodes are processed, this will be considered _nine uses_).
- **material**: the material used for the default rake recipe (no default: if not specified, the recipe won't be registered)
- **recipe**: alternatively, it is possible to specify the recipe directly (note that this will override any `material` specified)
#### Default recipe
The default recipe for rakes is as follow (it can be overriden using `recipe` in the definition table):
```text
----------------------------------
| | | |
| material | material | material |
| | | |
----------------------------------
| | | |
| material | stick | material |
| | | |
----------------------------------
| | | |
| | stick | |
| | | |
----------------------------------
```
### 2.2. `farmtools.rake_on_use`
The function called when the rake is used. This function should not be called directly unless you know what you are doing.
#### Usage
```lua
farmtools.rake_on_use(itemstack, user, pointed_thing, uses)
```
#### Arguments
- **itemstack**: the ItemStack object (should be in the rake group, otherwise it will act as a regular hoe).
- **user**: the player using the rake.
- **pointed_thing**: the pointed thing when the rake is used.
- **uses**: the maximum number of times the ItemStack object can be used.
#### Returns
- **ItemStack**: the ItemStack specified as an argument (worn-out, if it should be)
## 3. Sickles
### 3.1. `farmtools.register_sickle`
The function used for registering new sickles.
#### Usage
```lua
local S = core.get_translator("my_mod")
farmtools.register_sickle("my_mod:my_sickle", {
description = S("My Sickle"),
inventory_image = "my_mod_my_sickle.png",
max_uses = 200,
material = "my_mod:my_material_ingot",
damage_groups = { fleshy = 2 },
groupcaps = {
snappy = { times = { [1] = 2.75, [2] = 1.30, [3] = 0.375 }, uses = 100, maxlevel = 2 }
}
})
```
#### Arguments
- **name**: the name of the item to register as a sickle (e.g. `"my_mod:my_sickle"`).
- **def**: the definition table, that can contain:
- **description**: the name of the item as shown to the user (default: `Sickle`).
- **inventory_image**: the image of the item to display in the game (default: `unknown_item.png`)
- **max_uses**: the number of times the rake can be used (default: `120`).
- **material**: the material used for the default sickle recipe (no default: if not specified, the recipe won't be registered)
- **recipe**: alternatively, it is possible to specify the recipe directly (note that this will override any `material` specified)
- **damage_groups**: a table containing the damage the item can do to different entity groups.
- **groupcaps**: a `groupcaps` table ([more information here](https://api.luanti.org/tool-capabilities/#uses-uses-tools-only)).
#### Default recipe
The default recipe for sickles is as follow (it can be overriden using `recipe` in the definition table):
```text
----------------------------------
| | | |
| material | | |
| | | |
----------------------------------
| | | |
| | material | |
| | | |
----------------------------------
| | | |
| stick | | |
| | | |
----------------------------------
```
### 3.2. `farmtools.register_cuttable`
The function used for registering nodes that can be cut with the sickle.
#### Usage
```lua
farmtools.register_cuttable(nodename, base, item)
-- e.g.:
farmtools.register_cuttable("default:mossycobble", "default:cobble", "farmtools:moss")
```
#### Arguments
- **nodename**: the node to register as cuttable
- **base**: the node that should be put in place of the cuttable node after it is cut
- **item**: the item that the player obtains when cutting the cuttable node
### 3.3. `farmtools.register_trimmable`
The function used for registering nodes that can be trimmed with the sickle.
#### Usage
```lua
farmtools.register_trimmable(node, base)
-- e.g.:
farmtools.register_trimmable("farming:wheat_8", "farming:wheat_2")
```
#### Arguments
- **node**: the node to register as trimmable
- **base**: the node that should be put in place of the trimmable node after it is trimmed
+23
View File
@@ -0,0 +1,23 @@
local modpath = core.get_modpath(core.get_current_modname())
---@diagnostic disable-next-line: lowercase-global
farmtools = {}
farmtools.i18n = core.get_translator("farmtools")
-- load code related to scythes, rakes and sickles
dofile(modpath .. "/lib/scythes.lua")
dofile(modpath .. "/lib/rakes.lua")
dofile(modpath .. "/lib/sickles.lua")
-- shadow the original sickles mod if it is enabled
dofile(modpath .. "/lib/fork.lua")
-- register tools
dofile(modpath .. "/lib/tools.lua")
-- register moss and flower petals and ensure compatibility with other mods
dofile(modpath .. "/lib/moss.lua")
dofile(modpath .. "/lib/compatibility.lua")
-- finally register nodes that are cuttable/trimmable by sickles
dofile(modpath .. "/lib/cuttables.lua")
+86
View File
@@ -0,0 +1,86 @@
local mod_flowers = core.get_modpath("flowers") ~= nil
local mod_bonemeal = core.get_modpath("bonemeal") ~= nil
local mod_trunks = core.get_modpath("trunks") ~= nil
local mod_cottages = core.get_modpath("cottages") ~= nil
local mod_gloopblocks = core.get_modpath("gloopblocks") ~= nil
-- turn moss into fertilizer by cooking
if mod_bonemeal then
core.register_craft({
type = "cooking",
cooktime = 9,
output = "bonemeal:fertiliser",
recipe = "group:moss",
})
end
-- turn moss from trunks mod into this mod's moss
if mod_trunks then
core.register_alias_force("trunks:moss", "farmtools:moss")
core.register_craft({
type = "shapeless",
output = " trunks:moss_fungus",
recipe = { "group:moss", "group:mushroom" },
})
end
-- enable crafting of flower petals
if mod_flowers then
core.register_craft({
output = "sickles:petals",
recipe = {
{ "flowers:dandelion_white", "flowers:dandelion_white" },
{ "flowers:dandelion_white", "flowers:dandelion_white" },
},
})
end
-- override pitchfork to use sickle mechanic
if mod_cottages then
core.override_item("default:dirt_with_grass", {
after_dig_node = function() end,
})
local groups = core.registered_tools["cottages:pitchfork"].groups
groups.sickle = 1
groups.sickle_uses = 120
core.override_item("cottages:pitchfork", {
groups = groups,
})
core.register_craft({
output = "cottages:hay_mat",
recipe = { { "group:grass", "group:grass", "group:grass" } },
})
end
-- change crafting recipes of mossy blocks to use moss item
if mod_gloopblocks then
core.clear_craft({
output = "gloopblocks:stone_brick_mossy",
})
core.register_craft({
type = "shapeless",
output = "gloopblocks:stone_brick_mossy",
recipe = { "default:stonebrick", "farmtools:moss" },
})
core.clear_craft({
output = "gloopblocks:cobble_road_mossy",
})
core.register_craft({
type = "shapeless",
output = "gloopblocks:cobble_road_mossy",
recipe = { "gloopblocks:cobble_road", "farmtools:moss" },
})
core.clear_craft({
output = "gloopblocks:stone_mossy",
})
core.register_craft({
type = "shapeless",
output = "gloopblocks:stone_mossy",
recipe = { "default:stone", "farmtools:moss" },
})
end
+222
View File
@@ -0,0 +1,222 @@
local mod_stairs = core.get_modpath("stairs")
local mod_walls = core.get_modpath("walls")
local mod_farming = core.get_modpath("farming") ~= nil
local mod_footprints = core.get_modpath("footprints") ~= nil
local mod_nature = core.get_modpath("nature_classic") ~= nil
local mod_moretrees = core.get_modpath("moretrees") ~= nil
local mod_woodsoils = core.get_modpath("woodsoils") ~= nil
local mod_grains = core.get_modpath("grains") ~= nil
local mod_cucina_vegana = core.get_modpath("cucina_vegana") ~= nil
local mod_caverealms = core.get_modpath("caverealms") ~= nil
local mod_df_mapitems = core.get_modpath("df_mapitems") ~= nil
local mod_df_primordial_items = core.get_modpath("df_primordial_items") ~= nil
local mod_ethereal = core.get_modpath("ethereal") ~= nil
local mod_gloopblocks = core.get_modpath("gloopblocks") ~= nil
local mod_underch = core.get_modpath("underch") ~= nil
local mod_mcl_core = core.get_modpath("mcl_core") ~= nil
local mod_mcl_walls = core.get_modpath("mcl_walls") ~= nil
local mod_mcl_stairs = core.get_modpath("mcl_stairs") ~= nil
local mod_mcl_farming = core.get_modpath("mcl_farming") ~= nil
local function register_mcl_cuttable_range(nodename, base, item, number)
for i = 0, number do
farmtools.register_cuttable(nodename .. "_" .. i, base .. "_" .. i, item)
end
end
if mod_mcl_core then
farmtools.register_cuttable("mcl_core:dirt_with_grass", "mcl_core:dirt", "mcl_flowers:double_grass")
farmtools.register_cuttable("mcl_core:mossycobble", "mcl_core:cobble", "sickles:moss")
farmtools.register_cuttable("mcl_core:stonebrickmossy", "mcl_core:stonebrick", "sickles:moss")
farmtools.register_cuttable("mcl_stairs:stair_stonebrickmossy", "mcl_stairs:stair_stonebrick", "sickles:moss")
farmtools.register_cuttable(
"mcl_stairs:stair_stonebrickmossy_inner",
"mcl_stairs:stair_stonebrick_inner",
"sickles:moss"
)
farmtools.register_cuttable(
"mcl_stairs:stair_stonebrickmossy_outer",
"mcl_stairs:stair_stonebrick_outer",
"sickles:moss"
)
farmtools.register_cuttable("mcl_stairs:slab_stonebrickmossy", "mcl_stairs:slab_stonebrick", "sickles:moss")
farmtools.register_cuttable(
"mcl_stairs:slab_stonebrickmossy_double",
"mcl_stairs:slab_stonebrick_double",
"sickles:moss"
)
farmtools.register_cuttable("mcl_stairs:slab_stonebrickmossy_top", "mcl_stairs:slab_stonebrick_top", "sickles:moss")
else -- default
farmtools.register_cuttable("default:dirt_with_grass", "default:dirt", "default:grass_1")
farmtools.register_cuttable("default:dirt_with_dry_grass", "default:dirt", "default:dry_grass_1")
farmtools.register_cuttable("default:dry_dirt_with_dry_grass", "default:dry_dirt", "default:dry_grass_1")
farmtools.register_cuttable("default:dirt_with_rainforest_litter", "default:dirt", "default:junglegrass")
farmtools.register_cuttable("default:dirt_with_coniferous_litter", "default:dirt", "default:dry_grass_1")
farmtools.register_cuttable("default:permafrost_with_moss", "default:permafrost", "sickles:moss")
farmtools.register_cuttable("default:mossycobble", "default:cobble", "sickles:moss")
end
if mod_mcl_walls then
farmtools.register_cuttable("mcl_walls:mossycobble", "mcl_walls:cobble", "sickles:moss")
register_mcl_cuttable_range("mcl_walls:mossycobble", "mcl_walls:cobble", "sickles:moss", 21)
farmtools.register_cuttable("mcl_walls:stonebrickmossy", "mcl_walls:stonebrick", "sickles:moss")
register_mcl_cuttable_range("mcl_walls:stonebrickmossy", "mcl_walls:stonebrickmossy", "sickles:moss", 21)
end
if mod_walls then
farmtools.register_cuttable("walls:mossycobble", "walls:cobble", "sickles:moss")
end
if mod_mcl_stairs then
farmtools.register_cuttable("mcl_stairs:slab_mossycobble", "mcl_stairs:slab_cobble", "sickles:moss")
farmtools.register_cuttable("mcl_stairs:slab_mossycobble_double", "mcl_stairs:slab_cobble_double", "sickles:moss")
farmtools.register_cuttable("mcl_stairs:slab_mossycobble_top", "mcl_stairs:slab_cobble_top", "sickles:moss")
farmtools.register_cuttable("mcl_stairs:stair_mossycobble", "mcl_stairs:stair_cobble", "sickles:moss")
farmtools.register_cuttable("mcl_stairs:stair_mossycobble_inner", "mcl_stairs:stair_cobble_inner", "sickles:moss")
farmtools.register_cuttable("mcl_stairs:stair_mossycobble_outer", "mcl_stairs:stair_cobble_outer", "sickles:moss")
farmtools.register_cuttable("mcl_stairs:stair_inner_mossycobble", "mcl_stairs:stair_inner_cobble", "sickles:moss")
farmtools.register_cuttable("mcl_stairs:stair_outer_mossycobble", "mcl_stairs:stair_outer_cobble", "sickles:moss")
end
if mod_stairs then
farmtools.register_cuttable("stairs:slab_mossycobble", "stairs:slab_cobble", "farmtools:moss")
farmtools.register_cuttable("stairs:stair_mossycobble", "stairs:stair_cobble", "farmtools:moss")
farmtools.register_cuttable("stairs:stair_inner_mossycobble", "stairs:stair_inner_cobble", "farmtools:moss")
farmtools.register_cuttable("stairs:stair_outer_mossycobble", "stairs:stair_outer_cobble", "farmtools:moss")
end
if mod_footprints then
farmtools.register_cuttable("footprints:dirt_with_dry_grass", "default:dirt", "default:dry_grass_1")
farmtools.register_cuttable("footprints:dry_dirt_with_dry_grass", "default:dry_dirt", "default:dry_grass_1")
farmtools.register_cuttable("footprints:dirt_with_rainforest_litter", "default:dirt", "default:junglegrass")
farmtools.register_cuttable("footprints:dirt_with_coniferous_litter", "default:dirt", "default:dry_grass_1")
end
if mod_nature and not mod_moretrees then
farmtools.register_cuttable("nature:blossom", "default:leaves", "farmtools:petals")
end
if mod_moretrees then
farmtools.register_cuttable("moretrees:apple_blossoms", "moretrees:apple_tree_leaves", "farmtools:petals")
end
if mod_woodsoils then
farmtools.register_cuttable("woodsoils:dirt_with_leaves_1", "default:dirt", "default:dry_grass_1")
farmtools.register_cuttable("woodsoils:dirt_with_leaves_2", "default:dirt", "default:dry_grass_1")
farmtools.register_cuttable("woodsoils:grass_with_leaves_1", "default:dirt", "default:dry_grass_1")
farmtools.register_cuttable("woodsoils:grass_with_leaves_2", "default:dirt", "default:dry_grass_1")
end
if mod_mcl_farming then
farmtools.register_trimmable("mcl_farming:wheat", "mcl_farming:wheat_2")
-- one does not use a sickle for beetroots, pumpkins, or melons
end
if mod_farming then
farmtools.register_trimmable("farming:wheat_8", "farming:wheat_2")
end
if mod_farming and farming ~= nil and farming.mod == "redo" then
farmtools.register_trimmable("farming:rye_8", "farming:rye_2")
farmtools.register_trimmable("farming:oat_8", "farming:oat_2")
farmtools.register_trimmable("farming:barley_7", "farming:barley_2")
farmtools.register_trimmable("farming:rice_8", "farming:rice_2")
end
if mod_grains then
farmtools.register_trimmable("grains:rye_8", "grains:rye_2")
farmtools.register_trimmable("grains:oat_8", "grains:oat_2")
farmtools.register_trimmable("grains:barley_8", "grains:barley_2")
farmtools.register_trimmable("grains:rice_8", "grains:rice_2")
end
if mod_cucina_vegana then
farmtools.register_trimmable("cucina_vegana:rice_6", "cucina_vegana:rice_2")
end
if mod_caverealms then
farmtools.register_cuttable("caverealms:stone_with_moss", "default:cobble", "farmtools:moss")
farmtools.register_cuttable("caverealms:stone_with_lichen", "default:cobble", "farmtools:moss_purple")
farmtools.register_cuttable("caverealms:stone_with_algae", "default:cobble", "farmtools:moss_yellow")
end
if mod_df_mapitems then
farmtools.register_cuttable("df_mapitems:dirt_with_cave_moss", "default:cobble", "farmtools:moss_blue")
farmtools.register_cuttable("df_mapitems:cobble_with_floor_fungus", "default:cobble", "farmtools:moss_yellow")
farmtools.register_cuttable("df_mapitems:cobble_with_floor_fungus_fine", "default:cobble", "farmtools:moss_yellow")
farmtools.register_cuttable("df_mapitems:ice_with_hoar_moss", "default:ice", "farmtools:moss_blue")
end
if mod_df_primordial_items then
farmtools.register_cuttable(
"df_primordial_items:dirt_with_mycelium",
"default:dirt",
"df_primordial_items:fungal_grass_1"
)
farmtools.register_cuttable(
"df_primordial_items:jungle_tree_mossy",
"df_primordial_items:jungle_tree",
"farmtools:moss"
)
farmtools.register_cuttable(
"df_primordial_items:jungle_tree_glowing",
"df_primordial_items:jungle_tree",
"df_primordial_items:mushroom_gills_glowing"
)
farmtools.register_cuttable(
"df_primordial_items:dirt_with_jungle_grass",
"default:dirt",
"df_primordial_items:jungle_grass_1"
)
end
if mod_ethereal then
farmtools.register_cuttable("ethereal:bamboo_dirt", "default:dirt", "default:grass_1")
farmtools.register_cuttable("ethereal:cold_dirt", "default:dirt", "default:grass_1")
farmtools.register_cuttable("ethereal:crystal_dirt", "default:dirt", "ethereal:crystalgrass")
farmtools.register_cuttable("ethereal:fiery_dirt", "default:dirt", "ethereal:dry_shrub")
farmtools.register_cuttable("ethereal:gray_dirt", "default:dirt", "ethereal:snowygrass")
farmtools.register_cuttable("ethereal:grove_dirt", "default:dirt", "farmtools:moss")
farmtools.register_cuttable("ethereal:jungle_dirt", "default:dirt", "default:junglegrass")
farmtools.register_cuttable("ethereal:mushroom_dirt", "default:dirt", "flowers:mushroom_red")
farmtools.register_cuttable("ethereal:prairie_dirt", "default:dirt", "farmtools:petals")
end
if mod_gloopblocks then
farmtools.register_cuttable("gloopblocks:stone_brick_mossy", "default:stonebrick", "farmtools:moss")
farmtools.register_cuttable("gloopblocks:stone_mossy", "default:stone", "farmtools:moss")
farmtools.register_cuttable("gloopblocks:cobble_road_mossy", "gloopblocks:cobble_road", "farmtools:moss")
end
if mod_gloopblocks and mod_stairs then
farmtools.register_cuttable("stairs:stair_stone_mossy", "stairs:stair_stone", "farmtools:moss")
farmtools.register_cuttable("stairs:stair_inner_stone_mossy", "stairs:stair_inner_stone", "farmtools:moss")
farmtools.register_cuttable("stairs:stair_outer_stone_mossy", "stairs:stair_outer_stone", "farmtools:moss")
farmtools.register_cuttable("stairs:slab_stone_mossy", "stairs:slab_stone", "farmtools:moss")
farmtools.register_cuttable("stairs:stair_stone_brick_mossy", "stairs:stair_stonebrick", "farmtools:moss")
farmtools.register_cuttable(
"stairs:stair_inner_stone_brick_mossy",
"stairs:stair_inner_stonebrick",
"farmtools:moss"
)
farmtools.register_cuttable(
"stairs:stair_outer_stone_brick_mossy",
"stairs:stair_outer_stonebrick",
"farmtools:moss"
)
farmtools.register_cuttable("stairs:slab_stone_brick_mossy", "stairs:slab_stonebrick", "farmtools:moss")
farmtools.register_cuttable("stairs:stair_cobble_road_mossy", "stairs:stair_cobble_road", "farmtools:moss")
farmtools.register_cuttable(
"stairs:stair_inner_cobble_road_mossy",
"stairs:stair_inner_cobble_road",
"farmtools:moss"
)
farmtools.register_cuttable(
"stairs:stair_outer_cobble_road_mossy",
"stairs:stair_outer_cobble_road",
"farmtools:moss"
)
farmtools.register_cuttable("stairs:slab_cobble_road_mossy", "stairs:slab_cobble_road", "farmtools:moss")
end
if mod_underch then
farmtools.register_cuttable("underch:mossy_dirt", "default:dirt", "farmtools:moss")
farmtools.register_cuttable("underch:mossy_gravel", "default:gravel", "farmtools:moss")
end
+22
View File
@@ -0,0 +1,22 @@
-- Backwards compatibility with the sickles mod
local sickles_items = {
"moss",
"moss_purple",
"moss_blue",
"moss_yellow",
"moss_block",
"moss_block_purple",
"moss_block_blue",
"moss_block_yellow",
"petals",
"scythe_bronze",
"scythe_steel",
"sickle_bronze",
"sickle_gold",
"sickle_steel",
}
for _, item in pairs(sickles_items) do
core.register_alias_force("sickles:" .. item, "farmtools:" .. item)
end
+215
View File
@@ -0,0 +1,215 @@
local mod_stairs = core.get_modpath("stairs") ~= nil
local mod_mcl_stairs = core.get_modpath("mcl_stairs") ~= nil
local mod_mcl_tools = core.get_modpath("mcl_tools") ~= nil
local is_voxelibre = mod_mcl_tools and (mcl_tools == nil)
local mod_dye = core.get_modpath("dye") ~= nil
local mod_mcl_dyes = core.get_modpath("mcl_dyes") ~= nil
local mod_mcl_lush_caves = core.get_modpath("mcl_lush_caves") ~= nil
local mod_mcl_sounds = core.get_modpath("mcl_sounds") ~= nil
local default_moss_png = "default_moss.png"
if mod_mcl_lush_caves then
default_moss_png = "mcl_lush_caves_moss.png"
end
local S = farmtools.i18n
local colors = {
{ dye = "dark_green" },
{ hex = "#894adb70", name = "purple", dye = "violet" },
{ hex = "#6c7eb070", name = "blue", dye = "cyan" },
{ hex = "#bcc56770", name = "yellow", dye = "yellow" },
}
local sounds
local sounds_table = {
footstep = "default_grass_footstep",
dug = "sickles_moss_dug",
place = "sickles_moss_dug",
}
if mod_mcl_sounds then
sounds = mcl_sounds.node_sound_leaves_defaults(sounds_table)
else
sounds = default.node_sound_leaves_defaults(sounds_table)
end
local node_box = {
type = "wallmounted",
wall_side = { -0.5, -0.5, -0.5, -0.45, 0.5, 0.5 },
wall_top = { -0.5, 0.45, -0.5, 0.5, 0.5, 0.5 },
wall_bottom = { -0.5, -0.5, -0.5, 0.5, -0.45, 0.5 },
}
local function register_stairs(subname, recipeitem, groups, images, desc_stair, desc_slab, desc_slope, snds, wat)
if mod_mcl_stairs then
if is_voxelibre then
mcl_stairs.register_stair_and_slab(subname, recipeitem, groups, images, desc_stair, desc_slab, snds)
else
-- mineclonia
mcl_stairs.register_stair_and_slab(subname, {
baseitem = recipeitem,
description_stair = desc_stair,
description_slab = desc_slab,
groups = groups,
sounds = snds,
})
end
end
if not mod_stairs then
return
end
stairs.register_stair_and_slab(subname, recipeitem, groups, images, desc_stair, desc_slab, snds, wat)
if stairs.mod == "redo" then
stairs.register_slope(subname, recipeitem, groups, images, desc_slope, snds, wat)
end
end
for _, color in ipairs(colors) do
local name_suffix = ""
local display_name_prefix = ""
local texture_overlay = ""
if color.name ~= nil then
name_suffix = "_" .. color.name
display_name_prefix = color.name:gsub("^%l", string.upper) .. " "
end
if color.hex ~= nil then
texture_overlay = "^[colorize:" .. color.hex
end
core.register_node("farmtools:moss" .. name_suffix, {
description = S(display_name_prefix .. "Moss"),
inventory_image = "sickles_moss_item.png" .. texture_overlay,
wield_image = "sickles_moss_item.png" .. texture_overlay,
tiles = { "trunks_moss.png" .. texture_overlay },
groups = {
snappy = 3,
attached_node = 1,
flora = 1,
food = 1,
moss = 1,
food_moss = 1,
flammable = 2,
},
on_use = core.item_eat(1),
is_ground_content = false,
sounds = sounds,
use_texture_alpha = "clip",
drawtype = "signlike",
paramtype = "light",
paramtype2 = "wallmounted",
node_box = node_box,
selection_box = node_box,
sunlight_propagates = true,
walkable = false,
buildable_to = true,
floodable = true,
})
core.register_node("farmtools:moss_block" .. name_suffix, {
description = S(display_name_prefix .. "Moss Block"),
tiles = { default_moss_png .. texture_overlay },
is_ground_content = false,
groups = { snappy = 3, moss_block = 1, flammable = 2, fall_damage_add_percent = -80 },
sounds = sounds,
})
register_stairs(
"moss_block" .. name_suffix,
"farmtools:moss_block" .. name_suffix,
{ snappy = 3, flammable = 2, fall_damage_add_percent = -80 },
{ default_moss_png .. texture_overlay },
S(display_name_prefix .. "Moss Stair"),
S(display_name_prefix .. "Moss Slab"),
S(display_name_prefix .. "Moss Slope"),
sounds
)
core.register_craft({
output = "farmtools:moss_block" .. name_suffix .. " 3",
recipe = {
{
"farmtools:moss" .. name_suffix,
"farmtools:moss" .. name_suffix,
"farmtools:moss" .. name_suffix,
},
{
"farmtools:moss" .. name_suffix,
"farmtools:moss" .. name_suffix,
"farmtools:moss" .. name_suffix,
},
{
"farmtools:moss" .. name_suffix,
"farmtools:moss" .. name_suffix,
"farmtools:moss" .. name_suffix,
},
},
})
core.register_craft({
output = "farmtools:moss" .. name_suffix .. " 3",
recipe = { { "farmtools:moss_block" .. name_suffix } },
})
if mod_dye then
core.register_craft({
type = "shapeless",
output = "farmtools:moss_block" .. name_suffix,
recipe = { "group:moss_block", "dye:" .. color.dye },
})
core.register_craft({
output = "dye:" .. color.dye,
recipe = { { "farmtools:moss" .. name_suffix } },
})
end
if mod_mcl_dyes then
core.register_craft({
type = "shapeless",
output = "sickles:moss_block" .. name_suffix,
recipe = { "group:moss_block", "mcl_dyes:" .. color.dye },
})
core.register_craft({
output = "mcl_dyes:" .. color.dye,
recipe = { { "sickles:moss" .. name_suffix } },
})
end
end
core.register_craft({
type = "fuel",
recipe = "group:moss",
burntime = 2,
})
core.register_craft({
type = "fuel",
recipe = "group:moss_block",
burntime = 18,
})
local use_sounds
if mod_mcl_sounds then
use_sounds = mcl_sounds.node_sound_leaves_defaults()
else
use_sounds = default.node_sound_leaves_defaults()
end
core.register_node("farmtools:petals", {
description = S("Flower Petals"),
tiles = { "nature_blossom.png" },
inventory_image = "nature_blossom.png",
wield_image = "nature_blossom.png",
is_ground_content = false,
groups = { snappy = 3, attached_node = 1 },
sounds = use_sounds,
use_texture_alpha = "clip",
drawtype = "signlike",
paramtype = "light",
paramtype2 = "wallmounted",
node_box = node_box,
selection_box = node_box,
sunlight_propagates = true,
walkable = false,
buildable_to = true,
floodable = true,
})
+220
View File
@@ -0,0 +1,220 @@
local mod_mcl_farming = core.get_modpath("mcl_farming") ~= nil
local mod_mcl_tools = core.get_modpath("mcl_tools") ~= nil
local is_voxelibre = mod_mcl_tools and (mcl_tools == nil)
local S = farmtools.i18n
local get_node_pointer = function(pos)
return {
under = { x = pos.x, y = pos.y, z = pos.z },
above = { x = pos.x, y = pos.y + 1, z = pos.z },
}
end
local get_item_group = function(def, group)
if def == nil or def.groups == nil or def.groups[group] == nil then
return 0
end
return def.groups[group]
end
local rake_on_use_single_node = function(user, node_ptr)
-- this function is based on the farming.hoe_on_use from the minetest_game by Luanti
-- see: https://github.com/luanti-org/minetest_game/blob/master/mods/farming/hoes.lua
-- original code is licensed under LGPL-2.1
-- this functions returns a boolean value, that indicates whether it was
-- able to replace the specified node with soil
local under = core.get_node(node_ptr.under)
local p = { x = node_ptr.under.x, y = node_ptr.under.y + 1, z = node_ptr.under.z }
local above = core.get_node(p)
-- fail if any of the nodes is not registered
if not core.registered_nodes[under.name] then
return false
end
if not core.registered_nodes[above.name] then
return false
end
-- check if the node above the pointed thing is air
-- if it isn't, exit the function and return false
if above.name ~= "air" then
return false
end
-- check if pointing at soil
-- fail if the player isn't pointing at soil
if core.get_item_group(under.name, "soil") ~= 1 then
return false
end
-- check if (wet) soil defined
local regN = core.registered_nodes
if mod_mcl_farming then
if get_item_group(regN[under.name], "cultivatable") == 0 then
return false
end
elseif regN[under.name].soil == nil or regN[under.name].soil.wet == nil or regN[under.name].soil.dry == nil then
return false
end
local player_name = user and user:get_player_name() or ""
if core.is_protected(node_ptr.under, player_name) then
core.record_protection_violation(under, player_name)
return false
end
if core.is_protected(node_ptr.above, player_name) then
core.record_protection_violation(above, player_name)
return false
end
-- turn the node into soil and play sound
if mod_mcl_farming then
if is_voxelibre then
-- voxelibre mcl_farming does not set nodes' _on_hoe_place, so we have to
-- simulate a hoe tool that then uses its on_place function.
local temp_hoe = ItemStack("mcl_farming:hoe_wood")
core.registered_tools["mcl_farming:hoe_wood"].on_place(temp_hoe, user, node_ptr)
else
-- mineclonia
if regN[under.name]._on_hoe_place ~= nil then
regN[under.name]._on_hoe_place(nil, nil, node_ptr)
end
end
else
core.set_node(node_ptr.under, { name = regN[under.name].soil.dry })
end
return true
end
farmtools.rake_on_use = function(itemstack, user, pointed_thing, uses)
-- this function is based on the farming.hoe_on_use from the minetest_game by Luanti
-- see: https://github.com/luanti-org/minetest_game/blob/master/mods/farming/hoes.lua
-- original code is licensed under LGPL-2.1
local pt = pointed_thing
-- check if pointing at a node
if not pt then
return
end
if pt.type ~= "node" then
return
end
-- first we check whether the user can use the rake on the pointed node
-- if they can't, we won't go any further
-- note that the function that we call here WILL replace the current node with soil if it
-- can do so. It will then return a boolean value indicating whether it was able to do so.
if not rake_on_use_single_node(user, pointed_thing) then
return
end
-- this will be required for wearing tools depending on the number of nodes turned into soil
local total_nodes_changed = 1
local itemdef = itemstack:get_definition()
-- the rake group allows us to specify how big the area to turn into soil should be
-- if rake = 2, then the area is a 3x3 area
-- if rake = 3, then the area is a 5x5 area
-- and so on...
-- this does not correspond to the actual level of the rake.
-- TL;DR: the value of the rake group = level of the rake + 1
local range = (get_item_group(itemdef, "rake") or 1) - 1
-- we define the area that will be turned into soil
local pos = pt.under
if range > 0 then
local pos1 = vector.add(pos, { x = -range, y = 0, z = -range })
local pos2 = vector.add(pos, { x = range, y = 0, z = range })
local positions = core.find_nodes_in_area(pos1, pos2, "group:soil")
for _, check_pos in ipairs(positions) do
if pos ~= check_pos then
local node_ptr = get_node_pointer(check_pos)
local success = rake_on_use_single_node(user, node_ptr)
-- if node was replaced, we increment the count of processed nodes by 1.
if success then
total_nodes_changed = total_nodes_changed + 1
end
end
end
end
core.sound_play("default_dig_crumbly", { pos = pt.under, gain = 0.3 }, true)
local player_name = user and user:get_player_name() or ""
if not core.is_creative_enabled(player_name) then
-- wear tool
-- here we use the value of total_nodes_changed to make the rake break faster the more
-- nodes were processed
if mod_mcl_farming then
itemstack:add_wear_by_uses(get_item_group(itemdef, "rake_uses") / total_nodes_changed)
else
itemstack:add_wear_by_uses(uses / total_nodes_changed)
end
-- tool break sound
if itemstack:get_count() == 0 and itemdef.sound and itemdef.sound.breaks then
core.sound_play(itemdef.sound.breaks, { pos = pt.above, gain = 0.5 }, true)
end
end
return itemstack
end
-- Register new rakes
-- This is highly based on the register_hoe function of the farming mod.
farmtools.register_rake = function(name, def)
-- Check for : prefix (register new rakes in your mod's namespace)
if name:sub(1, 1) ~= ":" then
name = ":" .. name
end
-- Check def table
if def.description == nil then
def.description = S("Rake")
end
if def.inventory_image == nil then
def.inventory_image = "unknown_item.png"
end
if def.max_uses == nil then
def.max_uses = 90
end
if def.level == nil then
def.level = 1
end
-- support the definition providing groups, primarily for enchantability for voxelibre
local groups = { hoe = 1, rake = def.level + 1 }
if def.groups then
for k, v in pairs(def.groups) do
groups[k] = v
end
end
-- Register the tool
core.register_tool(name, {
description = def.description,
inventory_image = def.inventory_image,
on_use = function(itemstack, user, pointed_thing)
return farmtools.rake_on_use(itemstack, user, pointed_thing, def.max_uses)
end,
groups = groups,
sound = { breaks = "default_tool_breaks" },
})
-- Register its recipe
if def.recipe then
core.register_craft({
output = name:sub(2),
recipe = def.recipe,
})
elseif def.material then
core.register_craft({
output = name:sub(2),
recipe = {
{ def.material, def.material, def.material },
{ def.material, "group:stick", def.material },
{ "", "group:stick", "" },
},
})
end
end
+458
View File
@@ -0,0 +1,458 @@
-- this file contains the code that is used by scythes
local is_farming_redo = core.get_modpath("farming") ~= nil and farming ~= nil and farming.mod == "redo"
local mod_mcl_farming = core.get_modpath("mcl_farming") ~= nil
local is_voxelibre = mod_mcl_tools and (mcl_tools == nil)
local S = farmtools.i18n
local DEFAULT_SCYTHE_USES = 90
local farming_redo_exceptions = {
-- this is the list of plants that don't drop their seeds when harvested
-- instead, the player normally has to craft the seeds from the item dropped during harvesting
-- however, this causes a problem with scythes, since they require the player to have the seeds
-- in the inventory to replant the plant after harvesting.
-- the approach taken here is to automatically craft the seeds from the item when no seed is
-- available.
-- for that, we need the list below
["farming:garlic_clove"] = { { item = "farming:garlic", seeds_in_item = 8 } },
["farming:seed_sunflower"] = { { item = "farming:sunflower", seeds_in_item = 5 } },
["farming:peppercorn"] = {
{ item = "farming:pepper", seeds_in_item = 1 },
{ item = "farming:pepper_red", seeds_in_item = 1 },
{ item = "farming:pepper_yellow", seeds_in_item = 1 },
},
["farming:pumpkin_slice"] = { { item = "farming:pumpkin_8", seeds_in_item = 4 } },
["farming:melon_slice"] = { { item = "farming:melon_8", seeds_in_item = 4 } },
}
local item_craftable_to_seeds_in_inv = function(seeds, invref)
-- this function should run when seeds required to replant the harvested plant are
-- not available in the player inventory
-- it checks whether an item from the inventory can be crafted into the required seeds and
-- returns the item name along the number of seeds that can be crafted from it if it is the case
if is_farming_redo and farming_redo_exceptions[seeds] ~= nil then
for _, def in pairs(farming_redo_exceptions[seeds]) do
if invref:contains_item("main", def) then
return def
end
end
return nil
end
end
local get_item_group = function(def, group)
if def == nil or def.groups == nil or def.groups[group] == nil then
return 0
end
return def.groups[group]
end
local get_plant_definition = function(plant)
-- this function returns the plant definition from the farming API
-- x_farming has its own API
-- if the plant is registered in the x_farming API, we return its definition
local modname = plant:split(":")[1] or ""
if modname == "x_farming" then
-- note that we do not check whether x_farming is enabled,
-- because if there is an item whose modname is x_farming,
-- it means that the mod is enabled.
-- if this is incorrect or may lead to bugs, please let me know :)
local name = plant:split(":")[2] or ""
local pname = name:gsub("(.*)_.*$", "%1")
return x_farming.registered_plants[pname]
end
-- next we need to check whether the farming API is provided by the default
-- farming mod or by the Farming Redo version
if is_farming_redo then
-- if we are using Farming Redo, we need to iterate through the registered plants
-- to check if the given plant is registered. if it is, we return its definition
for _, data in pairs(farming.registered_plants) do
if data.crop == plant then
return data
end
end
end
-- if no definition was found previously, we try to see whether the plant can be found
-- through the farming API (without checking whether it is the one from the default farming mod
-- or the Redo mod, since the latter is fully compatible with the default one).
-- if a plant is found, we return its definition
if farming ~= nil and farming.registered_plants[plant] ~= nil then
return farming.registered_plants[plant]
end
-- finally, if no definition was found as of yet, we try one last time to see if the plant was
-- registered without its mod name, and return the result.
-- if no plant is found, the result will be nil.
local name = plant:split(":")[2] or ""
local pname = name:gsub("(.*)_.*$", "%1")
if mod_mcl_farming then
return mcl_farming.plant_lists["plant_" .. pname]
end
if farming ~= nil then
return farming.registered_plants[pname]
else
return ""
end
end
local get_seed_name = function(plant)
-- this function returns the plant's seeds using various methods
-- it should be executed only IF WE KNOW that the plant exists
-- (i.e. the function get_plant_definition returned a value that is different from nil)
-- TODO: maybe we could optimize this function by passing the plant definition directly,
-- instead of having to use the API two times.
-- if Farming Redo is enabled, we can use its API to find the seeds
-- (as long as the plant was registered through the farming API)
-- if we find one, we return the seed name
if is_farming_redo then
for _, data in pairs(farming.registered_plants) do
if data.crop == plant then
return data.seed
end
end
end
if mod_mcl_farming then
local orig_plant = plant
local seeds = plant
local this_seeds = core.registered_craftitems[seeds]
-- technically this is for other mods too but it covers mineclonia
local suffixes = { "_seeds", "_seed", "_item", "" }
local continue = true
local x = 0
while this_seeds == nil and continue do
for i, suffix in ipairs(suffixes) do
seeds = plant .. suffix
this_seeds = core.registered_craftitems[seeds]
if this_seeds ~= nil then
-- return plain text name of item
return seeds
end
x = x + 1
if x == 1 then
-- strip "_plant" and try again
plant = plant:gsub("_plant.*$", "")
elseif x > 2 then
continue = false
end
end
end
-- if we get here, there is no seed we could find.
core.log("warning", "No mcl-based seeds calculated for item " .. orig_plant)
end
-- if no plant was found previously, we try to see whether the plant can be found
-- through the farming API (without checking whether it is the one from the default farming mod
-- or the Redo mod, since the latter is fully compatible with the default one).
-- if a plant is found and if its definition contains a "seed" property, we return its seed name
if farming.registered_plants[plant] ~= nil and farming.registered_plants[plant].seed ~= nil then
return farming.registered_plants[plant].seed
end
-- finally, if no plant was found as of yet, we return an item named exactly like the plant,
-- but with "seed_" appended right before the plant name
local mod = plant:split(":")[1]
local name = plant:split(":")[2]
local pname = name:gsub("(.*)_.*$", "%1")
return mod .. ":seed_" .. pname
end
local harvest_and_replant = function(pos, user)
-- this is the function used to harvest and replant a single node using the scythe
-- it returns a boolean value that indicates whether it was able to harvest (and hopefully replant)
-- the node at a given position
local playername = user:get_player_name()
local node = core.get_node(pos)
local node_id = node.name:gsub("(.*)_.*$", "%1")
if mod_mcl_farming then
node_id = node.name
end
-- try to get a plant definition for the given node
-- if none is found, we will exit this function and return false
local plantdef = get_plant_definition(node_id)
if plantdef == nil then
return false
end
-- try to guess current stage of the plant from its node ID
local stage = tonumber(node.name:gsub(".*_(.*)$", "%1") or 0)
-- if either:
-- - the definition does not contain a "steps" property to indicate how many stages the plant goes through when maturing
-- - the current stage of the plant couldn't be detected from the node ID
-- we exit the function by returning false
if mod_mcl_farming then
if plantdef.full_grown == nil then
return false
elseif plantdef.full_grown == node_id then
else
return false
end
else
-- now we test the current stage of the plant against its total number of steps
-- if the value of "stage" is lower than "steps", it means that the plant isn't yet ready for harvesting
-- thus, we exit this function and return false
if plantdef.steps == nil or stage == nil or stage < plantdef.steps then
return false
end
end
-- if the node is protected or the given user isn't allowed to break it,
-- we record the violation attempt and return false
if core.is_protected(pos, playername) then
core.record_protection_violation(pos, playername)
return false
end
-- otherwise we can go ahead and break the plant, while playing a nice sound
core.node_dig(pos, node, user)
core.sound_play("default_dig_snappy", { pos = pos, gain = 0.5, max_hear_distance = 8 }, true)
-- once the plant is broken, we need to replant it
core.after(0, function()
-- this function replants the plant after is is harvested
-- it also takes care of removing the correct amount of seeds from the player inventory
local invref = user:get_inventory()
local seeds = get_seed_name(node_id)
-- this is required to prevent trellis and bean poles duplication
if is_farming_redo then
if node_id == "farming:grapes" then
if invref:contains_item("main", "farming:trellis") then
invref:remove_item("main", "farming:trellis")
end
elseif node_id == "farming:beanpole" then
if invref:contains_item("main", "farming:beanpole") then
invref:remove_item("main", "farming:beanpole")
end
end
end
-- if seeds are not present in the inventory, and if no item from the inventory can be
-- crafted into the seeds, we won't go further. it means that we cannot replant the plant
local item_in_inv = item_craftable_to_seeds_in_inv(seeds, invref)
if (not mod_mcl_farming) and (core.get_node(pos).name ~= "air" or not invref:contains_item("main", seeds)) then
if item_in_inv == nil then
return true
end
end
-- we will only remove seeds from the player inventory if they are not in creative mod
if not core.is_creative_enabled(playername) and not mod_mcl_farming then
if not invref:contains_item("main", seeds) and item_in_inv ~= nil then
-- if no seed is found in the inventory but an item from the inventory can be crafted
-- into the seeds:
-- first remove one of these items from the inventory
invref:remove_item("main", item_in_inv.item)
-- then add the number of seeds normally returned by the craft, less one (because we
-- use one to replant the plant)
local stack = ItemStack(seeds .. " " .. item_in_inv.seeds_in_item)
invref:add_item("main", stack)
else
-- if seeds are already present in the inventory, then just remove one of them
-- from the inventory
invref:remove_item("main", seeds)
end
end
-- finally, we need to replant the crop
-- it is a bit different, depending on the version of the farming mod used.
-- TODO: the behavior of this code depends on whether Farming Redo is used, but
-- not on the mod that provides the plant. If the plant is from x_farming, the behavior
-- will be different if Farming Redo is enabled and if it is disabled.
if is_farming_redo then
-- plant first crop for farming redo
local crop_name = node_id .. "_1"
local crop_def = core.registered_nodes[crop_name]
if crop_def == nil then
return
end
core.set_node(pos, { name = crop_name, param2 = crop_def.place_param2 })
else
if mod_mcl_farming then
-- plant seeds for Mineclonia farming
-- try level 0
local level1 = node_id .. "_0"
local crop_def = core.registered_nodes[level1]
if crop_def == nil then
level1 = node_id .. "_1"
crop_def = core.registered_nodes[level1]
end
-- keep the same paramtype2 = "meshoptions" from lua_api.md
core.set_node(pos, { name = level1, param2 = node.param2 })
-- need to remove seed afterwards for Mineclonia, because it dropped seeds
-- and not immediately placed them in player inventory. 2 seconds
-- ought to be enough for the player to walk over the seeds.
core.after(2, function()
if not core.is_creative_enabled(playername) then
invref:remove_item("main", { name = seeds, count = 1 })
end
end)
else
-- plant seeds for MTG farming
core.set_node(pos, { name = seeds, param2 = 1 })
end
-- timer values taken from farming mod (see tick function in api.lua)
core.get_node_timer(pos):start(math.random(166, 286))
end
end)
-- finally, we return true, because we were able to harvest (and hopefully replant the crop)
return true
end
farmtools.scythe_on_use = function(itemstack, user, pointed_thing, uses)
-- this function is called when the scythe is used on a node
-- if the scythe is used when the player isn't pointing at anything, we won't do anything
if pointed_thing == nil then
return
end
-- if pointing at an object/entity, punch it with the scythe
local itemdef = itemstack:get_definition()
if pointed_thing.type == "object" then
local tool_capabilities = itemstack:get_tool_capabilities()
local meta = itemstack:get_meta()
local last_punch = meta:get_float("last_punch") or 0
local now = core.get_gametime()
meta:set_float("last_punch", now)
pointed_thing.ref:punch(user, now - last_punch, tool_capabilities)
end
-- if pointing at something other than a node, don't go further
if pointed_thing.type ~= "node" then
return
end
-- the scythe group allows us to specify how big the area to harvest should be
-- if scythe = 2, then the area is a 3x3 area
-- if scythe = 3, then the area is a 5x5 area
-- and so on...
-- this does not correspond to the actual level of the scythe,
-- unfortunately we need to keep it this way because doing otherwise would break compatibility with
-- mods that are using the scythe group as provided by the original sickles mod
-- in short: the value of the scythe group = level of the scythe + 1
local range = (get_item_group(itemdef, "scythe") or 1) - 1
-- TODO: is all of the code below really supposed to be executed when pointed_thing.type == "object"?
-- if not, we should maybe wrap this in an if pointed_thing.type == "node" condition
-- get the position of the node that the user is pointing at
local pos = pointed_thing.under
-- try to harvest (and replant) the node
local harvested = harvest_and_replant(pos, user)
-- if it couldn't be harvested, we won't go any further
if not harvested then
return
end
-- this will be required for wearing tools depending on the number of nodes harvested
local total_nodes_changed = 1
-- otherwise we harvest and replant the adjacent nodes within the range specified in the item definition
if range > 0 then
local pos1 = vector.add(pos, { x = -range, y = 0, z = -range })
local pos2 = vector.add(pos, { x = range, y = 0, z = range })
local positions = core.find_nodes_in_area(pos1, pos2, "group:plant")
for _, check_pos in ipairs(positions) do
if pos ~= check_pos then
if harvest_and_replant(check_pos, user) then
total_nodes_changed = total_nodes_changed + 1
end
end
end
end
-- wear out tools if the player is not in creative mode
local playername = user and user:get_player_name() or ""
if not core.is_creative_enabled(playername) then
if mod_mcl_farming then
local calc_uses = get_item_group(itemdef, "scythe_uses")
-- if mineclonia
if not is_voxelibre then
calc_uses = mcl_util.calculate_durability(itemstack) or calc_uses
end
itemstack:add_wear_by_uses(calc_uses / total_nodes_changed)
else
itemstack:add_wear_by_uses(uses / total_nodes_changed)
end
end
-- finally return the worn out scythe
return itemstack
end
farmtools.register_scythe = function(name, def)
-- this function is used for registering new scythes in the easiest way possible
-- register new scythes in your mod's namespace
if name:sub(1, 1) ~= ":" then
name = ":" .. name
end
-- check definition table
if def.description == nil then
def.description = S("Scythe")
end
if def.inventory_image == nil then
def.inventory_image = "unknown_item.png"
end
if def.max_uses == nil then
def.max_uses = DEFAULT_SCYTHE_USES
end
if def.level == nil then
def.level = 1
end
-- support the definition providing groups, primarily for enchantability for voxelibre
local groups = { scythe = def.level + 1 }
if def.groups then
for k, v in pairs(def.groups) do
groups[k] = v
end
end
-- now register the tool through the Luanti API
core.register_tool(name, {
description = def.description,
inventory_image = def.inventory_image,
tool_capabilities = {
full_punch_interval = 1.2,
damage_groups = { fleshy = 5 },
punch_attack_uses = def.max_uses * 2,
},
range = 12,
on_use = function(itemstack, user, pointed_thing)
return farmtools.scythe_on_use(itemstack, user, pointed_thing, def.max_uses)
end,
groups = groups,
sound = { breaks = "default_tool_breaks" },
_mcl_uses = groups["scythe_uses"] or def.max_uses,
})
-- now register recipe
if def.recipe then
core.register_craft({
output = name:sub(2),
recipe = def.recipe,
})
elseif def.material then
core.register_craft({
output = name:sub(2),
recipe = {
{ "", def.material, def.material },
{ def.material, "", "group:stick" },
{ "", "", "group:stick" },
},
})
end
end
+225
View File
@@ -0,0 +1,225 @@
-- this file contains the code that is used by sickles
local mod_mcl_farming = core.get_modpath("mcl_farming") ~= nil
local MAX_ITEM_WEAR = 65535
local DEFAULT_SICKLE_USES = 120
local S = farmtools.i18n
local function get_wielded_item(player)
-- this function returns the item that the given player is currently holding
if not core.is_player(player) then
return
end
return player:get_wielded_item()
end
local function get_item_group(def, group)
if def == nil or def.groups == nil or def.groups[group] == nil then
return 0
end
return def.groups[group]
end
function farmtools.register_cuttable(nodename, base, item)
-- this function is used for registering items that can be cut with the sickle
-- first ensure that the give node is actually a registered node
-- fail otherwise
local def = core.registered_nodes[nodename]
if def == nil then
return
end
-- save the default handler of the node when punched
-- if no handler exists, we save the default Luanti handler
local default_handler = def.on_punch or core.node_punch
-- now we override the handler of the node when punched
-- i.e. the function below will be called every time a node with this name gets punched
core.override_item(nodename, {
on_punch = function(pos, node, puncher, pointed_thing)
-- first we want to ensure that the user is holding a sickle
local itemstack = get_wielded_item(puncher)
-- I have no idea if this is possible, but we need to check against nil value
if itemstack == nil then
return
end
-- if the user is not holding a sickle when punching the node, we won't continue any
-- futher. instead, we return the default handler that we previously saved.
-- i.e. the sickle-behavior won't be used
local itemdef = itemstack:get_definition()
local level = get_item_group(itemdef, "sickle")
if level < 1 then
return default_handler(pos, node, puncher, pointed_thing)
end
-- get the name of the player who punched the node
local pname = puncher:get_player_name()
-- if the player isn't available to edit the node that was punched,
-- report the violation and then exit the function
if core.is_protected(pos, pname) then
core.record_protection_violation(pos, pname)
return
end
-- give the player the item that is supposed to be returned when the sickle is
-- used on the given node
if mod_mcl_farming and item == "sickles:moss" then
-- for some reason mineclonia does not want to drop moss, so just add to player inventory
local invref = puncher:get_inventory()
if invref:room_for_item("main", item) then
invref:add_item("main", item)
end
else
core.handle_node_drops(pos, { item }, puncher)
end
-- replace the node by the node that should be in its place after the sickle is used
core.after(0, function()
core.swap_node(pos, { name = base, param2 = node.param2 })
end)
-- wear out the sickle if the player is not in creative mode
if not core.is_creative_enabled(pname) then
local max_uses = get_item_group(itemdef, "sickle_uses") or DEFAULT_SICKLE_USES
itemstack:add_wear(math.ceil(MAX_ITEM_WEAR / (max_uses - 1)))
if itemstack:get_count() == 0 and itemdef.sound and itemdef.sound.breaks then
core.sound_play(itemdef.sound.breaks, { pos = pos, gain = 0.5 })
end
-- finally we set the current wielded item of the player to the sickle used for
-- punching the node.
-- I have no idea why we need to do this, but I believe that the original author of the
-- mod put this here for a reason.
puncher:set_wielded_item(itemstack)
end
end,
})
end
function farmtools.register_trimmable(node, base)
-- this function is used for registering items that can be trimmed with the sickle
-- first ensure that the give node is actually a registered node
-- fail otherwise
local def = core.registered_nodes[node]
if def == nil then
return
end
-- save the default handler of the node when dug
-- if no handler exists, we save the default Luanti handler
local handler = def.after_dig_node
-- now we override the handler of the node when dug
-- i.e. the function below will be called every time a node with this name gets dug
core.override_item(node, {
after_dig_node = function(pos, oldnode, oldmetadata, digger)
-- first we want to ensure that the user is holding a sickle
local itemstack = get_wielded_item(digger)
-- I have no idea if this is possible, but we need to check against nil value
if itemstack == nil then
return
end
-- if the user is not holding a sickle when digging the node, we won't continue any
-- futher. instead, we return the default handler that we previously saved.
-- i.e. the sickle-behavior won't be used
local itemdef = itemstack:get_definition()
local level = get_item_group(itemdef, "sickle")
if level < 1 then
if handler ~= nil then
return handler(pos, oldnode, oldmetadata, digger)
else
return
end
end
-- we save the param2 property of the node that was just dug with the sickle
local param2 = core.registered_nodes[base].place_param2
-- and we replace it with the node that is supposed to be in place on the node after
-- it is trimmed by a sickle
core.set_node(pos, { name = base, param2 = param2 })
end,
})
end
farmtools.register_sickle = function(name, def)
-- this function is used for registering new scythes in the easiest way possible
-- register new scythes in your mod's namespace
if name:sub(1, 1) ~= ":" then
name = ":" .. name
end
-- check definition table
if def.description == nil then
def.description = S("Sickle")
end
if def.inventory_image == nil then
def.inventory_image = "unknown_item.png"
end
if def.max_uses == nil then
def.max_uses = DEFAULT_SICKLE_USES
end
if def.groupcaps == nil then
def.groupcaps = {
snappy = {
times = {
[1] = 2.75,
[2] = 1.30,
[3] = 0.375,
uses = def.max_uses / 2,
maxlevel = 2,
},
},
}
end
if def.damage_groups == nil then
def.damage_groups = { fleshy = 3 }
end
-- support the definition providing groups, primarily for enchantability for voxelibre
local groups = { sickle = 1, sickle_uses = def.max_uses }
if def.groups then
for k, v in pairs(def.groups) do
groups[k] = v
end
end
-- now register the tool through the Luanti API
--
core.register_tool(name, {
description = def.description,
inventory_image = def.inventory_image,
tool_capabilities = {
full_punch_interval = 0.8,
max_drop_level = 1,
groupcaps = def.groupcaps,
damage_groups = def.damage_groups,
punch_attack_uses = def.max_uses / 2,
},
range = 6,
groups = groups,
sound = { breaks = "default_tool_breaks" },
})
-- now register recipe
if def.recipe then
core.register_craft({
output = name:sub(2),
recipe = def.recipe,
})
elseif def.material then
core.register_craft({
output = name:sub(2),
recipe = {
{ def.material, "" },
{ "", def.material },
{ "group:stick", "" },
},
})
end
end
+589
View File
@@ -0,0 +1,589 @@
local is_farming_redo = core.get_modpath("farming") ~= nil and farming ~= nil and farming.mod == "redo"
local mod_moreores = core.get_modpath("moreores") ~= nil
local mod_mcl_core = core.get_modpath("mcl_core") ~= nil
local mod_mcl_tools = core.get_modpath("mcl_tools") ~= nil
local is_voxelibre = mod_mcl_tools and (mcl_tools == nil)
local mod_mcl_emerald_stuff = core.get_modpath("mcl_emerald_stuff") ~= nil
local S = farmtools.i18n
if mod_mcl_core then
-- do not depend on mcl_copper_stuff. Just add this regardless.
core.register_tool("farmtools:sickle_copper", {
description = S("Copper Sickle"),
inventory_image = "sickles_sickle_bronze.png",
tool_capabilities = {
full_punch_interval = 0.8,
max_drop_level = 1,
groupcaps = {
snappy = { times = { [1] = 2.75, [2] = 1.30, [3] = 0.375 }, uses = 100, maxlevel = 2 },
},
damage_groups = { fleshy = 3 },
punch_attack_uses = 100,
},
range = 6,
_mcl_uses = 200,
groups = { sickle = 1, sickle_uses = 200, enchantability = 5, tool = 1 },
sound = { breaks = "default_tool_breaks" },
})
core.register_craft({
output = "farmtools:sickle_copper",
recipe = {
{ "mcl_copper:copper_ingot", "" },
{ "", "mcl_copper:copper_ingot" },
{ "group:stick", "" },
},
})
core.register_tool("farmtools:scythe_copper", {
description = S("Copper Scythe"),
_doc_items_longdesc = "Works only on completely grown crops, or as a weapon.",
inventory_image = "sickles_scythe_bronze.png",
tool_capabilities = {
full_punch_interval = 1.2,
damage_groups = { fleshy = 5 },
punch_attack_uses = 200,
},
range = 12,
on_use = farmtools.scythe_on_use,
_mcl_uses = 150,
--groups = { scythe = 2, scythe_uses = 100},
groups = { enchantability = 9, tool = 1, scythe = 2, scythe_uses = 150 },
sound = { breaks = "default_tool_breaks" },
_mcl_toollike_wield = true,
_mcl_diggroups = {},
})
core.register_craft({
output = "farmtools:scythe_copper",
recipe = {
{ "", "mcl_copper:copper_ingot", "mcl_copper:copper_ingot" },
{ "mcl_copper:copper_ingot", "", "group:stick" },
{ "", "", "group:stick" },
},
})
core.register_tool("farmtools:rake_copper", {
description = S("Copper Rake"),
_doc_items_longdesc = "Works as a hoe on a small radius, to prepare dirt for farming.",
inventory_image = "farmtools_rake_bronze.png",
tool_capabilities = {
full_punch_interval = 1.2,
damage_groups = { fleshy = 4 },
punch_attack_uses = 200,
},
range = 12,
on_use = farmtools.rake_on_use,
_mcl_uses = 550,
groups = { enchantability = 9, tool = 1, rake = 2, rake_uses = 550 },
sound = { breaks = "default_tool_breaks" },
_mcl_toollike_wield = true,
_mcl_diggroups = {},
})
core.register_craft({
output = "farmtools:rake_copper",
recipe = {
{ "mcl_copper:copper_ingot", "mcl_copper:copper_ingot", "mcl_copper:copper_ingot" },
{ "mcl_copper:copper_ingot", "group:stick", "mcl_copper:copper_ingot" },
{ "", "group:stick", "" },
},
})
-- begin emerald tools
if mod_mcl_emerald_stuff then
core.register_tool("farmtools:sickle_emerald", {
description = S("Emerald Sickle"),
inventory_image = "farmtools_sickle_emerald.png",
tool_capabilities = {
full_punch_interval = 0.8,
max_drop_level = 1,
groupcaps = {
snappy = { times = { [1] = 2.0, [2] = 1.00, [3] = 0.35 }, uses = 350, maxlevel = 3 },
},
damage_groups = { fleshy = 4 },
punch_attack_uses = 350,
},
range = 6,
_mcl_uses = 350,
groups = { sickle = 1, sickle_uses = 350, enchantability = 11, tool = 1 },
sound = { breaks = "default_tool_breaks" },
})
core.register_craft({
output = "farmtools:sickle_emerald",
recipe = {
{ "mcl_core:emerald", "" },
{ "", "mcl_core:emerald" },
{ "group:stick", "" },
},
})
core.register_tool("farmtools:scythe_emerald", {
description = S("Emerald Scythe"),
_doc_items_longdesc = "Works only on completely grown crops, or as a weapon.",
inventory_image = "farmtools_scythe_emerald.png",
tool_capabilities = {
full_punch_interval = 1.2,
damage_groups = { fleshy = 5 },
punch_attack_uses = 600,
},
range = 12,
on_use = farmtools.scythe_on_use,
_mcl_uses = 600,
groups = { enchantability = 12, tool = 1, scythe = 2, scythe_uses = 600 },
sound = { breaks = "default_tool_breaks" },
_mcl_toollike_wield = true,
_mcl_diggroups = {},
})
core.register_craft({
output = "farmtools:scythe_emerald",
recipe = {
{ "", "mcl_core:emerald", "mcl_core:emerald" },
{ "mcl_core:emerald", "", "group:stick" },
{ "", "", "group:stick" },
},
})
core.register_tool("farmtools:rake_emerald", {
description = S("Emerald Rake"),
_doc_items_longdesc = "Works as a hoe on a small radius, to prepare dirt for farming.",
inventory_image = "farmtools_rake_emerald.png",
tool_capabilities = {
full_punch_interval = 1.2,
damage_groups = { fleshy = 5 },
punch_attack_uses = 600,
},
range = 12,
on_use = farmtools.rake_on_use,
_mcl_uses = 950,
groups = { enchantability = 12, tool = 1, rake = 2, rake_uses = 950 },
sound = { breaks = "default_tool_breaks" },
_mcl_toollike_wield = true,
_mcl_diggroups = {},
})
core.register_craft({
output = "farmtools:rake_emerald",
recipe = {
{ "mcl_core:emerald", "mcl_core:emerald", "mcl_core:emerald" },
{ "mcl_core:emerald", "group:stick", "mcl_core:emerald" },
{ "", "group:stick", "" },
},
})
end
-- end emerald stuff
if mod_mcl_tools then
if is_voxelibre then
-- voxelibre does not have a nice add_to_sets(), and we cannot just use the base definitions for MTG.
farmtools.register_scythe("farmtools:scythe_iron", {
description = S("Iron Scythe"),
inventory_image = "sickles_scythe_steel.png",
level = 1,
max_uses = 500,
material = "mcl_core:iron_ingot",
_mcl_toollike_wield = true,
groups = { enchantability = 9, tool = 1, scythe = 2, scythe_uses = 150 },
})
farmtools.register_scythe("farmtools:scythe_diamond", {
description = S("Diamond Scythe"),
inventory_image = "farmtools_scythe_diamond.png",
level = 1,
max_uses = 850,
material = "mcl_core:diamond",
groups = { enchantability = 12, tool = 1, scythe = 2, scythe_uses = 850 },
})
farmtools.register_rake("farmtools:rake_iron", {
description = S("Iron Rake"),
inventory_image = "farmtools_rake_steel.png",
max_uses = 500,
level = 1,
material = "mcl_core:iron_ingot",
groups = { enchantability = 10, tool = 1, rake = 2, rake_uses = 500 },
})
farmtools.register_rake("farmtools:rake_diamond", {
description = S("Diamond Rake"),
inventory_image = "farmtools_rake_diamond.png",
max_uses = 850,
level = 1,
material = "mcl_core:diamond",
groups = { enchantability = 12, tool = 1, rake = 2, rake_uses = 850 },
})
farmtools.register_sickle("farmtools:sickle_iron", {
description = S("Iron Sickle"),
inventory_image = "sickles_sickle_steel.png",
max_uses = 300,
material = "mcl_core:iron_ingot",
damage_groups = { fleshy = 3 },
groupcaps = {
snappy = { times = { [1] = 2.5, [2] = 1.20, [3] = 0.35 }, uses = 150, maxlevel = 2 },
},
groups = { enchantability = 7, tool = 1, sickle = 1, sickle_uses = 300 },
})
farmtools.register_sickle("farmtools:sickle_gold", {
description = S("Golden Sickle"),
inventory_image = "sickles_sickle_gold.png",
max_uses = 160,
material = "mcl_core:gold_ingot",
damage_groups = { fleshy = 2 },
groupcaps = {
snappy = { times = { [1] = 2.0, [2] = 1.00, [3] = 0.35 }, uses = 80, maxlevel = 3 },
},
groups = { enchantability = 11, tool = 1, sickle = 1, sickle_uses = 160 },
})
farmtools.register_sickle("farmtools:sickle_diamond", {
description = S("Diamond Sickle"),
inventory_image = "farmtools_sickle_diamond.png",
max_uses = 400,
material = "mcl_core:diamond",
damage_groups = { fleshy = 4 },
groupcaps = {
snappy = { times = { [1] = 1.75, [2] = 0.8, [3] = 0.25 }, uses = 200, maxlevel = 3 },
},
groups = { enchantability = 11, tool = 1, sickle = 1, sickle_uses = 300 },
})
else -- if is_voxelibre
-- mineclonia api
mcl_tools.add_to_sets("sickle", {
longdesc = S("Cut complete grains (e.g., wheat) down to growth level 3 immediately when harvesting."),
usagehelp = "When you harvest a fully-grown grain, it will get replanted to level 3, so you do not have to replant and also do not have to wait from a freshly planted seed.",
groups = {},
diggroups = {},
craft_shapes = {
{
{ "material", "" },
{ "", "material" },
{ "group:stick", "" },
},
},
}, {
["iron"] = {
description = S("Iron sickle"),
inventory_image = "sickles_sickle_steel.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 = 150, maxlevel = 2 },
},
damage_groups = { fleshy = 3 },
-- this is ignored by mineclonia because mcl already scales punch-uses of different materials.
-- i.e., iron is strong, and gold is very weak
punch_attack_uses = 150,
},
_mcl_uses = 300,
-- use half enchantability from mcl_tools/lib/tools.lua
groups = { enchantability = 7, tool = 1, sickle = 1, sickle_uses = 300 },
},
["gold"] = {
description = S("Gold sickle"),
inventory_image = "sickles_sickle_gold.png",
tool_capabilities = {
full_punch_interval = 0.8,
max_drop_level = 1,
groupcaps = {
snappy = { times = { [1] = 2.0, [2] = 1.00, [3] = 0.35 }, uses = 80, maxlevel = 3 },
},
damage_groups = { fleshy = 2 },
punch_attack_uses = 80,
},
_mcl_uses = 160,
groups = { enchantability = 11, tool = 1, sickle = 1, sickle_uses = 160 },
},
["diamond"] = {
description = S("Diamond sickle"),
inventory_image = "farmtools_sickle_diamond.png",
tool_capabilities = {
full_punch_interval = 0.8,
max_drop_level = 1,
groupcaps = {
snappy = { times = { [1] = 2.0, [2] = 1.00, [3] = 0.35 }, uses = 300, maxlevel = 3 },
},
damage_groups = { fleshy = 4 },
punch_attack_uses = 300,
},
_mcl_uses = 300,
groups = { enchantability = 11, tool = 1, sickle = 1, sickle_uses = 300 },
_mcl_upgradable = true,
_mcl_upgrade_item = "farmtools:sickle_netherite"
},
["netherite"] = {
description = S("Netherite sickle"),
inventory_image = "farmtools_sickle_netherite.png",
tool_capabilities = {
full_punch_interval = 0.8,
max_drop_level = 1,
groupcaps = {
snappy = { times = { [1] = 2.0, [2] = 1.00, [3] = 0.35 }, uses = 400, maxlevel = 3 },
},
damage_groups = { fleshy = 5 },
punch_attack_uses = 400,
},
_mcl_uses = 400,
groups = { enchantability = 11, tool = 1, sickle = 1, sickle_uses = 400 },
},
}, {
range = 6,
sound = { breaks = "default_tool_breaks" },
})
mcl_tools.add_to_sets("rake", {
logdesc = S("Prepares ground for farming, in a larger radius than a hoe."),
usagehelp = "Use on the center of the 3x3 block. It will turn the same-elevation dirt into farming soil in that 3x3 square.",
groups = {},
diggroups = {},
craft_shapes = {
{
{ "material", "material", "material" },
{ "material", "group:stick", "material" },
{ "", "group:stick", "" },
},
},
}, {
["iron"] = {
description = S("Iron rake"),
inventory_image = "farmtools_rake_steel.png",
tool_capabilities = {
full_punch_interval = 1.2,
damage_groups = { fleshy = 4 },
punch_attack_uses = 300,
},
_mcl_uses = 500,
-- 2/3 of full iron set enchantability
groups = { enchantability = 10, tool = 1, rake = 2, rake_uses = 500 },
},
["diamond"] = {
description = S("Diamond rake"),
inventory_image = "farmtools_rake_diamond.png",
tool_capabilities = {
full_punch_interval = 1.2,
damage_groups = { fleshy = 5 },
punch_attack_uses = 500,
},
_mcl_uses = 850,
groups = { enchantability = 12, tool = 1, rake = 2, rake_uses = 850 },
_mcl_upgradable = true,
_mcl_upgrade_item = "farmtools:rake_netherite"
},
["netherite"] = {
description = S("Netherite rake"),
inventory_image = "farmtools_rake_netherite.png",
tool_capabilities = {
full_punch_interval = 1.2,
damage_groups = { fleshy = 6 },
punch_attack_uses = 550,
},
_mcl_uses = 1100,
groups = { enchantability = 12, tool = 1, rake = 2, rake_uses = 1100 },
},
}, {
on_use = farmtools.rake_on_use,
sound = { breaks = "default_tool_breaks" },
})
mcl_tools.add_to_sets("scythe", {
longdesc = S("Works only on completely grown crops, or as a weapon."),
usagehelp = "Works in a small radius (a total of 3x3 grid) around the targeted crop node. Will replant the crop automatically if it harvests the crop.",
groups = {},
diggroups = {},
craft_shapes = {
{
{ "", "material", "material" },
{ "material", "", "mcl_core:stick" },
{ "", "", "mcl_core:stick" },
},
},
}, {
["iron"] = {
description = S("Iron scythe"),
inventory_image = "sickles_scythe_steel.png",
tool_capabilities = {
full_punch_interval = 1.2,
damage_groups = { fleshy = 5 },
punch_attack_uses = 300,
},
_mcl_uses = 150,
-- 2/3 of full iron set enchantability
groups = { enchantability = 10, tool = 1, scythe = 2, scythe_uses = 150 },
},
["diamond"] = {
description = S("Diamond scythe"),
inventory_image = "farmtools_scythe_diamond.png",
tool_capabilities = {
full_punch_interval = 1.2,
damage_groups = { fleshy = 5 },
punch_attack_uses = 500,
},
_mcl_uses = 500,
groups = { enchantability = 12, tool = 1, scythe = 2, scythe_uses = 500 },
_mcl_upgradable = true,
_mcl_upgrade_item = "farmtools:scythe_netherite"
},
["netherite"] = {
description = S("Netherite scythe"),
inventory_image = "farmtools_scythe_netherite.png",
tool_capabilities = {
full_punch_interval = 1.2,
damage_groups = { fleshy = 6 },
punch_attack_uses = 650,
},
_mcl_uses = 650,
groups = { enchantability = 12, tool = 1, scythe = 2, scythe_uses = 650 },
},
-- if mcl_copper_stuff used mcl_tools.register_set then we could put this here, but it does not.
-- it just adds individual tools directly.
--[[
,["copper"] = {
description = S("Copper scythe"),
inventory_image = "sickles_scythe_bronze.png",
tool_capabilities = {
full_punch_interval = 1.2,
damage_groups = { fleshy = 5 },
punch_attack_uses = 200
},
}
--]]
-- Gold scythe is not implemented in MTG or mineclonia. Gold does not make sense to use in a scythe.
}, {
range = 12,
on_use = farmtools.scythe_on_use,
sound = { breaks = "default_tool_breaks" },
})
end -- for mineclonia api
end -- for mcl_tools
else -- for minetest_game
farmtools.register_scythe("farmtools:scythe_steel", {
description = S("Steel Scythe"),
inventory_image = "sickles_scythe_steel.png",
level = 1,
max_uses = 500,
material = "default:steel_ingot",
})
farmtools.register_scythe("farmtools:scythe_diamond", {
description = S("Diamond Scythe"),
inventory_image = "farmtools_scythe_diamond.png",
level = 1,
max_uses = 850,
material = "default:diamond",
})
-- register rakes
--
farmtools.register_rake("farmtools:rake_steel", {
description = S("Steel Rake"),
inventory_image = "farmtools_rake_steel.png",
max_uses = 500,
level = 1,
material = "default:steel_ingot",
})
farmtools.register_rake("farmtools:rake_bronze", {
description = S("Bronze Rake"),
inventory_image = "farmtools_rake_bronze.png",
max_uses = 250,
level = 1,
material = "default:bronze_ingot",
})
farmtools.register_rake("farmtools:rake_diamond", {
description = S("Diamond Rake"),
inventory_image = "farmtools_rake_diamond.png",
max_uses = 850,
level = 1,
material = "default:diamond",
})
-- register sickles
farmtools.register_sickle("farmtools:sickle_bronze", {
description = S("Bronze Sickle"),
inventory_image = "sickles_sickle_bronze.png",
max_uses = 200,
material = "default:bronze_ingot",
damage_groups = { fleshy = 3 },
groupcaps = {
snappy = { times = { [1] = 2.75, [2] = 1.30, [3] = 0.375 }, uses = 100, maxlevel = 2 },
},
})
farmtools.register_sickle("farmtools:sickle_steel", {
description = S("Steel Sickle"),
inventory_image = "sickles_sickle_steel.png",
max_uses = 300,
material = "default:steel_ingot",
damage_groups = { fleshy = 3 },
groupcaps = {
snappy = { times = { [1] = 2.5, [2] = 1.20, [3] = 0.35 }, uses = 150, maxlevel = 2 },
},
})
farmtools.register_sickle("farmtools:sickle_gold", {
description = S("Golden Sickle"),
inventory_image = "sickles_sickle_gold.png",
max_uses = 160,
material = "default:gold_ingot",
damage_groups = { fleshy = 2 },
groupcaps = {
snappy = { times = { [1] = 2.0, [2] = 1.00, [3] = 0.35 }, uses = 80, maxlevel = 3 },
},
})
farmtools.register_sickle("farmtools:sickle_diamond", {
description = S("Diamond Sickle"),
inventory_image = "farmtools_sickle_diamond.png",
max_uses = 400,
material = "default:diamond",
damage_groups = { fleshy = 4 },
groupcaps = {
snappy = { times = { [1] = 1.75, [2] = 0.8, [3] = 0.25 }, uses = 200, maxlevel = 3 },
},
})
-- register mithril tools
if mod_moreores then
farmtools.register_scythe("farmtools:scythe_mithril", {
description = S("Mithril Scythe"),
inventory_image = "farmtools_scythe_mithril.png",
level = 1,
max_uses = 850,
material = "moreores:mithril_ingot",
})
farmtools.register_rake("farmtools:rake_mithril", {
description = S("Mithril Rake"),
inventory_image = "farmtools_rake_mithril.png",
max_uses = 850,
level = 1,
material = "moreores:mithril_ingot",
})
farmtools.register_sickle("farmtools:sickle_mithril", {
description = S("Mithril Sickle"),
inventory_image = "farmtools_sickle_mithril.png",
max_uses = 400,
material = "moreores:mithril_ingot",
damage_groups = { fleshy = 4 },
groupcaps = {
snappy = { times = { [1] = 1.6, [2] = 0.5, [3] = 0.15 }, uses = 200, maxlevel = 3 },
},
})
end
if is_farming_redo then -- needs to be inside the MTG condition
-- softly disable mithril scythe to prevent confusion
core.override_item("farming:scythe_mithril", {
groups = { not_in_creative_inventory = 1 },
})
core.clear_craft({
output = "farming:scythe_mithril",
})
end
end
+64
View File
@@ -0,0 +1,64 @@
# textdomain: farmtools
Flower Petals=Blüten
Rake=Rechen
Scythe=Sense
Sickle=Sichel
Copper Sickle=Kupfersichel
Copper Scythe=Kupfersense
Copper Rake=Kupferrechen
Emerald Sickle=
Emerald Scythe=
Emerald Rake=
Iron Scythe=Eisensense
Diamond Scythe=Diamantsense
Iron Rake=Eisenrechen
Diamond Rake=Diamantrechen
Iron Sickle=Eisensichel
Golden Sickle=Goldsichel
Diamond Sickle=Diamantsichel
Cut complete grains (e.g., wheat) down to growth level 3 immediately when harvesting.=Schneidet bei der Ernte ganze Kornpflanzen (z.B. Weizen) sofort bis zu Stufe 3 runter.
Iron sickle=Eisensichel
Gold sickle=Goldsichel
Diamond sickle=Diamantsichel
Netherite sickle=
Prepares ground for farming, in a larger radius than a hoe.=Bereitet den Boden für die Landwirtschaft vor, mit einem größeren Radius als eine Hacke.
Iron rake=Eisenrechen
Diamond rake=Diamantrechen
Netherite rake=
Works only on completely grown crops, or as a weapon.=Funktioniert nur mit voll ausgewachsenen Nutzpflanzen, oder als Waffe.
Iron scythe=Eisensense
Diamond scythe=Diamantsense
Netherite scythe=
Copper scythe=Kupfersense
Steel Scythe=Stahlsense
Steel Rake=Stahlrechen
Bronze Rake=Bronzerechen
Bronze Sickle=Bronzesichel
Steel Sickle=Stahlsichel
Mithril Scythe=Mithrilsense
Mithril Rake=Mithrilrechen
Mithril Sickle=Mithrilsichel
##### not used anymore #####
# textdomain: farmtools
Farm Tools=Bauernhofwerkzeuge
Based on Scythes & Sickles, it adds various tools to make farming more convenient.=Auf der Basis von Scythes & Sickles fügt es diverse Werkzeuge für eine vereinfachte Landwirtschaft hinzu.
Bronze Scythe=Bronzesense
Moss=Moos
Purple Moss=Violettes Moos
Blue Moss=Blaues Moos
Yellow Moss=Gelbes Moos
Moss Block=Moosblock
Purple Moss Block=Violetter Moosblock
Blue Moss Block=Blauer Moosblock
Yellow Moss Block=Gelber Moosblock
Moss Stair=Moostreppe
Purple Moss Stair=Violette Moostreppe
Blue Moss Stair=Blaue Moostreppe
Yellow Moss Stair=Gelbe Moostreppe
Moss Slab=Moosplatte
Purple Moss Slab=Violette Moosplatte
Blue Moss Slab=Blaue Moosplatte
Yellow Moss Slab=Gelbe Moosplatte
+64
View File
@@ -0,0 +1,64 @@
# textdomain: farmtools
Flower Petals=Pétales de fleurs
Rake=Râteau
Scythe=Faux
Sickle=Faucille
Copper Sickle=Faucille en cuivre
Copper Scythe=Faux en cuivre
Copper Rake=Râteau en cuivre
Emerald Sickle=Faucille en émeraude
Emerald Scythe=Faux en émeraude
Emerald Rake=Râteau en émeraude
Iron Scythe=Faux en fer
Diamond Scythe=Faux en diamant
Iron Rake=Râteau en fer
Diamond Rake=Râteau en diamant
Iron Sickle=Faucille en fer
Golden Sickle=Faucille en or
Diamond Sickle=Faucille en diamant
Cut complete grains (e.g., wheat) down to growth level 3 immediately when harvesting.=Coupe les céréales mûres (par ex. blé) directement au niveau 3 de croissance après la récolte.
Iron sickle=Faucille en fer
Gold sickle=Faucille en or
Diamond sickle=Faucille en diamant
Netherite sickle=Faucille en netherite
Prepares ground for farming, in a larger radius than a hoe.=Prépare le sol pour l''agriculture, dans un rayon plus large qu''une houe.
Iron rake=Râteau en fer
Diamond rake=Râteau en diamant
Netherite rake=Râteau en netherite
Works only on completely grown crops, or as a weapon.=Fonctionne uniquement sur les plantes totalement matures, ou bien comme une arme.
Iron scythe=Faux en fer
Diamond scythe=Faux en diamant
Netherite scythe=Faux en netherite
Copper scythe=Faux en cuivre
Steel Scythe=Faux en acier
Steel Rake=Râteau en acier
Bronze Rake=Râteau en bronze
Bronze Sickle=Faucille en bronze
Steel Sickle=Faucille en acier
Mithril Scythe=Faux en mithril
Mithril Rake=Râteau en mithril
Mithril Sickle=Faucille en mithril
##### not used anymore #####
# textdomain: farmtools
Farm Tools=Outils Agricoles
Based on Scythes & Sickles, it adds various tools to make farming more convenient.=Basé sur le mode Scythes & Sickles, il ajoute divers outils qui rendent l'agriculture plus pratique.
Bronze Scythe=Faux en bronze
Moss=Mousse
Purple Moss=Mousse violette
Blue Moss=Mousse bleue
Yellow Moss=Mousse jaune
Moss Block=Bloc de mousse
Purple Moss Block=Bloc de mousse violette
Blue Moss Block=Bloc de mousse bleue
Yellow Moss Block=Bloc de mousse jaune
Moss Stair=Escalier en mousse
Purple Moss Stair=Escalier en mousse violette
Blue Moss Stair=Escalier en mousse bleue
Yellow Moss Stair=Escalier en mousse jaune
Moss Slab=Dalle de mousse
Purple Moss Slab=Dalle de mousse violette
Blue Moss Slab=Dalle de mousse bleue
Yellow Moss Slab=Dalle de mousse jaune
+64
View File
@@ -0,0 +1,64 @@
# textdomain: farmtools
Flower Petals=
Rake=
Scythe=
Sickle=
Copper Sickle=
Copper Scythe=
Copper Rake=
Emerald Sickle=
Emerald Scythe=
Emerald Rake=
Iron Scythe=
Diamond Scythe=
Iron Rake=
Diamond Rake=
Iron Sickle=
Golden Sickle=
Diamond Sickle=
Cut complete grains (e.g., wheat) down to growth level 3 immediately when harvesting.=
Iron sickle=
Gold sickle=
Diamond sickle=
Netherite sickle=
Prepares ground for farming, in a larger radius than a hoe.=
Iron rake=
Diamond rake=
Netherite rake=
Works only on completely grown crops, or as a weapon.=
Iron scythe=
Diamond scythe=
Netherite scythe=
Copper scythe=
Steel Scythe=
Steel Rake=
Bronze Rake=
Bronze Sickle=
Steel Sickle=
Mithril Scythe=
Mithril Rake=
Mithril Sickle=
##### not used anymore #####
# textdomain: farmtools
Farm Tools=
Based on Scythes & Sickles, it adds various tools to make farming more convenient.=
Bronze Scythe=
Moss=
Purple Moss=
Blue Moss=
Yellow Moss=
Moss Block=
Purple Moss Block=
Blue Moss Block=
Yellow Moss Block=
Moss Stair=
Purple Moss Stair=
Blue Moss Stair=
Yellow Moss Stair=
Moss Slab=
Purple Moss Slab=
Blue Moss Slab=
Yellow Moss Slab=
+64
View File
@@ -0,0 +1,64 @@
# textdomain: farmtools
Flower Petals=
Rake=
Scythe=
Sickle=
Copper Sickle=
Copper Scythe=
Copper Rake=
Emerald Sickle=
Emerald Scythe=
Emerald Rake=
Iron Scythe=
Diamond Scythe=
Iron Rake=
Diamond Rake=
Iron Sickle=
Golden Sickle=
Diamond Sickle=
Cut complete grains (e.g., wheat) down to growth level 3 immediately when harvesting.=
Iron sickle=
Gold sickle=
Diamond sickle=
Netherite sickle=
Prepares ground for farming, in a larger radius than a hoe.=
Iron rake=
Diamond rake=
Netherite rake=
Works only on completely grown crops, or as a weapon.=
Iron scythe=
Diamond scythe=
Netherite scythe=
Copper scythe=
Steel Scythe=
Steel Rake=
Bronze Rake=
Bronze Sickle=
Steel Sickle=
Mithril Scythe=
Mithril Rake=
Mithril Sickle=
##### not used anymore #####
# textdomain: farmtools
Farm Tools=
Based on Scythes & Sickles, it adds various tools to make farming more convenient.=
Bronze Scythe=
Moss=
Purple Moss=
Blue Moss=
Yellow Moss=
Moss Block=
Purple Moss Block=
Blue Moss Block=
Yellow Moss Block=
Moss Stair=
Purple Moss Stair=
Blue Moss Stair=
Yellow Moss Stair=
Moss Slab=
Purple Moss Slab=
Blue Moss Slab=
Yellow Moss Slab=
+12
View File
@@ -0,0 +1,12 @@
name = farmtools
title = Farm Tools
author = camelia
description = """
Based on the Scythes & Sickles mod by TestificateMods, this mod adds various tools to make farming more convenient.
Scythes allow you to quickly sweep through your fields. They can only break fully grown crops and harvest multiple plants at once. They also replant harvested crops automatically. Alternatively, they can be used as an effective weapon with higher range.
Sickles allow you to scrape grass and moss from overgrown nodes. The resulting moss can then be used as dye or fertilizer. They also let you to cut wheat and other grains more precisely, allowing you to harvest some crops without completely resetting them.
Finally, rakes allow you to turn dirt into soil in a 3x3 area, so that you can create bigger farms more quickly.
"""
depends =
optional_depends = stairs, walls, cottages, dye, flowers, footprints, bonemeal, nature_classic, moretrees, trunks, grains, cucina_vegana, df_mapitems, df_primordial_items, caverealms, ethereal, gloopblocks, underch, default, farming, mcl_farming, mcl_core, mcl_tools, mcl_emerald_stuff
+395
View File
@@ -0,0 +1,395 @@
Attribution 4.0 International
=======================================================================
Creative Commons Corporation ("Creative Commons") is not a law firm and
does not provide legal services or legal advice. Distribution of
Creative Commons public licenses does not create a lawyer-client or
other relationship. Creative Commons makes its licenses and related
information available on an "as-is" basis. Creative Commons gives no
warranties regarding its licenses, any material licensed under their
terms and conditions, or any related information. Creative Commons
disclaims all liability for damages resulting from their use to the
fullest extent possible.
Using Creative Commons Public Licenses
Creative Commons public licenses provide a standard set of terms and
conditions that creators and other rights holders may use to share
original works of authorship and other material subject to copyright
and certain other rights specified in the public license below. The
following considerations are for informational purposes only, are not
exhaustive, and do not form part of our licenses.
Considerations for licensors: Our public licenses are
intended for use by those authorized to give the public
permission to use material in ways otherwise restricted by
copyright and certain other rights. Our licenses are
irrevocable. Licensors should read and understand the terms
and conditions of the license they choose before applying it.
Licensors should also secure all rights necessary before
applying our licenses so that the public can reuse the
material as expected. Licensors should clearly mark any
material not subject to the license. This includes other CC-
licensed material, or material used under an exception or
limitation to copyright. More considerations for licensors:
wiki.creativecommons.org/Considerations_for_licensors
Considerations for the public: By using one of our public
licenses, a licensor grants the public permission to use the
licensed material under specified terms and conditions. If
the licensor's permission is not necessary for any reason--for
example, because of any applicable exception or limitation to
copyright--then that use is not regulated by the license. Our
licenses grant only permissions under copyright and certain
other rights that a licensor has authority to grant. Use of
the licensed material may still be restricted for other
reasons, including because others have copyright or other
rights in the material. A licensor may make special requests,
such as asking that all changes be marked or described.
Although not required by our licenses, you are encouraged to
respect those requests where reasonable. More considerations
for the public:
wiki.creativecommons.org/Considerations_for_licensees
=======================================================================
Creative Commons Attribution 4.0 International Public License
By exercising the Licensed Rights (defined below), You accept and agree
to be bound by the terms and conditions of this Creative Commons
Attribution 4.0 International Public License ("Public License"). To the
extent this Public License may be interpreted as a contract, You are
granted the Licensed Rights in consideration of Your acceptance of
these terms and conditions, and the Licensor grants You such rights in
consideration of benefits the Licensor receives from making the
Licensed Material available under these terms and conditions.
Section 1 -- Definitions.
a. Adapted Material means material subject to Copyright and Similar
Rights that is derived from or based upon the Licensed Material
and in which the Licensed Material is translated, altered,
arranged, transformed, or otherwise modified in a manner requiring
permission under the Copyright and Similar Rights held by the
Licensor. For purposes of this Public License, where the Licensed
Material is a musical work, performance, or sound recording,
Adapted Material is always produced where the Licensed Material is
synched in timed relation with a moving image.
b. Adapter's License means the license You apply to Your Copyright
and Similar Rights in Your contributions to Adapted Material in
accordance with the terms and conditions of this Public License.
c. Copyright and Similar Rights means copyright and/or similar rights
closely related to copyright including, without limitation,
performance, broadcast, sound recording, and Sui Generis Database
Rights, without regard to how the rights are labeled or
categorized. For purposes of this Public License, the rights
specified in Section 2(b)(1)-(2) are not Copyright and Similar
Rights.
d. Effective Technological Measures means those measures that, in the
absence of proper authority, may not be circumvented under laws
fulfilling obligations under Article 11 of the WIPO Copyright
Treaty adopted on December 20, 1996, and/or similar international
agreements.
e. Exceptions and Limitations means fair use, fair dealing, and/or
any other exception or limitation to Copyright and Similar Rights
that applies to Your use of the Licensed Material.
f. Licensed Material means the artistic or literary work, database,
or other material to which the Licensor applied this Public
License.
g. Licensed Rights means the rights granted to You subject to the
terms and conditions of this Public License, which are limited to
all Copyright and Similar Rights that apply to Your use of the
Licensed Material and that the Licensor has authority to license.
h. Licensor means the individual(s) or entity(ies) granting rights
under this Public License.
i. Share means to provide material to the public by any means or
process that requires permission under the Licensed Rights, such
as reproduction, public display, public performance, distribution,
dissemination, communication, or importation, and to make material
available to the public including in ways that members of the
public may access the material from a place and at a time
individually chosen by them.
j. Sui Generis Database Rights means rights other than copyright
resulting from Directive 96/9/EC of the European Parliament and of
the Council of 11 March 1996 on the legal protection of databases,
as amended and/or succeeded, as well as other essentially
equivalent rights anywhere in the world.
k. You means the individual or entity exercising the Licensed Rights
under this Public License. Your has a corresponding meaning.
Section 2 -- Scope.
a. License grant.
1. Subject to the terms and conditions of this Public License,
the Licensor hereby grants You a worldwide, royalty-free,
non-sublicensable, non-exclusive, irrevocable license to
exercise the Licensed Rights in the Licensed Material to:
a. reproduce and Share the Licensed Material, in whole or
in part; and
b. produce, reproduce, and Share Adapted Material.
2. Exceptions and Limitations. For the avoidance of doubt, where
Exceptions and Limitations apply to Your use, this Public
License does not apply, and You do not need to comply with
its terms and conditions.
3. Term. The term of this Public License is specified in Section
6(a).
4. Media and formats; technical modifications allowed. The
Licensor authorizes You to exercise the Licensed Rights in
all media and formats whether now known or hereafter created,
and to make technical modifications necessary to do so. The
Licensor waives and/or agrees not to assert any right or
authority to forbid You from making technical modifications
necessary to exercise the Licensed Rights, including
technical modifications necessary to circumvent Effective
Technological Measures. For purposes of this Public License,
simply making modifications authorized by this Section 2(a)
(4) never produces Adapted Material.
5. Downstream recipients.
a. Offer from the Licensor -- Licensed Material. Every
recipient of the Licensed Material automatically
receives an offer from the Licensor to exercise the
Licensed Rights under the terms and conditions of this
Public License.
b. No downstream restrictions. You may not offer or impose
any additional or different terms or conditions on, or
apply any Effective Technological Measures to, the
Licensed Material if doing so restricts exercise of the
Licensed Rights by any recipient of the Licensed
Material.
6. No endorsement. Nothing in this Public License constitutes or
may be construed as permission to assert or imply that You
are, or that Your use of the Licensed Material is, connected
with, or sponsored, endorsed, or granted official status by,
the Licensor or others designated to receive attribution as
provided in Section 3(a)(1)(A)(i).
b. Other rights.
1. Moral rights, such as the right of integrity, are not
licensed under this Public License, nor are publicity,
privacy, and/or other similar personality rights; however, to
the extent possible, the Licensor waives and/or agrees not to
assert any such rights held by the Licensor to the limited
extent necessary to allow You to exercise the Licensed
Rights, but not otherwise.
2. Patent and trademark rights are not licensed under this
Public License.
3. To the extent possible, the Licensor waives any right to
collect royalties from You for the exercise of the Licensed
Rights, whether directly or through a collecting society
under any voluntary or waivable statutory or compulsory
licensing scheme. In all other cases the Licensor expressly
reserves any right to collect such royalties.
Section 3 -- License Conditions.
Your exercise of the Licensed Rights is expressly made subject to the
following conditions.
a. Attribution.
1. If You Share the Licensed Material (including in modified
form), You must:
a. retain the following if it is supplied by the Licensor
with the Licensed Material:
i. identification of the creator(s) of the Licensed
Material and any others designated to receive
attribution, in any reasonable manner requested by
the Licensor (including by pseudonym if
designated);
ii. a copyright notice;
iii. a notice that refers to this Public License;
iv. a notice that refers to the disclaimer of
warranties;
v. a URI or hyperlink to the Licensed Material to the
extent reasonably practicable;
b. indicate if You modified the Licensed Material and
retain an indication of any previous modifications; and
c. indicate the Licensed Material is licensed under this
Public License, and include the text of, or the URI or
hyperlink to, this Public License.
2. You may satisfy the conditions in Section 3(a)(1) in any
reasonable manner based on the medium, means, and context in
which You Share the Licensed Material. For example, it may be
reasonable to satisfy the conditions by providing a URI or
hyperlink to a resource that includes the required
information.
3. If requested by the Licensor, You must remove any of the
information required by Section 3(a)(1)(A) to the extent
reasonably practicable.
4. If You Share Adapted Material You produce, the Adapter's
License You apply must not prevent recipients of the Adapted
Material from complying with this Public License.
Section 4 -- Sui Generis Database Rights.
Where the Licensed Rights include Sui Generis Database Rights that
apply to Your use of the Licensed Material:
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
to extract, reuse, reproduce, and Share all or a substantial
portion of the contents of the database;
b. if You include all or a substantial portion of the database
contents in a database in which You have Sui Generis Database
Rights, then the database in which You have Sui Generis Database
Rights (but not its individual contents) is Adapted Material; and
c. You must comply with the conditions in Section 3(a) if You Share
all or a substantial portion of the contents of the database.
For the avoidance of doubt, this Section 4 supplements and does not
replace Your obligations under this Public License where the Licensed
Rights include other Copyright and Similar Rights.
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
c. The disclaimer of warranties and limitation of liability provided
above shall be interpreted in a manner that, to the extent
possible, most closely approximates an absolute disclaimer and
waiver of all liability.
Section 6 -- Term and Termination.
a. This Public License applies for the term of the Copyright and
Similar Rights licensed here. However, if You fail to comply with
this Public License, then Your rights under this Public License
terminate automatically.
b. Where Your right to use the Licensed Material has terminated under
Section 6(a), it reinstates:
1. automatically as of the date the violation is cured, provided
it is cured within 30 days of Your discovery of the
violation; or
2. upon express reinstatement by the Licensor.
For the avoidance of doubt, this Section 6(b) does not affect any
right the Licensor may have to seek remedies for Your violations
of this Public License.
c. For the avoidance of doubt, the Licensor may also offer the
Licensed Material under separate terms or conditions or stop
distributing the Licensed Material at any time; however, doing so
will not terminate this Public License.
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
License.
Section 7 -- Other Terms and Conditions.
a. The Licensor shall not be bound by any additional or different
terms or conditions communicated by You unless expressly agreed.
b. Any arrangements, understandings, or agreements regarding the
Licensed Material not stated herein are separate from and
independent of the terms and conditions of this Public License.
Section 8 -- Interpretation.
a. For the avoidance of doubt, this Public License does not, and
shall not be interpreted to, reduce, limit, restrict, or impose
conditions on any use of the Licensed Material that could lawfully
be made without permission under this Public License.
b. To the extent possible, if any provision of this Public License is
deemed unenforceable, it shall be automatically reformed to the
minimum extent necessary to make it enforceable. If the provision
cannot be reformed, it shall be severed from this Public License
without affecting the enforceability of the remaining terms and
conditions.
c. No term or condition of this Public License will be waived and no
failure to comply consented to unless expressly agreed to by the
Licensor.
d. Nothing in this Public License constitutes or may be interpreted
as a limitation upon, or waiver of, any privileges and immunities
that apply to the Licensor or You, including from the legal
processes of any jurisdiction or authority.
=======================================================================
Creative Commons is not a party to its public licenses.
Notwithstanding, Creative Commons may elect to apply one of its public
licenses to material it publishes and in those instances will be
considered the “Licensor.” The text of the Creative Commons public
licenses is dedicated to the public domain under the CC0 Public Domain
Dedication. Except for the limited purpose of indicating that material
is shared under a Creative Commons public license or as otherwise
permitted by the Creative Commons policies published at
creativecommons.org/policies, Creative Commons does not authorize the
use of the trademark "Creative Commons" or any other trademark or logo
of Creative Commons without its prior written consent including,
without limitation, in connection with any unauthorized modifications
to any of its public licenses or any other arrangements,
understandings, or agreements concerning use of licensed material. For
the avoidance of doubt, this paragraph does not form part of the public
licenses.
Creative Commons may be contacted at creativecommons.org.
Binary file not shown.
@@ -0,0 +1,359 @@
Creative Commons Legal Code
Attribution-ShareAlike 3.0 Unported
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR
DAMAGES RESULTING FROM ITS USE.
License
THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE
COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY
COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS
AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE
TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY
BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS
CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND
CONDITIONS.
1. Definitions
a. "Adaptation" means a work based upon the Work, or upon the Work and
other pre-existing works, such as a translation, adaptation,
derivative work, arrangement of music or other alterations of a
literary or artistic work, or phonogram or performance and includes
cinematographic adaptations or any other form in which the Work may be
recast, transformed, or adapted including in any form recognizably
derived from the original, except that a work that constitutes a
Collection will not be considered an Adaptation for the purpose of
this License. For the avoidance of doubt, where the Work is a musical
work, performance or phonogram, the synchronization of the Work in
timed-relation with a moving image ("synching") will be considered an
Adaptation for the purpose of this License.
b. "Collection" means a collection of literary or artistic works, such as
encyclopedias and anthologies, or performances, phonograms or
broadcasts, or other works or subject matter other than works listed
in Section 1(f) below, which, by reason of the selection and
arrangement of their contents, constitute intellectual creations, in
which the Work is included in its entirety in unmodified form along
with one or more other contributions, each constituting separate and
independent works in themselves, which together are assembled into a
collective whole. A work that constitutes a Collection will not be
considered an Adaptation (as defined below) for the purposes of this
License.
c. "Creative Commons Compatible License" means a license that is listed
at https://creativecommons.org/compatiblelicenses that has been
approved by Creative Commons as being essentially equivalent to this
License, including, at a minimum, because that license: (i) contains
terms that have the same purpose, meaning and effect as the License
Elements of this License; and, (ii) explicitly permits the relicensing
of adaptations of works made available under that license under this
License or a Creative Commons jurisdiction license with the same
License Elements as this License.
d. "Distribute" means to make available to the public the original and
copies of the Work or Adaptation, as appropriate, through sale or
other transfer of ownership.
e. "License Elements" means the following high-level license attributes
as selected by Licensor and indicated in the title of this License:
Attribution, ShareAlike.
f. "Licensor" means the individual, individuals, entity or entities that
offer(s) the Work under the terms of this License.
g. "Original Author" means, in the case of a literary or artistic work,
the individual, individuals, entity or entities who created the Work
or if no individual or entity can be identified, the publisher; and in
addition (i) in the case of a performance the actors, singers,
musicians, dancers, and other persons who act, sing, deliver, declaim,
play in, interpret or otherwise perform literary or artistic works or
expressions of folklore; (ii) in the case of a phonogram the producer
being the person or legal entity who first fixes the sounds of a
performance or other sounds; and, (iii) in the case of broadcasts, the
organization that transmits the broadcast.
h. "Work" means the literary and/or artistic work offered under the terms
of this License including without limitation any production in the
literary, scientific and artistic domain, whatever may be the mode or
form of its expression including digital form, such as a book,
pamphlet and other writing; a lecture, address, sermon or other work
of the same nature; a dramatic or dramatico-musical work; a
choreographic work or entertainment in dumb show; a musical
composition with or without words; a cinematographic work to which are
assimilated works expressed by a process analogous to cinematography;
a work of drawing, painting, architecture, sculpture, engraving or
lithography; a photographic work to which are assimilated works
expressed by a process analogous to photography; a work of applied
art; an illustration, map, plan, sketch or three-dimensional work
relative to geography, topography, architecture or science; a
performance; a broadcast; a phonogram; a compilation of data to the
extent it is protected as a copyrightable work; or a work performed by
a variety or circus performer to the extent it is not otherwise
considered a literary or artistic work.
i. "You" means an individual or entity exercising rights under this
License who has not previously violated the terms of this License with
respect to the Work, or who has received express permission from the
Licensor to exercise rights under this License despite a previous
violation.
j. "Publicly Perform" means to perform public recitations of the Work and
to communicate to the public those public recitations, by any means or
process, including by wire or wireless means or public digital
performances; to make available to the public Works in such a way that
members of the public may access these Works from a place and at a
place individually chosen by them; to perform the Work to the public
by any means or process and the communication to the public of the
performances of the Work, including by public digital performance; to
broadcast and rebroadcast the Work by any means including signs,
sounds or images.
k. "Reproduce" means to make copies of the Work by any means including
without limitation by sound or visual recordings and the right of
fixation and reproducing fixations of the Work, including storage of a
protected performance or phonogram in digital form or other electronic
medium.
2. Fair Dealing Rights. Nothing in this License is intended to reduce,
limit, or restrict any uses free from copyright or rights arising from
limitations or exceptions that are provided for in connection with the
copyright protection under copyright law or other applicable laws.
3. License Grant. Subject to the terms and conditions of this License,
Licensor hereby grants You a worldwide, royalty-free, non-exclusive,
perpetual (for the duration of the applicable copyright) license to
exercise the rights in the Work as stated below:
a. to Reproduce the Work, to incorporate the Work into one or more
Collections, and to Reproduce the Work as incorporated in the
Collections;
b. to create and Reproduce Adaptations provided that any such Adaptation,
including any translation in any medium, takes reasonable steps to
clearly label, demarcate or otherwise identify that changes were made
to the original Work. For example, a translation could be marked "The
original work was translated from English to Spanish," or a
modification could indicate "The original work has been modified.";
c. to Distribute and Publicly Perform the Work including as incorporated
in Collections; and,
d. to Distribute and Publicly Perform Adaptations.
e. For the avoidance of doubt:
i. Non-waivable Compulsory License Schemes. In those jurisdictions in
which the right to collect royalties through any statutory or
compulsory licensing scheme cannot be waived, the Licensor
reserves the exclusive right to collect such royalties for any
exercise by You of the rights granted under this License;
ii. Waivable Compulsory License Schemes. In those jurisdictions in
which the right to collect royalties through any statutory or
compulsory licensing scheme can be waived, the Licensor waives the
exclusive right to collect such royalties for any exercise by You
of the rights granted under this License; and,
iii. Voluntary License Schemes. The Licensor waives the right to
collect royalties, whether individually or, in the event that the
Licensor is a member of a collecting society that administers
voluntary licensing schemes, via that society, from any exercise
by You of the rights granted under this License.
The above rights may be exercised in all media and formats whether now
known or hereafter devised. The above rights include the right to make
such modifications as are technically necessary to exercise the rights in
other media and formats. Subject to Section 8(f), all rights not expressly
granted by Licensor are hereby reserved.
4. Restrictions. The license granted in Section 3 above is expressly made
subject to and limited by the following restrictions:
a. You may Distribute or Publicly Perform the Work only under the terms
of this License. You must include a copy of, or the Uniform Resource
Identifier (URI) for, this License with every copy of the Work You
Distribute or Publicly Perform. You may not offer or impose any terms
on the Work that restrict the terms of this License or the ability of
the recipient of the Work to exercise the rights granted to that
recipient under the terms of the License. You may not sublicense the
Work. You must keep intact all notices that refer to this License and
to the disclaimer of warranties with every copy of the Work You
Distribute or Publicly Perform. When You Distribute or Publicly
Perform the Work, You may not impose any effective technological
measures on the Work that restrict the ability of a recipient of the
Work from You to exercise the rights granted to that recipient under
the terms of the License. This Section 4(a) applies to the Work as
incorporated in a Collection, but this does not require the Collection
apart from the Work itself to be made subject to the terms of this
License. If You create a Collection, upon notice from any Licensor You
must, to the extent practicable, remove from the Collection any credit
as required by Section 4(c), as requested. If You create an
Adaptation, upon notice from any Licensor You must, to the extent
practicable, remove from the Adaptation any credit as required by
Section 4(c), as requested.
b. You may Distribute or Publicly Perform an Adaptation only under the
terms of: (i) this License; (ii) a later version of this License with
the same License Elements as this License; (iii) a Creative Commons
jurisdiction license (either this or a later license version) that
contains the same License Elements as this License (e.g.,
Attribution-ShareAlike 3.0 US)); (iv) a Creative Commons Compatible
License. If you license the Adaptation under one of the licenses
mentioned in (iv), you must comply with the terms of that license. If
you license the Adaptation under the terms of any of the licenses
mentioned in (i), (ii) or (iii) (the "Applicable License"), you must
comply with the terms of the Applicable License generally and the
following provisions: (I) You must include a copy of, or the URI for,
the Applicable License with every copy of each Adaptation You
Distribute or Publicly Perform; (II) You may not offer or impose any
terms on the Adaptation that restrict the terms of the Applicable
License or the ability of the recipient of the Adaptation to exercise
the rights granted to that recipient under the terms of the Applicable
License; (III) You must keep intact all notices that refer to the
Applicable License and to the disclaimer of warranties with every copy
of the Work as included in the Adaptation You Distribute or Publicly
Perform; (IV) when You Distribute or Publicly Perform the Adaptation,
You may not impose any effective technological measures on the
Adaptation that restrict the ability of a recipient of the Adaptation
from You to exercise the rights granted to that recipient under the
terms of the Applicable License. This Section 4(b) applies to the
Adaptation as incorporated in a Collection, but this does not require
the Collection apart from the Adaptation itself to be made subject to
the terms of the Applicable License.
c. If You Distribute, or Publicly Perform the Work or any Adaptations or
Collections, You must, unless a request has been made pursuant to
Section 4(a), keep intact all copyright notices for the Work and
provide, reasonable to the medium or means You are utilizing: (i) the
name of the Original Author (or pseudonym, if applicable) if supplied,
and/or if the Original Author and/or Licensor designate another party
or parties (e.g., a sponsor institute, publishing entity, journal) for
attribution ("Attribution Parties") in Licensor's copyright notice,
terms of service or by other reasonable means, the name of such party
or parties; (ii) the title of the Work if supplied; (iii) to the
extent reasonably practicable, the URI, if any, that Licensor
specifies to be associated with the Work, unless such URI does not
refer to the copyright notice or licensing information for the Work;
and (iv) , consistent with Ssection 3(b), in the case of an
Adaptation, a credit identifying the use of the Work in the Adaptation
(e.g., "French translation of the Work by Original Author," or
"Screenplay based on original Work by Original Author"). The credit
required by this Section 4(c) may be implemented in any reasonable
manner; provided, however, that in the case of a Adaptation or
Collection, at a minimum such credit will appear, if a credit for all
contributing authors of the Adaptation or Collection appears, then as
part of these credits and in a manner at least as prominent as the
credits for the other contributing authors. For the avoidance of
doubt, You may only use the credit required by this Section for the
purpose of attribution in the manner set out above and, by exercising
Your rights under this License, You may not implicitly or explicitly
assert or imply any connection with, sponsorship or endorsement by the
Original Author, Licensor and/or Attribution Parties, as appropriate,
of You or Your use of the Work, without the separate, express prior
written permission of the Original Author, Licensor and/or Attribution
Parties.
d. Except as otherwise agreed in writing by the Licensor or as may be
otherwise permitted by applicable law, if You Reproduce, Distribute or
Publicly Perform the Work either by itself or as part of any
Adaptations or Collections, You must not distort, mutilate, modify or
take other derogatory action in relation to the Work which would be
prejudicial to the Original Author's honor or reputation. Licensor
agrees that in those jurisdictions (e.g. Japan), in which any exercise
of the right granted in Section 3(b) of this License (the right to
make Adaptations) would be deemed to be a distortion, mutilation,
modification or other derogatory action prejudicial to the Original
Author's honor and reputation, the Licensor will waive or not assert,
as appropriate, this Section, to the fullest extent permitted by the
applicable national law, to enable You to reasonably exercise Your
right under Section 3(b) of this License (right to make Adaptations)
but not otherwise.
5. Representations, Warranties and Disclaimer
UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR
OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY
KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE,
INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY,
FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF
LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS,
WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION
OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE
LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR
ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES
ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
7. Termination
a. This License and the rights granted hereunder will terminate
automatically upon any breach by You of the terms of this License.
Individuals or entities who have received Adaptations or Collections
from You under this License, however, will not have their licenses
terminated provided such individuals or entities remain in full
compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will
survive any termination of this License.
b. Subject to the above terms and conditions, the license granted here is
perpetual (for the duration of the applicable copyright in the Work).
Notwithstanding the above, Licensor reserves the right to release the
Work under different license terms or to stop distributing the Work at
any time; provided, however that any such election will not serve to
withdraw this License (or any other license that has been, or is
required to be, granted under the terms of this License), and this
License will continue in full force and effect unless terminated as
stated above.
8. Miscellaneous
a. Each time You Distribute or Publicly Perform the Work or a Collection,
the Licensor offers to the recipient a license to the Work on the same
terms and conditions as the license granted to You under this License.
b. Each time You Distribute or Publicly Perform an Adaptation, Licensor
offers to the recipient a license to the original Work on the same
terms and conditions as the license granted to You under this License.
c. If any provision of this License is invalid or unenforceable under
applicable law, it shall not affect the validity or enforceability of
the remainder of the terms of this License, and without further action
by the parties to this agreement, such provision shall be reformed to
the minimum extent necessary to make such provision valid and
enforceable.
d. No term or provision of this License shall be deemed waived and no
breach consented to unless such waiver or consent shall be in writing
and signed by the party to be charged with such waiver or consent.
e. This License constitutes the entire agreement between the parties with
respect to the Work licensed here. There are no understandings,
agreements or representations with respect to the Work not specified
here. Licensor shall not be bound by any additional provisions that
may appear in any communication from You. This License may not be
modified without the mutual written agreement of the Licensor and You.
f. The rights granted under, and the subject matter referenced, in this
License were drafted utilizing the terminology of the Berne Convention
for the Protection of Literary and Artistic Works (as amended on
September 28, 1979), the Rome Convention of 1961, the WIPO Copyright
Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996
and the Universal Copyright Convention (as revised on July 24, 1971).
These rights and subject matter take effect in the relevant
jurisdiction in which the License terms are sought to be enforced
according to the corresponding provisions of the implementation of
those treaty provisions in the applicable national law. If the
standard suite of rights granted under applicable copyright law
includes additional rights not granted under this License, such
additional rights are deemed to be included in the License; this
License is not intended to restrict the license of any rights under
applicable law.
Creative Commons Notice
Creative Commons is not a party to this License, and makes no warranty
whatsoever in connection with the Work. Creative Commons will not be
liable to You or any party on any legal theory for any damages
whatsoever, including without limitation any general, special,
incidental or consequential damages arising in connection to this
license. Notwithstanding the foregoing two (2) sentences, if Creative
Commons has expressly identified itself as the Licensor hereunder, it
shall have all rights and obligations of Licensor.
Except for the limited purpose of indicating to the public that the
Work is licensed under the CCPL, Creative Commons does not authorize
the use by either party of the trademark "Creative Commons" or any
related trademark or logo of Creative Commons without the prior
written consent of Creative Commons. Any permitted use will be in
compliance with Creative Commons' then-current trademark usage
guidelines, as may be published on its website or otherwise made
available upon request from time to time. For the avoidance of doubt,
this trademark restriction does not form part of the License.
Creative Commons may be contacted at https://creativecommons.org/.
@@ -0,0 +1,427 @@
Attribution-ShareAlike 4.0 International
=======================================================================
Creative Commons Corporation ("Creative Commons") is not a law firm and
does not provide legal services or legal advice. Distribution of
Creative Commons public licenses does not create a lawyer-client or
other relationship. Creative Commons makes its licenses and related
information available on an "as-is" basis. Creative Commons gives no
warranties regarding its licenses, any material licensed under their
terms and conditions, or any related information. Creative Commons
disclaims all liability for damages resulting from their use to the
fullest extent possible.
Using Creative Commons Public Licenses
Creative Commons public licenses provide a standard set of terms and
conditions that creators and other rights holders may use to share
original works of authorship and other material subject to copyright
and certain other rights specified in the public license below. The
following considerations are for informational purposes only, are not
exhaustive, and do not form part of our licenses.
Considerations for licensors: Our public licenses are
intended for use by those authorized to give the public
permission to use material in ways otherwise restricted by
copyright and certain other rights. Our licenses are
irrevocable. Licensors should read and understand the terms
and conditions of the license they choose before applying it.
Licensors should also secure all rights necessary before
applying our licenses so that the public can reuse the
material as expected. Licensors should clearly mark any
material not subject to the license. This includes other CC-
licensed material, or material used under an exception or
limitation to copyright. More considerations for licensors:
wiki.creativecommons.org/Considerations_for_licensors
Considerations for the public: By using one of our public
licenses, a licensor grants the public permission to use the
licensed material under specified terms and conditions. If
the licensor's permission is not necessary for any reason--for
example, because of any applicable exception or limitation to
copyright--then that use is not regulated by the license. Our
licenses grant only permissions under copyright and certain
other rights that a licensor has authority to grant. Use of
the licensed material may still be restricted for other
reasons, including because others have copyright or other
rights in the material. A licensor may make special requests,
such as asking that all changes be marked or described.
Although not required by our licenses, you are encouraged to
respect those requests where reasonable. More considerations
for the public:
wiki.creativecommons.org/Considerations_for_licensees
=======================================================================
Creative Commons Attribution-ShareAlike 4.0 International Public
License
By exercising the Licensed Rights (defined below), You accept and agree
to be bound by the terms and conditions of this Creative Commons
Attribution-ShareAlike 4.0 International Public License ("Public
License"). To the extent this Public License may be interpreted as a
contract, You are granted the Licensed Rights in consideration of Your
acceptance of these terms and conditions, and the Licensor grants You
such rights in consideration of benefits the Licensor receives from
making the Licensed Material available under these terms and
conditions.
Section 1 -- Definitions.
a. Adapted Material means material subject to Copyright and Similar
Rights that is derived from or based upon the Licensed Material
and in which the Licensed Material is translated, altered,
arranged, transformed, or otherwise modified in a manner requiring
permission under the Copyright and Similar Rights held by the
Licensor. For purposes of this Public License, where the Licensed
Material is a musical work, performance, or sound recording,
Adapted Material is always produced where the Licensed Material is
synched in timed relation with a moving image.
b. Adapter's License means the license You apply to Your Copyright
and Similar Rights in Your contributions to Adapted Material in
accordance with the terms and conditions of this Public License.
c. BY-SA Compatible License means a license listed at
creativecommons.org/compatiblelicenses, approved by Creative
Commons as essentially the equivalent of this Public License.
d. Copyright and Similar Rights means copyright and/or similar rights
closely related to copyright including, without limitation,
performance, broadcast, sound recording, and Sui Generis Database
Rights, without regard to how the rights are labeled or
categorized. For purposes of this Public License, the rights
specified in Section 2(b)(1)-(2) are not Copyright and Similar
Rights.
e. Effective Technological Measures means those measures that, in the
absence of proper authority, may not be circumvented under laws
fulfilling obligations under Article 11 of the WIPO Copyright
Treaty adopted on December 20, 1996, and/or similar international
agreements.
f. Exceptions and Limitations means fair use, fair dealing, and/or
any other exception or limitation to Copyright and Similar Rights
that applies to Your use of the Licensed Material.
g. License Elements means the license attributes listed in the name
of a Creative Commons Public License. The License Elements of this
Public License are Attribution and ShareAlike.
h. Licensed Material means the artistic or literary work, database,
or other material to which the Licensor applied this Public
License.
i. Licensed Rights means the rights granted to You subject to the
terms and conditions of this Public License, which are limited to
all Copyright and Similar Rights that apply to Your use of the
Licensed Material and that the Licensor has authority to license.
j. Licensor means the individual(s) or entity(ies) granting rights
under this Public License.
k. Share means to provide material to the public by any means or
process that requires permission under the Licensed Rights, such
as reproduction, public display, public performance, distribution,
dissemination, communication, or importation, and to make material
available to the public including in ways that members of the
public may access the material from a place and at a time
individually chosen by them.
l. Sui Generis Database Rights means rights other than copyright
resulting from Directive 96/9/EC of the European Parliament and of
the Council of 11 March 1996 on the legal protection of databases,
as amended and/or succeeded, as well as other essentially
equivalent rights anywhere in the world.
m. You means the individual or entity exercising the Licensed Rights
under this Public License. Your has a corresponding meaning.
Section 2 -- Scope.
a. License grant.
1. Subject to the terms and conditions of this Public License,
the Licensor hereby grants You a worldwide, royalty-free,
non-sublicensable, non-exclusive, irrevocable license to
exercise the Licensed Rights in the Licensed Material to:
a. reproduce and Share the Licensed Material, in whole or
in part; and
b. produce, reproduce, and Share Adapted Material.
2. Exceptions and Limitations. For the avoidance of doubt, where
Exceptions and Limitations apply to Your use, this Public
License does not apply, and You do not need to comply with
its terms and conditions.
3. Term. The term of this Public License is specified in Section
6(a).
4. Media and formats; technical modifications allowed. The
Licensor authorizes You to exercise the Licensed Rights in
all media and formats whether now known or hereafter created,
and to make technical modifications necessary to do so. The
Licensor waives and/or agrees not to assert any right or
authority to forbid You from making technical modifications
necessary to exercise the Licensed Rights, including
technical modifications necessary to circumvent Effective
Technological Measures. For purposes of this Public License,
simply making modifications authorized by this Section 2(a)
(4) never produces Adapted Material.
5. Downstream recipients.
a. Offer from the Licensor -- Licensed Material. Every
recipient of the Licensed Material automatically
receives an offer from the Licensor to exercise the
Licensed Rights under the terms and conditions of this
Public License.
b. Additional offer from the Licensor -- Adapted Material.
Every recipient of Adapted Material from You
automatically receives an offer from the Licensor to
exercise the Licensed Rights in the Adapted Material
under the conditions of the Adapter's License You apply.
c. No downstream restrictions. You may not offer or impose
any additional or different terms or conditions on, or
apply any Effective Technological Measures to, the
Licensed Material if doing so restricts exercise of the
Licensed Rights by any recipient of the Licensed
Material.
6. No endorsement. Nothing in this Public License constitutes or
may be construed as permission to assert or imply that You
are, or that Your use of the Licensed Material is, connected
with, or sponsored, endorsed, or granted official status by,
the Licensor or others designated to receive attribution as
provided in Section 3(a)(1)(A)(i).
b. Other rights.
1. Moral rights, such as the right of integrity, are not
licensed under this Public License, nor are publicity,
privacy, and/or other similar personality rights; however, to
the extent possible, the Licensor waives and/or agrees not to
assert any such rights held by the Licensor to the limited
extent necessary to allow You to exercise the Licensed
Rights, but not otherwise.
2. Patent and trademark rights are not licensed under this
Public License.
3. To the extent possible, the Licensor waives any right to
collect royalties from You for the exercise of the Licensed
Rights, whether directly or through a collecting society
under any voluntary or waivable statutory or compulsory
licensing scheme. In all other cases the Licensor expressly
reserves any right to collect such royalties.
Section 3 -- License Conditions.
Your exercise of the Licensed Rights is expressly made subject to the
following conditions.
a. Attribution.
1. If You Share the Licensed Material (including in modified
form), You must:
a. retain the following if it is supplied by the Licensor
with the Licensed Material:
i. identification of the creator(s) of the Licensed
Material and any others designated to receive
attribution, in any reasonable manner requested by
the Licensor (including by pseudonym if
designated);
ii. a copyright notice;
iii. a notice that refers to this Public License;
iv. a notice that refers to the disclaimer of
warranties;
v. a URI or hyperlink to the Licensed Material to the
extent reasonably practicable;
b. indicate if You modified the Licensed Material and
retain an indication of any previous modifications; and
c. indicate the Licensed Material is licensed under this
Public License, and include the text of, or the URI or
hyperlink to, this Public License.
2. You may satisfy the conditions in Section 3(a)(1) in any
reasonable manner based on the medium, means, and context in
which You Share the Licensed Material. For example, it may be
reasonable to satisfy the conditions by providing a URI or
hyperlink to a resource that includes the required
information.
3. If requested by the Licensor, You must remove any of the
information required by Section 3(a)(1)(A) to the extent
reasonably practicable.
b. ShareAlike.
In addition to the conditions in Section 3(a), if You Share
Adapted Material You produce, the following conditions also apply.
1. The Adapter's License You apply must be a Creative Commons
license with the same License Elements, this version or
later, or a BY-SA Compatible License.
2. You must include the text of, or the URI or hyperlink to, the
Adapter's License You apply. You may satisfy this condition
in any reasonable manner based on the medium, means, and
context in which You Share Adapted Material.
3. You may not offer or impose any additional or different terms
or conditions on, or apply any Effective Technological
Measures to, Adapted Material that restrict exercise of the
rights granted under the Adapter's License You apply.
Section 4 -- Sui Generis Database Rights.
Where the Licensed Rights include Sui Generis Database Rights that
apply to Your use of the Licensed Material:
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
to extract, reuse, reproduce, and Share all or a substantial
portion of the contents of the database;
b. if You include all or a substantial portion of the database
contents in a database in which You have Sui Generis Database
Rights, then the database in which You have Sui Generis Database
Rights (but not its individual contents) is Adapted Material,
including for purposes of Section 3(b); and
c. You must comply with the conditions in Section 3(a) if You Share
all or a substantial portion of the contents of the database.
For the avoidance of doubt, this Section 4 supplements and does not
replace Your obligations under this Public License where the Licensed
Rights include other Copyright and Similar Rights.
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
c. The disclaimer of warranties and limitation of liability provided
above shall be interpreted in a manner that, to the extent
possible, most closely approximates an absolute disclaimer and
waiver of all liability.
Section 6 -- Term and Termination.
a. This Public License applies for the term of the Copyright and
Similar Rights licensed here. However, if You fail to comply with
this Public License, then Your rights under this Public License
terminate automatically.
b. Where Your right to use the Licensed Material has terminated under
Section 6(a), it reinstates:
1. automatically as of the date the violation is cured, provided
it is cured within 30 days of Your discovery of the
violation; or
2. upon express reinstatement by the Licensor.
For the avoidance of doubt, this Section 6(b) does not affect any
right the Licensor may have to seek remedies for Your violations
of this Public License.
c. For the avoidance of doubt, the Licensor may also offer the
Licensed Material under separate terms or conditions or stop
distributing the Licensed Material at any time; however, doing so
will not terminate this Public License.
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
License.
Section 7 -- Other Terms and Conditions.
a. The Licensor shall not be bound by any additional or different
terms or conditions communicated by You unless expressly agreed.
b. Any arrangements, understandings, or agreements regarding the
Licensed Material not stated herein are separate from and
independent of the terms and conditions of this Public License.
Section 8 -- Interpretation.
a. For the avoidance of doubt, this Public License does not, and
shall not be interpreted to, reduce, limit, restrict, or impose
conditions on any use of the Licensed Material that could lawfully
be made without permission under this Public License.
b. To the extent possible, if any provision of this Public License is
deemed unenforceable, it shall be automatically reformed to the
minimum extent necessary to make it enforceable. If the provision
cannot be reformed, it shall be severed from this Public License
without affecting the enforceability of the remaining terms and
conditions.
c. No term or condition of this Public License will be waived and no
failure to comply consented to unless expressly agreed to by the
Licensor.
d. Nothing in this Public License constitutes or may be interpreted
as a limitation upon, or waiver of, any privileges and immunities
that apply to the Licensor or You, including from the legal
processes of any jurisdiction or authority.
=======================================================================
Creative Commons is not a party to its public licenses.
Notwithstanding, Creative Commons may elect to apply one of its public
licenses to material it publishes and in those instances will be
considered the “Licensor.” The text of the Creative Commons public
licenses is dedicated to the public domain under the CC0 Public Domain
Dedication. Except for the limited purpose of indicating that material
is shared under a Creative Commons public license or as otherwise
permitted by the Creative Commons policies published at
creativecommons.org/policies, Creative Commons does not authorize the
use of the trademark "Creative Commons" or any other trademark or logo
of Creative Commons without its prior written consent including,
without limitation, in connection with any unauthorized modifications
to any of its public licenses or any other arrangements,
understandings, or agreements concerning use of licensed material. For
the avoidance of doubt, this paragraph does not form part of the public
licenses.
Creative Commons may be contacted at creativecommons.org.
Binary file not shown.

After

Width:  |  Height:  |  Size: 289 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 380 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 397 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 463 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 471 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 397 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 369 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 392 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 413 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 452 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 451 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 456 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B