species stuff and loot tables

This commit is contained in:
Pyritie 2025-06-17 20:44:24 +01:00
parent f646c46377
commit 62edf3929f
8 changed files with 98 additions and 4 deletions

View file

@ -0,0 +1,45 @@
{
"type": "minecraft:entity",
"pools": [
{
"name": "loot_pool",
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:rotten_flesh",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"max": 2,
"min": 1,
"type": "minecraft:uniform"
}
}
]
}
]
},
{
"name": "loot_pool",
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:bone",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"max": 6,
"min": 4,
"type": "minecraft:uniform"
}
}
]
}
]
}
]
}

View file

@ -52,8 +52,8 @@
{
"function": "minecraft:set_count",
"count": {
"max": 1,
"min": 0,
"max": 6,
"min": 4,
"type": "minecraft:uniform"
}
}

View file

@ -0,0 +1,42 @@
{
"type": "minecraft:entity",
"pools": [
{
"name": "loot_pool",
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"add": false,
"count": {
"type": "minecraft:uniform",
"max": 3.0,
"min": 1.0
},
"function": "minecraft:set_count"
}
],
"name": "minecraft:bone"
}
]
},
{
"name": "loot_pool",
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "species:birt_egg",
"conditions": [
{
"condition": "minecraft:random_chance",
"chance": 0.5
}
]
}
]
}
]
}

View file

@ -132,6 +132,7 @@ const registerAdAstraBlockTags = (event) => {
event.add('ad_astra:moon_stone_replaceables', 'tfc:rock/hardened/dacite')
event.add('minecraft:rabbits_spawnable_on', '#ad_astra:moon_stone_replaceables')
event.add('species:limpet_spawnable_on', '#ad_astra:moon_stone_replaceables')
event.add('tfc:can_landslide', 'ad_astra:moon_sand')
event.add('tfc:can_landslide', 'ad_astra:mars_sand')

View file

@ -226,6 +226,7 @@ ServerEvents.recipes(event => {
registerRnrRecipes(event)
registerSophisticatedBackpacksRecipes(event)
registerSimplylightRecipes(event)
registerSpeciesRecipes(event)
registerTFCRecipes(event)
registerTFCBetterBFRecipes(event)
registerTFCLunchBoxRecipes(event)

View file

@ -0,0 +1,5 @@
// priority: 0
function registerSpeciesRecipes(event) {
event.remove({ mod: 'species' })
}

View file

@ -26,7 +26,6 @@ const registerSpeciesItemTags = (event) => {
const DISABLED_ITEMS = [
'species:deepfish_bucket',
'species:birt_egg',
'species:bone_spike',
'species:ancient_pinecone',
'species:petrified_egg',
@ -44,4 +43,5 @@ const registerSpeciesItemTags = (event) => {
event.add('c:hidden_from_recipe_viewers', item)
})
event.add('forge:eggs', 'species:birt_egg')
}

View file

@ -885,7 +885,7 @@ global.TFC_MEAT_RECIPE_COMPONENTS = [
{ input: 'tfc:food/hyena', output: 'tfc:food/cooked_hyena', name: 'cooked_hyena' },
{ input: 'tfc:food/duck', output: 'tfc:food/cooked_duck', name: 'cooked_duck' },
{ input: 'tfc:food/chevon', output: 'tfc:food/cooked_chevon', name: 'cooked_chevon' },
{ input: 'minecraft:egg', output: 'tfc:food/cooked_egg', name: 'cooked_egg' },
{ input: '#forge:eggs', output: 'tfc:food/cooked_egg', name: 'cooked_egg' },
];
global.TFC_QUERN_POWDER_RECIPE_COMPONENTS = [