Customization
Editing existing content
By default, Little Joys ships with event "recipes" for all Vanilla content - that means dig spots for most naturally generated blocks, drop rushes for most crops, gold rushes for most ores and fishing spots on water.
These recipes can be manipulated through data packs or other customization mods just like any other recipe.
You can find the default recipes in the GitHub repository.
Additionally, the mod comes with loot tables for all dig spots and fishing spots, also found on the GitHub repository for reference.
Adding additional content
You can also add additional recipes in the same manner as above. Recipes can be weighted and the mod will randomly pick one that matches for the given location.
Dig Spots
{
"type": "littlejoys:dig_spot",
"eventCondition": {
"type": "above_state",
"state": {
"Name": "minecraft:sand"
}
},
"lootTable": "littlejoys:dig_spot/sand",
"weight": 1
}
Fishing Spots
{
"type": "littlejoys:fishing_spot",
"eventCondition": {
"type": "all",
"conditions": [
{
"type": "above_fluid_source"
},
{
"type": "can_see_sky"
}
]
},
"lootTable": "littlejoys:fishing_spot/water",
"weight": 1
}
Drop Rushes
{
"type": "littlejoys:drop_rush",
"eventCondition": {
"type": "is_state",
"state": {
"Name": "minecraft:wheat",
"Properties": {
"age": "7"
}
}
},
"lootTable": "minecraft:blocks/wheat",
"chanceMultiplier": 1.0,
"rolls": 8,
"seconds": 12.5,
"range": 8,
"weight": 1
}
Gold Rushes
{
"type": "littlejoys:gold_rush",
"eventCondition": {
"type": "is_state",
"state": {
"Name": "minecraft:coal_ore"
}
},
"lootTable": "minecraft:blocks/coal_ore",
"chanceMultiplier": 0.5,
"seconds": 7.0,
"maxDropsPerSecond": -1,
"weight": 1
}