-
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.
- Loading branch information
1 parent
fd13da7
commit 3dc5c3c
Showing
16 changed files
with
129 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,21 @@ | ||
# Sets default memory used for gradle commands. Can be overridden by user or command line properties. | ||
org.gradle.jvmargs=-Xmx1G | ||
org.gradle.daemon=false | ||
org.gradle.debug=false | ||
|
||
#read more on this at https://github.com/neoforged/NeoGradle/blob/NG_7.0/README.md#apply-parchment-mappings | ||
# you can also find the latest versions at: https://parchmentmc.org/docs/getting-started | ||
neogradle.subsystems.parchment.minecraftVersion=1.20.6 | ||
neogradle.subsystems.parchment.mappingsVersion=2024.05.01 | ||
# Environment Properties | ||
# You can find the latest versions here: https://projects.neoforged.net/neoforged/neoforge | ||
# The Minecraft version must agree with the Neo version to get a valid artifact | ||
minecraft_version=1.21 | ||
# The Minecraft version range can use any release version of Minecraft as bounds. | ||
# Snapshots, pre-releases, and release candidates are not guaranteed to sort properly | ||
# as they do not follow standard versioning conventions. | ||
minecraft_version_range=[1.21,1.21.1) | ||
# The Neo version must agree with the Minecraft version to get a valid artifact | ||
neo_version=21.0.83-beta | ||
# The Neo version range can use any version of Neo as bounds | ||
neo_version_range=[21.0.0-beta,) | ||
# The loader version range can only use the major version of FML as bounds | ||
loader_version_range=[4,) | ||
|
||
## Mod Properties | ||
|
||
# The unique mod identifier for the mod. Must be lowercase in English locale. Must fit the regex [a-z][a-z0-9_]{1,63} | ||
# Must match the String constant located in the main mod class annotated with @Mod. | ||
mod_id=seidr | ||
# The human-readable display name for the mod. | ||
mod_name=Seidr | ||
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. | ||
mod_license=All Rights Reserved | ||
# The mod version. See https://semver.org/ | ||
mod_version=0.1 | ||
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. | ||
# This should match the base package used for the mod sources. | ||
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html | ||
mod_group_id=com.github.darksonic300.seidr | ||
# The authors of the mod. This is a simple text string that is used for display purposes in the mod list. | ||
mod_authors=darksonic300 | ||
# The description of the mod. This is a simple multiline text string that is used for display purposes in the mod list. | ||
mod_description=Example mod description.\nNewline characters can be used and will be replaced properly. | ||
mod_description=Seidr description.\nI'll write something here eventually. |
1 change: 1 addition & 0 deletions
1
src/generated/resources/.cache/18d91e1d75546dda1930619adba367f05d92c6d7
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 @@ | ||
// 1.21 2024-07-26T21:07:46.567437 Tags for minecraft:block mod id seidr |
3 changes: 3 additions & 0 deletions
3
src/generated/resources/.cache/44bcb3fa4782ab331fa3fc60c0915c7129ecea34
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,3 @@ | ||
// 1.21 2024-07-26T21:07:46.564445 Seidr Item Tags | ||
5640e882f4a96a771dd3b110bf99c88e88ce3c70 data/seidr/tags/item/scrolls.json | ||
c90aa8c79e90cd4dc8a6cb9ddbe0dc500832eb40 data/seidr/tags/item/tablets.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
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
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,12 @@ | ||
{ | ||
"values": [ | ||
"seidr:incomplete_undead_scroll", | ||
"seidr:damaged_undead_scroll", | ||
"seidr:complete_undead_scroll", | ||
"seidr:effect_remove_scroll", | ||
"seidr:incomplete_resistance_scroll", | ||
"seidr:damaged_resistance_scroll", | ||
"seidr:complete_resistance_scroll", | ||
"seidr:sound_blast_scroll" | ||
] | ||
} |
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,12 @@ | ||
{ | ||
"values": [ | ||
"seidr:incomplete_undead_tablet", | ||
"seidr:damaged_undead_tablet", | ||
"seidr:complete_undead_tablet", | ||
"seidr:effect_remove_tablet", | ||
"seidr:incomplete_resistance_tablet", | ||
"seidr:damaged_resistance_tablet", | ||
"seidr:complete_resistance_tablet", | ||
"seidr:sound_blast_tablet" | ||
] | ||
} |
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
21 changes: 21 additions & 0 deletions
21
src/main/java/com/github/darksonic300/seidr/datagen/tags/SeidrBlockTagData.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,21 @@ | ||
package com.github.darksonic300.seidr.datagen.tags; | ||
|
||
import com.github.darksonic300.seidr.Seidr; | ||
import net.minecraft.core.HolderLookup; | ||
import net.minecraft.data.PackOutput; | ||
import net.neoforged.neoforge.common.data.BlockTagsProvider; | ||
import net.neoforged.neoforge.common.data.ExistingFileHelper; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
public class SeidrBlockTagData extends BlockTagsProvider { | ||
public SeidrBlockTagData(PackOutput output, CompletableFuture<HolderLookup.Provider> lookupProvider, @Nullable ExistingFileHelper existingFileHelper) { | ||
super(output, lookupProvider, Seidr.MODID, existingFileHelper); | ||
} | ||
|
||
@Override | ||
protected void addTags(HolderLookup.Provider pProvider) { | ||
|
||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
src/main/java/com/github/darksonic300/seidr/datagen/tags/SeidrItemTagData.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,42 @@ | ||
package com.github.darksonic300.seidr.datagen.tags; | ||
|
||
import com.github.darksonic300.seidr.Seidr; | ||
import com.github.darksonic300.seidr.item.SeidrItems; | ||
import com.github.darksonic300.seidr.item.SeidrScrollItems; | ||
import net.minecraft.core.HolderLookup; | ||
import net.minecraft.data.PackOutput; | ||
import net.minecraft.data.tags.ItemTagsProvider; | ||
import net.minecraft.world.item.Item; | ||
import net.minecraft.world.level.block.Block; | ||
import net.neoforged.neoforge.registries.DeferredHolder; | ||
|
||
import javax.annotation.Nonnull; | ||
import java.util.Collection; | ||
import java.util.concurrent.CompletableFuture; | ||
|
||
public class SeidrItemTagData extends ItemTagsProvider { | ||
public SeidrItemTagData(PackOutput pOutput, CompletableFuture<HolderLookup.Provider> pLookupProvider, CompletableFuture<TagLookup<Block>> pBlockTags) { | ||
super(pOutput, pLookupProvider, pBlockTags); | ||
} | ||
|
||
@Nonnull | ||
@Override | ||
public String getName() { | ||
return "Seidr Item Tags"; | ||
} | ||
|
||
@Override | ||
protected void addTags(HolderLookup.Provider pProvider) { | ||
IntrinsicTagAppender<Item> scrollTag = this.tag(SeidrTags.Items.SCROLLS); | ||
IntrinsicTagAppender<Item> tabletTag = this.tag(SeidrTags.Items.TABLETS); | ||
Collection<DeferredHolder<Item, ? extends Item>> scrollEntries = SeidrScrollItems.SCROLL_ITEMS.getEntries(); | ||
Collection<DeferredHolder<Item, ? extends Item>> tabletEntries = SeidrScrollItems.TABLET_ITEMS.getEntries(); | ||
|
||
for (DeferredHolder<Item, ? extends Item> item : scrollEntries) | ||
scrollTag.add(item.get()); | ||
|
||
for (DeferredHolder<Item, ? extends Item> item : tabletEntries) | ||
tabletTag.add(item.get()); | ||
|
||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/com/github/darksonic300/seidr/datagen/tags/SeidrTags.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,18 @@ | ||
package com.github.darksonic300.seidr.datagen.tags; | ||
|
||
import com.github.darksonic300.seidr.Seidr; | ||
import net.minecraft.core.registries.Registries; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.tags.TagKey; | ||
import net.minecraft.world.item.Item; | ||
|
||
public class SeidrTags { | ||
public static class Items { | ||
public static final TagKey<Item> SCROLLS = tag("scrolls"); | ||
public static final TagKey<Item> TABLETS = tag("tablets"); | ||
|
||
private static TagKey<Item> tag(String name) { | ||
return TagKey.create(Registries.ITEM, ResourceLocation.fromNamespaceAndPath(Seidr.MODID, name)); | ||
} | ||
} | ||
} |