mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-25 00:18:34 +01:00
Setup compostables and furnace fuel datamap (Fixes #1431)
This commit is contained in:
parent
e048a2a30b
commit
3a2f298e64
6 changed files with 77 additions and 0 deletions
|
@ -3,6 +3,8 @@
|
|||
* Add the stairs, slabs and walls to the appropriate block/item tags
|
||||
* Change the sound type of the casing blocks to match material used in the recipe
|
||||
* Change the sound type of some machines to use the metal sound
|
||||
* Allow seeds and crops to be composted
|
||||
* Add the tiny coal and charcoal to the furnace fuel datamap
|
||||
|
||||
# 1.3.7+mc1.21.1
|
||||
* Added recipes for AA crops in the IE cloche.
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
// 1.21.1 2024-11-02T14:59:13.7640446 Data Maps
|
||||
9f93ec7e2a943d73ede3af027951495c9939bafc data/neoforge/data_maps/item/compostables.json
|
||||
3141fd94b43dbb67fc8814b371114c571bc07b58 data/neoforge/data_maps/item/furnace_fuels.json
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"values": {
|
||||
"actuallyadditions:canola": {
|
||||
"chance": 0.65
|
||||
},
|
||||
"actuallyadditions:canola_seeds": {
|
||||
"chance": 0.3
|
||||
},
|
||||
"actuallyadditions:coffee_beans": {
|
||||
"chance": 0.65
|
||||
},
|
||||
"actuallyadditions:flax_seeds": {
|
||||
"chance": 0.65
|
||||
},
|
||||
"actuallyadditions:rice": {
|
||||
"chance": 0.65
|
||||
},
|
||||
"actuallyadditions:rice_seeds": {
|
||||
"chance": 0.3
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"values": {
|
||||
"actuallyadditions:tiny_charcoal": {
|
||||
"burn_time": 200
|
||||
},
|
||||
"actuallyadditions:tiny_coal": {
|
||||
"burn_time": 200
|
||||
}
|
||||
}
|
||||
}
|
|
@ -66,6 +66,8 @@ public class ActuallyAdditionsData {
|
|||
generator.addProvider(true, new MiningLensGenerator(packOutput, lookupProvider));
|
||||
generator.addProvider(true, new CoffeeIngredientGenerator(packOutput, lookupProvider));
|
||||
|
||||
generator.addProvider(true, new DataMapGenerator(packOutput, lookupProvider));
|
||||
|
||||
generator.addProvider(true, new SoundsGenerator(packOutput, helper));
|
||||
|
||||
if (ModList.get().isLoaded("patchouli"))
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
package de.ellpeck.actuallyadditions.data;
|
||||
|
||||
import de.ellpeck.actuallyadditions.mod.items.ActuallyItems;
|
||||
import net.minecraft.core.HolderLookup.Provider;
|
||||
import net.minecraft.data.PackOutput;
|
||||
import net.neoforged.neoforge.common.data.DataMapProvider;
|
||||
import net.neoforged.neoforge.registries.datamaps.builtin.Compostable;
|
||||
import net.neoforged.neoforge.registries.datamaps.builtin.FurnaceFuel;
|
||||
import net.neoforged.neoforge.registries.datamaps.builtin.NeoForgeDataMaps;
|
||||
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
public class DataMapGenerator extends DataMapProvider {
|
||||
public DataMapGenerator(PackOutput packOutput, CompletableFuture<Provider> lookupProvider) {
|
||||
super(packOutput, lookupProvider);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void gather() {
|
||||
final float SEEDS = 0.3F;
|
||||
final float CROPS = 0.65F;
|
||||
|
||||
final var compostables = builder(NeoForgeDataMaps.COMPOSTABLES);
|
||||
compostables.add(ActuallyItems.RICE_SEEDS, new Compostable(SEEDS), false);
|
||||
compostables.add(ActuallyItems.COFFEE_BEANS, new Compostable(SEEDS), false);
|
||||
compostables.add(ActuallyItems.CANOLA_SEEDS, new Compostable(SEEDS), false);
|
||||
compostables.add(ActuallyItems.FLAX_SEEDS, new Compostable(SEEDS), false);
|
||||
|
||||
compostables.add(ActuallyItems.RICE, new Compostable(CROPS), false);
|
||||
compostables.add(ActuallyItems.COFFEE_BEANS, new Compostable(CROPS), false);
|
||||
compostables.add(ActuallyItems.CANOLA, new Compostable(CROPS), false);
|
||||
compostables.add(ActuallyItems.FLAX_SEEDS, new Compostable(CROPS), false);
|
||||
|
||||
final var furnaceFuels = builder(NeoForgeDataMaps.FURNACE_FUELS);
|
||||
furnaceFuels.add(ActuallyItems.TINY_COAL, new FurnaceFuel(200), false);
|
||||
furnaceFuels.add(ActuallyItems.TINY_CHARCOAL, new FurnaceFuel(200), false);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue