[Mod] Scythes & Sickles [sickles] [1.3.0]

Post Reply
User avatar
TestificateMods
Member
Posts: 35
Joined: Sat Apr 11, 2020 02:09
GitHub: t-affeldt
In-game: Testificate

[Mod] Scythes & Sickles [sickles] [1.3.0]

by TestificateMods » Post

Scythes & Sickles
Adds scythes and sickles with unique applications for farming

Image

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 (like dirt_with_grass, mossycobble, or permafrost_with_moss). The resulting moss can then be used as dye of fertilizer. They also let you cut wheat and other grains more precisely, allowing you to harvest some crops without completely resetting them.

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
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
License Information
The entire source code is written by me and licensed under GNU LGPL v3. You can find the complete license information
in the supplied license file.
Textures for tools and moss items are made by Cap for this mod and licensed under CC BY-SA 3.0.
Textures for placed moss node and flower petals are by Vanessa Ezekowitz under CC BY-SA 4.0 for her plantlife modpack.
The sound effect for placing or breaking moss blocks is made by DrMinky under CC BY 3.0 and can be found on FreeSound.


Links: Downloads - Source Code
Last edited by TestificateMods on Mon Jun 01, 2020 16:44, edited 4 times in total.

cuthbertdoublebarrel
Member
Posts: 121
Joined: Tue Apr 14, 2020 16:03
GitHub: cuthbert

Re: [Mod] Scythes & Sickles [sickles] [1.0.0]

by cuthbertdoublebarrel » Post

excellent !! expecially "only break fully grown crops" i have crocodiles surrounding my veggi patch so i have no time to check whats ripe and whats not .
much appreciated adding these to my gardening chest ,
awaiting minetest hardcore mode .

User avatar
runs
Member
Posts: 1555
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: [Mod] Scythes & Sickles [sickles] [1.0.0]

by runs » Post

cool
Day 42 of the quarantine

Nordal
Member
Posts: 107
Joined: Mon Jul 30, 2018 15:46
GitHub: Nordall
Location: Germany

Re: [Mod] Scythes & Sickles [sickles] [1.0.0]

by Nordal » Post

I like the idea of providing scythe and sickle. I just tried your mod. I missed the mese and diamond variants. There are only steel and bronze versions of scythes and sickles in the inventory guide. The recipes are smart by the way. I'm using farming plus by TenPlus1. No bonemeal or any other of the optional depends. When planting seeds "by hand" they use to turn into a little plant immediatly. Unfortunately the bronze scythe I tried replanted seeds, but there grew nothing out of the seeds. Also the durability of the scythe is extremely short.

User avatar
TestificateMods
Member
Posts: 35
Joined: Sat Apr 11, 2020 02:09
GitHub: t-affeldt
In-game: Testificate

Re: [Mod] Scythes & Sickles [sickles] [1.0.0]

by TestificateMods » Post

Nordal wrote:
Wed May 27, 2020 02:06
I like the idea of providing scythe and sickle. I just tried your mod. I missed the mese and diamond variants. There are only steel and bronze versions of scythes and sickles in the inventory guide.
Yes, there are no mese and diamond variants right now. Just like the original farming mod, I decided to go for the mid-tier materials only. Wood and stone would be too cheap for what the tools offer (considering that you can also harvest crops manually), whereas there's not really a point in crafting out of more expensive materials (except for slight durability boosts maybe).
I'm using farming plus by TenPlus1. [...] When planting seeds "by hand" they use to turn into a little plant immediatly. Unfortunately the bronze scythe I tried replanted seeds, but there grew nothing out of the seeds.
I do not use farming plus so I have not tried that combination. It works fine with either MTG farming or farming_redo. I might look into that but that can take a while because it's not that high up on my priority list right now.
Also the durability of the scythe is extremely short.
If you consider how many crops they can harvest at the same time, the durability loss per crop really isn't that bad. They are a lot more durable than a sword of the same material (per crop). But I will look into that and check whether I need to tweak it.

Nordal
Member
Posts: 107
Joined: Mon Jul 30, 2018 15:46
GitHub: Nordall
Location: Germany

Re: [Mod] Scythes & Sickles [sickles] [1.0.0]

by Nordal » Post

I decided to go for the mid-tier materials only.
Ah, that's reasonable.
I do not use farming plus so I have not tried that combination. It works fine with either MTG farming or farming_redo.
Sorry, I use farming_redo by TenPlus1. I mixed words a little. Do the seeds stay seeds a while or do they immediatly change into plant's first growing level. And if they do not, how long does it take until they change into plants?
I would really like to make your mod work.
If you consider how many crops they can harvest at the same time, the durability loss per crop really isn't that bad. They are a lot more durable than a sword of the same material (per crop). But I will look into that and check whether I need to tweak it.
Ok, seeing it that way you're right. May it's possible to make the scythe getting slower because of loosing sharpness. Then you have to resharpen it with a stone, to make it fast again. The breakpoint then could be later. Just an idea, maybe to complicated to implement and not worth to go on thinking about.

