Go to file
Blockhead 9fe877725c Fix creative mode check for empty player
For some reason nil used to work fine, now it has to be an empty string.
2022-08-09 00:50:56 +10:00
locale Update German translation for MCL2 and README 2022-04-09 18:49:21 +10:00
textures Add blocks for apple, golden apple, ench. gapple 2022-04-09 18:13:51 +10:00
README.md Update German translation for MCL2 and README 2022-04-09 18:49:21 +10:00
depends.txt Initial version: Corn, apple, cabbages 2021-02-02 18:32:21 +11:00
farming.lua Fix issue with drops not working correctly 2022-02-27 20:02:36 +11:00
init.lua Fix creative mode check for empty player 2022-08-09 00:50:56 +10:00
mcl_farming.lua Update German translation for MCL2 and README 2022-04-09 18:49:21 +10:00
mod.conf Support Mineclone2 2022-02-27 19:11:33 +11:00
screenshot.jpg Add a README with screenshot 2021-02-04 19:28:00 +11:00
screenshot.png Add small screenshot for in-game mod manager 2022-04-09 18:56:03 +10:00
settingtypes.txt Add config to drop selves 2022-02-27 19:11:08 +11:00

README.md

Foodblocks for Minetest

A screenshot of all the food blocks in the mod lined up in a row with their constituent plants in front of them.

This mod adds large blocks for various types of food from the farming, farming_redo & farming_undo, and ethereal mods for Minetest Game, and for the mcl_farming in Mineclone2. They are crafted out of 9 of the original food item and each one comes with a custom texture like a giant cube version of that block.

FAQ

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.

Q: Does this mean plants will now grow into blocks?

A: No, you have to craft the foodblocks out of plants you have already harvested.

Q: What do the foodblocks drop?

A: 9 items by default, but see the section on configuration.

Installation

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; or with mcl_farming which is included with Mineclone2. 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

You can configure whether foodblocks will drop themselves directly, or 9 of the item that they were crafted out of. The default is to drop 9 of the item, similarly to melons or pumpkins in Mineclone. Regardless of the setting, the foodblocks will always drop themselves directly if the game is in creative mode, or in Mineclone2 when using a silk touch pickaxe. The check for creative applies to global creative mode only, not for players with the creative privilege.

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 for more information.

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-2022 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,