Browse Source

add chocolate block

pull/18/head
TenPlus1 9 months ago
parent
commit
f187396d25
3 changed files with 26 additions and 1 deletions
  1. +1
    -1
      README.md
  2. +25
    -0
      crops/cocoa.lua
  3. BIN
      textures/farming_chocolate_block.png

+ 1
- 1
README.md View File

@@ -13,7 +13,7 @@ This mod works by adding your new plant to the {growing=1} group and numbering t

### Changelog:

- 1.42 - Soil needs water to be present within 3 blocks horizontally and 1 below to make wet soil, Jack 'o Lanterns now check protection.
- 1.42 - Soil needs water to be present within 3 blocks horizontally and 1 below to make wet soil, Jack 'o Lanterns now check protection, add chocolate block
- 1.41 - Each crop has it's own spawn rate (can be changed in farming.conf)
- 1.40 - Added Mithril Scythe to quick harvest and replant crops on right-click. Added Hoe's for MoreOres with Toolrank support.
- 1.39 - Added Rice, Rye and Oats thanks to Ademants Grains mod. Added Jaffa Cake and multigrain bread.

+ 25
- 0
crops/cocoa.lua View File

@@ -108,6 +108,31 @@ minetest.register_craft( {
}
})

-- chocolate block
minetest.register_node("farming:chocolate_block", {
description = S("Chocolate Block"),
tiles = {"farming_chocolate_block.png"},
is_ground_content = false,
groups = {cracky = 2, oddly_breakable_by_hand = 2},
sounds = default.node_sound_stone_defaults(),
})

minetest.register_craft({
output = "farming:chocolate_block 3",
recipe = {
{"farming:chocolate_dark", "farming:chocolate_dark", "farming:chocolate_dark"},
{"farming:chocolate_dark", "farming:chocolate_dark", "farming:chocolate_dark"},
{"farming:chocolate_dark", "farming:chocolate_dark", "farming:chocolate_dark"},
}
})

minetest.register_craft({
output = "farming:chocolate_dark 9",
recipe = {
{"farming:chocolate_block"},
}
})

-- cocoa definition
local crop_def = {
drawtype = "plantlike",

BIN
textures/farming_chocolate_block.png View File

Before After
Width: 16  |  Height: 16  |  Size: 144B

Loading…
Cancel
Save