-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update to 1.20 / 1.20.1 - Replace dead mod 'Craftable Lava' - Replace dead mod 'Iron from the Earth' - Add support for modded stone via c:stone
- Loading branch information
1 parent
2e92be4
commit 3dbe95e
Showing
24 changed files
with
239 additions
and
96 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
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
8 changes: 4 additions & 4 deletions
8
src/main/java/net/gnomecraft/skysthelimit/data/SkysTheLimitBlockLootTableProvider.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
23 changes: 18 additions & 5 deletions
23
src/main/java/net/gnomecraft/skysthelimit/data/SkysTheLimitBlockTagProvider.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 |
---|---|---|
@@ -1,19 +1,32 @@ | ||
package net.gnomecraft.skysthelimit.data; | ||
|
||
import net.fabricmc.fabric.api.datagen.v1.FabricDataGenerator; | ||
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput; | ||
import net.fabricmc.fabric.api.datagen.v1.provider.FabricTagProvider; | ||
import net.gnomecraft.skysthelimit.block.SkysTheLimitBlocks; | ||
import net.minecraft.tag.BlockTags; | ||
import net.gnomecraft.skysthelimit.tag.SkysTheLimitBlockTags; | ||
import net.minecraft.block.Blocks; | ||
import net.minecraft.registry.RegistryWrapper; | ||
import net.minecraft.registry.tag.BlockTags; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
public class SkysTheLimitBlockTagProvider extends FabricTagProvider.BlockTagProvider { | ||
public SkysTheLimitBlockTagProvider(FabricDataGenerator dataGenerator) { | ||
super(dataGenerator); | ||
public SkysTheLimitBlockTagProvider(FabricDataOutput output, CompletableFuture<RegistryWrapper.WrapperLookup> registriesFuture) { | ||
super(output, registriesFuture); | ||
} | ||
|
||
@Override | ||
protected void generateTags() { | ||
protected void configure(RegistryWrapper.WrapperLookup wrapperLookup) { | ||
// basic block tags | ||
this.getOrCreateTagBuilder(BlockTags.PICKAXE_MINEABLE) | ||
.add(SkysTheLimitBlocks.FOG_CATCHER_BLOCK); | ||
|
||
// Make sure vanilla overworld base stone is in c:stone | ||
this.getOrCreateTagBuilder(SkysTheLimitBlockTags.COMMON_STONE) | ||
.add(Blocks.STONE) | ||
.add(Blocks.DEEPSLATE) | ||
.add(Blocks.ANDESITE) | ||
.add(Blocks.DIORITE) | ||
.add(Blocks.GRANITE); | ||
} | ||
} |
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
22 changes: 18 additions & 4 deletions
22
src/main/java/net/gnomecraft/skysthelimit/data/SkysTheLimitItemTagProvider.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 |
---|---|---|
@@ -1,21 +1,35 @@ | ||
package net.gnomecraft.skysthelimit.data; | ||
|
||
import eu.midnightdust.motschen.rocks.RocksMain; | ||
import net.fabricmc.fabric.api.datagen.v1.FabricDataGenerator; | ||
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput; | ||
import net.fabricmc.fabric.api.datagen.v1.provider.FabricTagProvider; | ||
import net.gnomecraft.skysthelimit.tag.SkysTheLimitBlockTags; | ||
import net.gnomecraft.skysthelimit.tag.SkysTheLimitItemTags; | ||
import net.minecraft.registry.RegistryWrapper; | ||
import net.minecraft.registry.tag.ItemTags; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
public class SkysTheLimitItemTagProvider extends FabricTagProvider.ItemTagProvider { | ||
public SkysTheLimitItemTagProvider(FabricDataGenerator dataGenerator) { | ||
super(dataGenerator); | ||
public SkysTheLimitItemTagProvider(FabricDataOutput output, CompletableFuture<RegistryWrapper.WrapperLookup> completableFuture, @Nullable BlockTagProvider blockTagProvider) { | ||
super(output, completableFuture, blockTagProvider); | ||
} | ||
|
||
@Override | ||
protected void generateTags() { | ||
protected void configure(RegistryWrapper.WrapperLookup wrapperLookup) { | ||
// Make sure This Rocks! splitters are in c:stones | ||
this.getOrCreateTagBuilder(SkysTheLimitItemTags.COMMON_STONES) | ||
.add(RocksMain.CobblestoneSplitter) | ||
.add(RocksMain.AndesiteSplitter) | ||
.add(RocksMain.DioriteSplitter) | ||
.add(RocksMain.GraniteSplitter); | ||
|
||
// Copy c:stone from the block tag | ||
this.copy(SkysTheLimitBlockTags.COMMON_STONE, SkysTheLimitItemTags.COMMON_STONE); | ||
|
||
// Add c:stone to the stone tool crafting materials | ||
this.getOrCreateTagBuilder(ItemTags.STONE_TOOL_MATERIALS) | ||
.addTag(SkysTheLimitItemTags.COMMON_STONE); | ||
} | ||
} |
Oops, something went wrong.