-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathseeds.lua
More file actions
35 lines (31 loc) · 1.82 KB
/
seeds.lua
File metadata and controls
35 lines (31 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--[[
X Farming. Extends Luanti farming mod with new plants, crops and ice fishing.
Copyright (C) 2025 SaKeL
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to juraj.vajda@gmail.com
--]]
-- Register farming items as dungeon loot
if core.global_exists('dungeon_loot') then
dungeon_loot.register({
{ name = 'x_farming:seed_obsidian_wart', chance = 0.3, count = { 1, 2 } },
{ name = 'x_farming:seed_pumpkin', chance = 0.4, count = { 1, 4 } },
{ name = 'x_farming:seed_beetroot', chance = 0.4, count = { 1, 4 } },
{ name = 'x_farming:seed_carrot', chance = 0.4, count = { 1, 4 } },
{ name = 'x_farming:seed_potato', chance = 0.4, count = { 1, 4 } },
{ name = 'x_farming:seed_coffee', chance = 0.4, count = { 1, 4 } },
{ name = 'x_farming:seed_corn', chance = 0.4, count = { 1, 4 } },
{ name = 'x_farming:seed_melon', chance = 0.4, count = { 1, 4 } },
{ name = 'x_farming:cocoa_bean', chance = 0.4, count = { 1, 4 } },
{ name = 'x_farming:large_cactus_with_fruit_seedling', chance = 0.4, count = { 1, 1 } },
{ name = 'x_farming:kiwi_sapling', chance = 0.4, count = { 1, 1 } },
{ name = 'x_farming:seed_strawberry', chance = 0.4, count = { 1, 4 } },
})
end