User avatar
TestificateMods
Member
Posts: 35
Joined: Sat Apr 11, 2020 02:09
GitHub: t-affeldt
In-game: Testificate

Re: [Mod] Scythes & Sickles [sickles] [1.0.0]

by TestificateMods » Post

Nordal wrote:
Thu May 28, 2020 17:48
Sorry, I use farming_redo by TenPlus1. I mixed words a little.
Oh. In that case it's probably a mistake on my part. I'll check it out soon.
May it's possible to make the scythe getting slower because of loosing sharpness. Then you have to resharpen it with a stone, to make it fast again. The breakpoint then could be later.
That's a cool idea in general but not really specific to these tools. The same concept could also be used for swords, axes, and so on. Might be worth it's own mod.

User avatar
TestificateMods
Member
Posts: 35
Joined: Sat Apr 11, 2020 02:09
GitHub: t-affeldt
In-game: Testificate

Re: [Mod] Scythes & Sickles [sickles] [1.1.0]

by TestificateMods » Post

Nordal wrote:
Thu May 28, 2020 17:48
Sorry, I use farming_redo by TenPlus1. [...] I would really like to make your mod work.
I have updated the mod. It should now properly work with farming_redo.

Here is a list of changes:
  • scythes now properly plant first crop stage instead of seeds if farming_redo is used
  • mithril scythe from farming_redo now gets removed from creative inventory
  • scythes do not use up seeds if in creative mode
  • tools do not use up durability if in creative mode

Nordal
Member
Posts: 107
Joined: Mon Jul 30, 2018 15:46
GitHub: Nordall
Location: Germany

Re: [Mod] Scythes & Sickles [sickles] [1.1.0]

by Nordal » Post

In that case it's probably a mistake on my part. I'll check it out soon.
Thanks a lot for the fast adjustment! The scythe works fine now with the seeds of farming redo.

I just noticed that the steel scythe is called also bronze scythe in inventory.

By the way: How do you make this "Nordal wrote: ..." appear inside the quotes? I didn't manage to insert this little intro :)

User avatar
TestificateMods
Member
Posts: 35
Joined: Sat Apr 11, 2020 02:09
GitHub: t-affeldt
In-game: Testificate

Re: [Mod] Scythes & Sickles [sickles] [1.1.0]

by TestificateMods » Post

Nordal wrote:
Fri May 29, 2020 17:05
I just noticed that the steel scythe is called also bronze scythe in inventory.
Ah, damn. Thanks a lot for your reports. I was planning to add internationalization support, anyways. So I'm gonna correct this once I understand how intllib works. :D
By the way: How do you make this "Nordal wrote: ..." appear inside the quotes?
You can add a parameter to the quote tag like so:

Code: Select all

[quote=Username]...[/quote]
Alternatively, you can just press the button on the top right of the post you want to reply to. The one that says "Quote {username}" when you hover over it. That button will automatically embed the respective post into your reply. It will also add a link to the author's profile, the time of the post, and a little arrow that will take you to it.

User avatar
TestificateMods
Member
Posts: 35
Joined: Sat Apr 11, 2020 02:09
GitHub: t-affeldt
In-game: Testificate

Re: [Mod] Scythes & Sickles [sickles] [1.2.0]

by TestificateMods » Post

All right. This mod now supports language files. So far, only English and German are supported. But I'm happy to accept any pull requests that add additional languages.

Nordal
Member
Posts: 107
Joined: Mon Jul 30, 2018 15:46
GitHub: Nordall
Location: Germany

Re: [Mod] Scythes & Sickles [sickles] [1.1.0]

by Nordal » Post

TestificateMods wrote:
Fri May 29, 2020 17:33
Ah, damn. Thanks a lot for your reports. I was planning to add internationalization support, anyways. So I'm gonna correct this once I understand how intllib works. :D
There's support for gettext also as far as I know. I just realized that in code of several mods gettext is used for internationalization. Some even change from intllib to gettext. So I guess it has some advantages. More I don't know.
You can add a parameter to the quote tag like so:

Code: Select all

[quote=Username]...[/quote]
Alternatively, you can just press the button on the top right of the post you want to reply to. The one that says "Quote {username}" when you hover over it. That button will automatically embed the respective post into your reply. It will also add a link to the author's profile, the time of the post, and a little arrow that will take you to it.
Cool. Thank you for the kind explanation! :)

