From 9107d124a8f914181a75081e355411e7a4a28bc6 Mon Sep 17 00:00:00 2001 From: Pyritie Date: Tue, 1 Jul 2025 01:12:38 +0100 Subject: [PATCH] cheese --- .../loot_tables/blocks/cheese_block.json | 32 +++++++------------ .../loot_tables/blocks/moon_cheese_ore.json | 12 ++++++- kubejs/server_scripts/ad_astra/data.js | 7 ++++ kubejs/startup_scripts/ad_astra/constants.js | 1 - 4 files changed, 29 insertions(+), 23 deletions(-) diff --git a/kubejs/data/ad_astra/loot_tables/blocks/cheese_block.json b/kubejs/data/ad_astra/loot_tables/blocks/cheese_block.json index b288b8a1d..f519ad61e 100644 --- a/kubejs/data/ad_astra/loot_tables/blocks/cheese_block.json +++ b/kubejs/data/ad_astra/loot_tables/blocks/cheese_block.json @@ -11,27 +11,17 @@ "entries": [ { "type": "minecraft:item", - "name": "firmalife:cheddar_wheel" - }, - { - "type": "minecraft:item", - "name": "firmalife:chevre_wheel" - }, - { - "type": "minecraft:item", - "name": "firmalife:rajya_metok_wheel" - }, - { - "type": "minecraft:item", - "name": "firmalife:gouda_wheel" - }, - { - "type": "minecraft:item", - "name": "firmalife:feta_wheel" - }, - { - "type": "minecraft:item", - "name": "firmalife:shosha_wheel" + "name": "ad_astra:cheese", + "functions": [ + { + "function": "minecraft:set_count", + "count": { + "min": 2, + "max": 5, + "type": "minecraft:uniform" + } + } + ] } ], "rolls": 1.0 diff --git a/kubejs/data/ad_astra/loot_tables/blocks/moon_cheese_ore.json b/kubejs/data/ad_astra/loot_tables/blocks/moon_cheese_ore.json index 7d4879d82..57728104f 100644 --- a/kubejs/data/ad_astra/loot_tables/blocks/moon_cheese_ore.json +++ b/kubejs/data/ad_astra/loot_tables/blocks/moon_cheese_ore.json @@ -11,7 +11,17 @@ "entries": [ { "type": "minecraft:item", - "name": "firmalife:food/shredded_cheese" + "name": "ad_astra:cheese", + "functions": [ + { + "function": "minecraft:set_count", + "count": { + "min": 1, + "max": 2, + "type": "minecraft:uniform" + } + } + ] } ], "rolls": 1.0 diff --git a/kubejs/server_scripts/ad_astra/data.js b/kubejs/server_scripts/ad_astra/data.js index e55b02f3f..08bdc5e7e 100644 --- a/kubejs/server_scripts/ad_astra/data.js +++ b/kubejs/server_scripts/ad_astra/data.js @@ -10,4 +10,11 @@ function registerTFCDataForAdAstra(event) { event.itemSize('ad_astra:tier_1_rover', 'very_large', 'very_heavy') event.itemSize('ad_astra:launch_pad', 'very_large', 'very_heavy') + + event.foodItem('ad_astra:cheese', food => { + food.hunger(4) + food.saturation(12) + food.dairy(5) + food.decayModifier(10) + }) } \ No newline at end of file diff --git a/kubejs/startup_scripts/ad_astra/constants.js b/kubejs/startup_scripts/ad_astra/constants.js index 91e3b8019..213f4d2bc 100644 --- a/kubejs/startup_scripts/ad_astra/constants.js +++ b/kubejs/startup_scripts/ad_astra/constants.js @@ -18,7 +18,6 @@ global.AD_ASTRA_DISABLED_ITEMS = 'ad_astra:water_pump', 'ad_astra:cryo_freezer', 'ad_astra:wrench', - 'ad_astra:cheese', 'ad_astra:cheese_block', 'ad_astra:photovoltaic_etrium_cell', 'ad_astra:photovoltaic_vesnium_cell',