Compare commits

...

5 commits

Author SHA1 Message Date
Mrbysco
75fb3398c6 Update CHANGELOG.md 2024-11-02 15:25:44 +01:00
Mrbysco
aa013e8433 Fix wrong block in structure (Fixes #1426) 2024-11-02 15:17:18 +01:00
Mrbysco
27e954bbe8 Update CHANGELOG.md 2024-11-02 15:04:10 +01:00
Mrbysco
48cd171b09 Change the sound type of the crystal related blocks
Implements #1427
2024-11-02 15:03:44 +01:00
Mrbysco
3a2f298e64 Setup compostables and furnace fuel datamap (Fixes #1431) 2024-11-02 15:00:44 +01:00
9 changed files with 82 additions and 2 deletions

View file

@ -3,6 +3,10 @@
* 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
* Change the sound type of crystal blocks / Clusters
* Allow seeds and crops to be composted
* Add the tiny coal and charcoal to the furnace fuel datamap
* Fix one of the Engineer House blocks being the wrong block
# 1.3.7+mc1.21.1
* Added recipes for AA crops in the IE cloche.

View file

@ -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

View file

@ -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
}
}
}

View file

@ -0,0 +1,10 @@
{
"values": {
"actuallyadditions:tiny_charcoal": {
"burn_time": 200
},
"actuallyadditions:tiny_coal": {
"burn_time": 200
}
}
}

View file

@ -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"))

View file

@ -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);
}
}

View file

@ -11,12 +11,13 @@
package de.ellpeck.actuallyadditions.mod.blocks;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.block.SoundType;
public class BlockCrystal extends ActuallyBlock {
private final boolean isEmpowered;
public BlockCrystal(boolean isEmpowered) {
super(ActuallyBlocks.defaultPickProps());
super(ActuallyBlocks.defaultPickProps().sound(SoundType.AMETHYST));
this.isEmpowered = isEmpowered;
}

View file

@ -45,7 +45,7 @@ public class CrystalClusterBlock extends FullyDirectionalBlock {
super(Block.Properties.of()
.instrument(NoteBlockInstrument.HAT)
.lightLevel((e) -> 7)
.sound(SoundType.GLASS)
.sound(SoundType.AMETHYST_CLUSTER)
.noOcclusion()
.strength(0.25f, 1.0f));
}