User avatar
TestificateMods
Member
Posts: 35
Joined: Sat Apr 11, 2020 02:09
GitHub: t-affeldt
In-game: Testificate

Re: [Mod] Scythes & Sickles [sickles] [1.2.0]

by TestificateMods » Post

Nordal wrote:
Fri May 29, 2020 19:06
There's support for gettext also as far as I know. I just realized that in code of several mods gettext is used for internationalization. Some even change from intllib to gettext. So I guess it has some advantages. More I don't know.
Yes. I just found out about minetest.get_translator, so I just used that. It seems to be a bit more reliable as well.

Nordal
Member
Posts: 107
Joined: Mon Jul 30, 2018 15:46
GitHub: Nordall
Location: Germany

Re: [Mod] Scythes & Sickles [sickles] [1.2.0]

by Nordal » Post

Thank you for this nice and usefull mod!

User avatar
TestificateMods
Member
Posts: 35
Joined: Sat Apr 11, 2020 02:09
GitHub: t-affeldt
In-game: Testificate

Re: [Mod] Scythes & Sickles [sickles] [1.3.0]

by TestificateMods » Post

I have added gloopblocks as an optional dependency. If you use that mod then you can now harvest moss from mossy stones, stone bricks, and cobble roads as well. The crafting recipes also use moss instead of grass now.

ThorfinnS
Member
Posts: 231
Joined: Mon Feb 25, 2019 22:05
GitHub: ThorfinnS

Re: [Mod] Scythes & Sickles [sickles] [1.3.0]

by ThorfinnS » Post

How about adding an API so other mods could register their own plants/seeds? Cucina vegana comes to mind, but we've got a few others that are either ready for release or soon to be.

Farming NextGen or something like that would be a good model to use.

User avatar
TestificateMods
Member
Posts: 35
Joined: Sat Apr 11, 2020 02:09
GitHub: t-affeldt
In-game: Testificate

Re: [Mod] Scythes & Sickles [sickles] [1.3.0]

by TestificateMods » Post

ThorfinnS wrote:
Mon Jun 01, 2020 19:01
How about adding an API so other mods could register their own plants/seeds?
The scythes don't need an API. They work for every crop that gets registered in the farming or farming_redo mod.
You can simply create new scythes by setting sickles.use_scythe as the event handler for on_use and adding the tool to the scythe group. The group value then determines the range of the tool (the included ones use a value of 2). The optional scythe_uses group determines the tool's durability.

For the sickles, an API already exists. You can use sickles.register_cuttable(nodename, base, item) to register nodes that can be cleaned with a sickle. nodenames defines the cleanable node (like default:mossycobble), base the resulting node after cleaning (like default:cobble) and item the item that will be put in the player's inventory (like sickles:moss).

For trimmable grains (like wheat), there is also an API function called sickles.register_trimmable(node, base). The node defines the node that can be cut using the sickle (like farming:wheat_8). It will drop its loot like normal but will be overriden with the node defined as base (like farming:wheat_2).

If you want to register your own sickle then you can easily do so as well by simply adding your tool to the sickle. The group value is currently unused but you can determine the durability via the sickle_uses group.

Lastly, a vast amount of different mods, that can profit from the sickles, is already supported by design (including cucina vegana). Have a look at the optional dependencies for more information.

ThorfinnS
Member
Posts: 231
Joined: Mon Feb 25, 2019 22:05
GitHub: ThorfinnS

Re: [Mod] Scythes & Sickles [sickles] [1.3.0]

by ThorfinnS » Post

Oh, my bad. I had added this to an existing game that had [cucina_vegana], and had forgotten that it appears cv got broken trying to add [signs_bot] support. Which is odd, since I reported it. ;)

Haven't had the time to look into it yet, but it does things the same way cv does. Which, tbh, is not that bad. I prefer having to fertilize to get plants to grow. Might see how hard that would be to option into default [farming] and farming redo.

User avatar
TestificateMods
Member
Posts: 35
Joined: Sat Apr 11, 2020 02:09
GitHub: t-affeldt
In-game: Testificate

Re: [Mod] Scythes & Sickles [sickles] [1.3.0]

by TestificateMods » Post

ThorfinnS wrote:
Tue Jun 02, 2020 17:44
Haven't had the time to look into it yet, but it does things the same way cv does. Which, tbh, is not that bad. I prefer having to fertilize to get plants to grow.
Cucina Vegana just adds plants and cooking recipes. My mod just adds tools for harvesting. How plants grow is entirely dependent on the used farming mod. Although to be fair, I haven't seen one yet that has the behaviour you're looking for.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest