mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 07:13:28 +01:00
Add block/item tags for the crops/ores
This commit is contained in:
parent
e6c8af19af
commit
1d581fc120
24 changed files with 163 additions and 2 deletions
|
@ -1,6 +1,10 @@
|
|||
// 1.20.4 2024-03-04T22:51:31.6144307 Block Tags
|
||||
// 1.20.4 2024-03-09T22:53:12.5570618 Block Tags
|
||||
8665de82dd3d3a1351ce58f78108214f359104b0 data/actuallyadditions/tags/blocks/mineable/aio.json
|
||||
f7dc293929a2176bc6e428c765f6bf49fbeccdb5 data/actuallyadditions/tags/blocks/mineable/drill.json
|
||||
19d96265c7adc1657153cf5faea40911854ac8ed data/forge/tags/blocks/ores.json
|
||||
2bcfae7c119b0b64170989e7d41b352a8d55ea43 data/forge/tags/blocks/ores/black_quartz.json
|
||||
2bcfae7c119b0b64170989e7d41b352a8d55ea43 data/forge/tags/blocks/ores_in_ground/stone.json
|
||||
6c9a3c952d8fad5bfd8a5ab0b76aeb0b930d1db9 data/forge/tags/blocks/storage_blocks/black_quartz.json
|
||||
8dbaf9b7bd6774bc7c01a47a72b8a7fdaee51f87 data/minecraft/tags/blocks/mineable/axe.json
|
||||
58c611cbaae2a0a5dd6f82f183b7d0f5dc2d09e6 data/minecraft/tags/blocks/mineable/pickaxe.json
|
||||
fab721a4fe7ece1d0e019ce36c4d2862f70ee53b data/minecraft/tags/blocks/needs_stone_tool.json
|
||||
|
|
|
@ -1,6 +1,21 @@
|
|||
// 1.20.4 2024-03-08T17:03:47.6380549 Tags for minecraft:item mod id actuallyadditions
|
||||
// 1.20.4 2024-03-09T22:54:38.6848812 Tags for minecraft:item mod id actuallyadditions
|
||||
87327118c2f16da245b76de4fdcaab149456d9b8 data/actuallyadditions/tags/items/coffee_beans.json
|
||||
f3ee78cd8c9563bd1828de2b4b336735f289f9f2 data/actuallyadditions/tags/items/crystals.json
|
||||
7e6e49c3eb5302af147a2d6ba439e83bd4831cbc data/actuallyadditions/tags/items/drills.json
|
||||
ae55da193b94fd6375c05d5aa46cafdda9d335cd data/actuallyadditions/tags/items/tiny_coals.json
|
||||
31cd008db3c44a9c3f643f296e1c7688ca45e2e5 data/forge/tags/items/crops.json
|
||||
aaf3c8c818cc015e9c693e0bbf8f86da81f78285 data/forge/tags/items/crops/canola.json
|
||||
87327118c2f16da245b76de4fdcaab149456d9b8 data/forge/tags/items/crops/coffee.json
|
||||
4be6e9ebd0f4ea040587e7ff05c78270990889b8 data/forge/tags/items/crops/flax.json
|
||||
b37abd458a4812414db5038303af41c5f2632527 data/forge/tags/items/crops/rice.json
|
||||
4a4e3f4f78d79b28ad1a47e12d2903faec63fd91 data/forge/tags/items/gems/black_quartz.json
|
||||
19d96265c7adc1657153cf5faea40911854ac8ed data/forge/tags/items/ores.json
|
||||
2bcfae7c119b0b64170989e7d41b352a8d55ea43 data/forge/tags/items/ores/black_quartz.json
|
||||
2bcfae7c119b0b64170989e7d41b352a8d55ea43 data/forge/tags/items/ores_in_ground/stone.json
|
||||
6a088986a6186d2313ea52a8379232048fa98743 data/forge/tags/items/seeds.json
|
||||
f29e7ca84f30d7b2d4b19ad10b62f56fc422378a data/forge/tags/items/seeds/canola.json
|
||||
87327118c2f16da245b76de4fdcaab149456d9b8 data/forge/tags/items/seeds/coffee.json
|
||||
4be6e9ebd0f4ea040587e7ff05c78270990889b8 data/forge/tags/items/seeds/flax.json
|
||||
27f7953be7073bc266bdf5a245658268d11a4252 data/forge/tags/items/seeds/rice.json
|
||||
da125442e98e78f6dac7e0c8f35a51503f5bb79d data/forge/tags/items/slimeballs.json
|
||||
6c9a3c952d8fad5bfd8a5ab0b76aeb0b930d1db9 data/forge/tags/items/storage_blocks/black_quartz.json
|
||||
|
|
5
src/generated/resources/data/forge/tags/blocks/ores.json
Normal file
5
src/generated/resources/data/forge/tags/blocks/ores.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"values": [
|
||||
"#forge:ores/black_quartz"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"values": [
|
||||
"actuallyadditions:black_quartz_ore"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"values": [
|
||||
"actuallyadditions:black_quartz_ore"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"values": [
|
||||
"actuallyadditions:black_quartz_block"
|
||||
]
|
||||
}
|
8
src/generated/resources/data/forge/tags/items/crops.json
Normal file
8
src/generated/resources/data/forge/tags/items/crops.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"values": [
|
||||
"#forge:crops/rice",
|
||||
"#forge:crops/coffee",
|
||||
"#forge:crops/canola",
|
||||
"#forge:crops/flax"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"values": [
|
||||
"actuallyadditions:canola"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"values": [
|
||||
"actuallyadditions:coffee_beans"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"values": [
|
||||
"actuallyadditions:flax_seeds"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"values": [
|
||||
"actuallyadditions:rice"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"values": [
|
||||
"actuallyadditions:black_quartz"
|
||||
]
|
||||
}
|
5
src/generated/resources/data/forge/tags/items/ores.json
Normal file
5
src/generated/resources/data/forge/tags/items/ores.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"values": [
|
||||
"#forge:ores/black_quartz"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"values": [
|
||||
"actuallyadditions:black_quartz_ore"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"values": [
|
||||
"actuallyadditions:black_quartz_ore"
|
||||
]
|
||||
}
|
8
src/generated/resources/data/forge/tags/items/seeds.json
Normal file
8
src/generated/resources/data/forge/tags/items/seeds.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"values": [
|
||||
"#forge:seeds/rice",
|
||||
"#forge:seeds/coffee",
|
||||
"#forge:seeds/canola",
|
||||
"#forge:seeds/flax"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"values": [
|
||||
"actuallyadditions:canola_seeds"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"values": [
|
||||
"actuallyadditions:coffee_beans"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"values": [
|
||||
"actuallyadditions:flax_seeds"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"values": [
|
||||
"actuallyadditions:rice_seeds"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"values": [
|
||||
"actuallyadditions:black_quartz_block"
|
||||
]
|
||||
}
|
|
@ -3,6 +3,7 @@ package de.ellpeck.actuallyadditions.api;
|
|||
import de.ellpeck.actuallyadditions.mod.ActuallyAdditions;
|
||||
import net.minecraft.core.registries.Registries;
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
import net.minecraft.tags.BlockTags;
|
||||
import net.minecraft.tags.ItemTags;
|
||||
import net.minecraft.tags.TagKey;
|
||||
import net.minecraft.world.item.Item;
|
||||
|
@ -23,6 +24,17 @@ public final class ActuallyTags {
|
|||
public static final TagKey<Item> TINY_COALS = tag("tiny_coals");
|
||||
public static final TagKey<Item> HOLDS_ITEMS = ItemTags.create(new ResourceLocation("forge", "holds_items"));
|
||||
public static final TagKey<Item> CRYSTALS = tag("crystals");
|
||||
public static final TagKey<Item> SEEDS_RICE = ItemTags.create(new ResourceLocation("forge", "seeds/rice"));
|
||||
public static final TagKey<Item> SEEDS_COFFEE = ItemTags.create(new ResourceLocation("forge", "seeds/coffee"));
|
||||
public static final TagKey<Item> SEEDS_CANOLA = ItemTags.create(new ResourceLocation("forge", "seeds/canola"));
|
||||
public static final TagKey<Item> SEEDS_FLAX = ItemTags.create(new ResourceLocation("forge", "seeds/flax"));
|
||||
public static final TagKey<Item> CROPS_RICE = ItemTags.create(new ResourceLocation("forge", "crops/rice"));
|
||||
public static final TagKey<Item> CROPS_COFFEE = ItemTags.create(new ResourceLocation("forge", "crops/coffee"));
|
||||
public static final TagKey<Item> CROPS_CANOLA = ItemTags.create(new ResourceLocation("forge", "crops/canola"));
|
||||
public static final TagKey<Item> CROPS_FLAX = ItemTags.create(new ResourceLocation("forge", "crops/flax"));
|
||||
public static final TagKey<Item> GEMS_BLACK_QUARTZ = ItemTags.create(new ResourceLocation("forge", "gems/black_quartz"));
|
||||
public static final TagKey<Item> ORES_BLACK_QUARTZ = ItemTags.create(new ResourceLocation("forge", "ores/black_quartz"));
|
||||
public static final TagKey<Item> STORAGE_BLOCKS_BLACK_QUARTZ = ItemTags.create(new ResourceLocation("forge", "storage_blocks/black_quartz"));
|
||||
|
||||
private static TagKey<Item> tag(String name) {
|
||||
return TagKey.create(Registries.ITEM, new ResourceLocation(ActuallyAdditions.MODID, name));
|
||||
|
@ -43,6 +55,9 @@ public final class ActuallyTags {
|
|||
public static final TagKey<Block> NEEDS_VOID_TOOL = tag("needs_void_tool");
|
||||
public static final TagKey<Block> NEEDS_EMERADIC_TOOL = tag("needs_emeradic_tool");
|
||||
public static final TagKey<Block> NEEDS_ENORI_TOOL = tag("needs_enori_tool");
|
||||
public static final TagKey<Block> ORES_BLACK_QUARTZ = BlockTags.create(new ResourceLocation("forge", "ores/black_quartz"));
|
||||
public static final TagKey<Block> STORAGE_BLOCKS_BLACK_QUARTZ = BlockTags.create(new ResourceLocation("forge", "storage_blocks/black_quartz"));
|
||||
|
||||
|
||||
private static TagKey<Block> tag(String name) {
|
||||
return TagKey.create(Registries.BLOCK, new ResourceLocation(ActuallyAdditions.MODID, name));
|
||||
|
|
|
@ -6,6 +6,7 @@ import de.ellpeck.actuallyadditions.mod.blocks.ActuallyBlocks;
|
|||
import net.minecraft.core.HolderLookup;
|
||||
import net.minecraft.data.PackOutput;
|
||||
import net.minecraft.tags.BlockTags;
|
||||
import net.neoforged.neoforge.common.Tags;
|
||||
import net.neoforged.neoforge.common.data.BlockTagsProvider;
|
||||
import net.neoforged.neoforge.common.data.ExistingFileHelper;
|
||||
|
||||
|
@ -160,6 +161,11 @@ public class BlockTagsGenerator extends BlockTagsProvider {
|
|||
BlockTags.MINEABLE_WITH_PICKAXE,
|
||||
BlockTags.MINEABLE_WITH_SHOVEL
|
||||
);
|
||||
|
||||
this.tag(ActuallyTags.Blocks.ORES_BLACK_QUARTZ).add(ActuallyBlocks.BLACK_QUARTZ_ORE.get());
|
||||
this.tag(Tags.Blocks.ORES).addTags(ActuallyTags.Blocks.ORES_BLACK_QUARTZ);
|
||||
this.tag(Tags.Blocks.ORES_IN_GROUND_STONE).add(ActuallyBlocks.BLACK_QUARTZ_ORE.get());
|
||||
this.tag(ActuallyTags.Blocks.STORAGE_BLOCKS_BLACK_QUARTZ).add(ActuallyBlocks.BLACK_QUARTZ.get());
|
||||
}
|
||||
|
||||
// /**
|
||||
|
|
|
@ -2,7 +2,9 @@ package de.ellpeck.actuallyadditions.data;
|
|||
|
||||
import de.ellpeck.actuallyadditions.api.ActuallyTags;
|
||||
import de.ellpeck.actuallyadditions.mod.ActuallyAdditions;
|
||||
import de.ellpeck.actuallyadditions.mod.blocks.ActuallyBlocks;
|
||||
import de.ellpeck.actuallyadditions.mod.items.ActuallyItems;
|
||||
import de.ellpeck.actuallyadditions.mod.items.base.ActuallyItem;
|
||||
import net.minecraft.core.HolderLookup;
|
||||
import net.minecraft.data.PackOutput;
|
||||
import net.minecraft.data.tags.ItemTagsProvider;
|
||||
|
@ -41,5 +43,23 @@ public class ItemTagsGenerator extends ItemTagsProvider {
|
|||
|
||||
tag(Tags.Items.SLIMEBALLS)
|
||||
.add(ActuallyItems.RICE_SLIMEBALL.get());
|
||||
|
||||
tag(ActuallyTags.Items.CROPS_RICE).add(ActuallyItems.RICE.get());
|
||||
tag(ActuallyTags.Items.CROPS_COFFEE).add(ActuallyItems.COFFEE_BEANS.get());
|
||||
tag(ActuallyTags.Items.CROPS_CANOLA).add(ActuallyItems.CANOLA.get());
|
||||
tag(ActuallyTags.Items.CROPS_FLAX).add(ActuallyItems.FLAX_SEEDS.get());
|
||||
tag(Tags.Items.CROPS).addTags(ActuallyTags.Items.CROPS_RICE, ActuallyTags.Items.CROPS_COFFEE, ActuallyTags.Items.CROPS_CANOLA, ActuallyTags.Items.CROPS_FLAX);
|
||||
|
||||
tag(ActuallyTags.Items.SEEDS_RICE).add(ActuallyItems.RICE_SEEDS.get());
|
||||
tag(ActuallyTags.Items.SEEDS_COFFEE).add(ActuallyItems.COFFEE_BEANS.get());
|
||||
tag(ActuallyTags.Items.SEEDS_CANOLA).add(ActuallyItems.CANOLA_SEEDS.get());
|
||||
tag(ActuallyTags.Items.SEEDS_FLAX).add(ActuallyItems.FLAX_SEEDS.get());
|
||||
tag(Tags.Items.SEEDS).addTags(ActuallyTags.Items.SEEDS_RICE, ActuallyTags.Items.SEEDS_COFFEE, ActuallyTags.Items.SEEDS_CANOLA, ActuallyTags.Items.SEEDS_FLAX);
|
||||
|
||||
tag(ActuallyTags.Items.GEMS_BLACK_QUARTZ).add(ActuallyItems.BLACK_QUARTZ.get());
|
||||
tag(ActuallyTags.Items.ORES_BLACK_QUARTZ).add(ActuallyBlocks.BLACK_QUARTZ_ORE.getItem());
|
||||
tag(Tags.Items.ORES).addTags(ActuallyTags.Items.ORES_BLACK_QUARTZ);
|
||||
tag(Tags.Items.ORES_IN_GROUND_STONE).add(ActuallyBlocks.BLACK_QUARTZ_ORE.getItem());
|
||||
tag(ActuallyTags.Items.STORAGE_BLOCKS_BLACK_QUARTZ).add(ActuallyBlocks.BLACK_QUARTZ.getItem());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue