-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70b5050
commit 04f84b6
Showing
5 changed files
with
67 additions
and
17 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
src/generated/resources/.cache/e0d3d0b8d9c807675613821fa865a35f707cd83f
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// 1.20.4 2024-02-29T22:48:41.221262 Data Maps | ||
82bdfaf84557680cbc3e67eec4ada083e2b21591 data/neoforge/data_maps/item/compostables.json |
28 changes: 28 additions & 0 deletions
28
src/generated/resources/data/neoforge/data_maps/item/compostables.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"values": { | ||
"uselessmod:blue_rose": { | ||
"chance": 0.65 | ||
}, | ||
"uselessmod:coffee_beans": { | ||
"chance": 0.65 | ||
}, | ||
"uselessmod:coffee_seeds": { | ||
"chance": 0.3 | ||
}, | ||
"uselessmod:red_rose": { | ||
"chance": 0.65 | ||
}, | ||
"uselessmod:useless_oak_sapling": { | ||
"chance": 0.3 | ||
}, | ||
"uselessmod:useless_rose": { | ||
"chance": 0.65 | ||
}, | ||
"uselessmod:useless_wheat": { | ||
"chance": 0.65 | ||
}, | ||
"uselessmod:useless_wheat_seeds": { | ||
"chance": 0.3 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/main/java/net/themcbrothers/uselessmod/data/UselessDataMapsProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package net.themcbrothers.uselessmod.data; | ||
|
||
import net.minecraft.core.HolderLookup; | ||
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.NeoForgeDataMaps; | ||
import net.themcbrothers.uselessmod.init.ModBlocks; | ||
import net.themcbrothers.uselessmod.init.ModItems; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
public class UselessDataMapsProvider extends DataMapProvider { | ||
public UselessDataMapsProvider(PackOutput packOutput, CompletableFuture<HolderLookup.Provider> lookupProvider) { | ||
super(packOutput, lookupProvider); | ||
} | ||
|
||
@Override | ||
protected void gather() { | ||
//noinspection deprecation | ||
this.builder(NeoForgeDataMaps.COMPOSTABLES) | ||
.add(ModBlocks.USELESS_OAK_SAPLING.asItem().builtInRegistryHolder(), new Compostable(0.3F), false) | ||
.add(ModItems.USELESS_WHEAT_SEEDS.asItem().builtInRegistryHolder(), new Compostable(0.3F), false) | ||
.add(ModItems.COFFEE_SEEDS.asItem().builtInRegistryHolder(), new Compostable(0.3F), false) | ||
.add(ModBlocks.RED_ROSE.asItem().builtInRegistryHolder(), new Compostable(0.65F), false) | ||
.add(ModBlocks.BLUE_ROSE.asItem().builtInRegistryHolder(), new Compostable(0.65F), false) | ||
.add(ModBlocks.USELESS_ROSE.asItem().builtInRegistryHolder(), new Compostable(0.65F), false) | ||
.add(ModItems.USELESS_WHEAT.asItem().builtInRegistryHolder(), new Compostable(0.65F), false) | ||
.add(ModItems.COFFEE_BEANS.asItem().builtInRegistryHolder(), new Compostable(0.65F), false) | ||
; | ||
} | ||
} |