[Mod] Blocks of food [v1] [foodblocks]

Post Reply
User avatar
Blockhead
Member
Posts: 65
Joined: Wed Jul 17, 2019 10:14
GitHub: Montandalar
In-game: Blockhead
Location: Land Down Under

[Mod] Blocks of food [v1] [foodblocks]

by Blockhead » Post

Foodblocks for Minetest

Image

This mod adds large blocks for various types of food growable with the farming, farming_redo & farming_undo, and ethereal mods for minetest.

Q: Isn't this a bit silly? What should I do with these blocks?

A: Yes, very silly. You could use them to build a house if you really wanted.

Installation
Downloads Download the source from my GitHub.

Foodblocks requires Minetest 5 as it uses the translation feature built in to that version, but you could easily backport it to intllib on 0.4.x if you direly need to keep using that version.

This mod depends on farming, but that can be provided by the farming mod installed with Minetest Game (this gives only apples and blueberries), Tenplus1's farming_redo or Felfa's farming_undo fork of farming_redo. It will detect which version you have installed and register the appropriate nodes.

There is an optional dependency on ethereal which will register blocks from the edible plants of ethereal.

Recipes

All of these blocks are crafting by filling the 3x3 crafting grid with the appropriate harvested plant.

Configuration

Since blueberries were introduced to minetest_game, but already existed in farming, this mod lets you decide what you want the blueberry blocks to drop: default blueberries, wild blueberries (from farming) or the type they were crafted from. See settingstypes.txt and the in-game configuration menu.

API

You can register your own food blocks in your mod with the external API table `foodblocks`. Read the source for more information. Contributions back to this mod are welcome as well depending on how you want mod dependencies to work.

Licences

(C) 2021 Blockhead unless otherwise specified

The code of this mod is licensed under the GNU Affero General Public License, version 3, available from the GNU Project. This means any modifications or forks you make to the mod and use on a minetest server have to be published online. Read the AGPL online here.

The art assets of this mod are licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License (CC BY-SA 3.0). View this licence online here.
Attachments
screenshot.jpg
(477.01 KiB) Not downloaded yet
Last edited by Blockhead on Thu Feb 04, 2021 15:13, edited 2 times in total.

User avatar
ywwv
Member
Posts: 105
Joined: Mon Jan 18, 2021 11:51

Re: [mod] Blocks of food [foodblocks]

by ywwv » Post

im going to buyld a house and then eat it

Ignaramico
Member
Posts: 77
Joined: Fri Sep 04, 2020 21:23
GitHub: ignaramico

Re: [Mod] Blocks of food [v1] [foodblocks]

by Ignaramico » Post

noe if you misplace a block, you can eat it to scare the others xD

User avatar
ywwv
Member
Posts: 105
Joined: Mon Jan 18, 2021 11:51

Re: [Mod] Blocks of food [v1] [foodblocks]

by ywwv » Post

Ignaramico wrote:
Fri Feb 05, 2021 23:18
noe if you misplace a block, you can eat it to scare the others xD
they will tremble be fore me . I will be the state .

Post Reply

Who is online

Users browsing this forum: twoelk and 5 guests