Skip to content

Commit 222715b

Browse files
committed
Update create
1 parent 7d83e1c commit 222715b

File tree

3 files changed

+24
-7
lines changed

3 files changed

+24
-7
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package dev.ithundxr.createnumismatics.base.data;
2+
3+
import net.minecraft.core.registries.Registries;
4+
import net.minecraft.resources.ResourceLocation;
5+
import net.minecraft.tags.TagKey;
6+
import net.minecraft.world.level.block.Block;
7+
8+
public class CommonTags {
9+
public static class Blocks {
10+
public static final TagKey<Block> RELOCATION_NOT_SUPPORTED = tag("relocation_not_supported");
11+
12+
private static TagKey<Block> tag(String name) {
13+
return TagKey.create(Registries.BLOCK, ResourceLocation.fromNamespaceAndPath("c", name));
14+
}
15+
}
16+
}

common/src/main/java/dev/ithundxr/createnumismatics/registry/NumismaticsBlocks.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import com.tterrag.registrate.util.entry.BlockEntry;
99
import dev.ithundxr.createnumismatics.Numismatics;
1010
import dev.ithundxr.createnumismatics.base.data.BuilderTransformers;
11+
import dev.ithundxr.createnumismatics.base.data.CommonTags;
1112
import dev.ithundxr.createnumismatics.content.bank.BankTerminalBlock;
1213
import dev.ithundxr.createnumismatics.content.bank.blaze_banker.BlazeBankerBlock;
1314
import dev.ithundxr.createnumismatics.content.depositor.AndesiteDepositorBlock;
@@ -34,7 +35,7 @@ public class NumismaticsBlocks {
3435
.properties(p -> p.strength(1.0F, 3600000.0F)) // explosion resistance same as bedrock
3536
.properties(p -> p.isRedstoneConductor((state, getter, pos) -> false))
3637
.transform(axeOrPickaxe())
37-
.tag(AllBlockTags.RELOCATION_NOT_SUPPORTED.tag)
38+
.tag(CommonTags.Blocks.RELOCATION_NOT_SUPPORTED)
3839
.lang("Andesite Depositor")
3940
.transform(BuilderTransformers.depositor("andesite"))
4041
.simpleItem()
@@ -46,7 +47,7 @@ public class NumismaticsBlocks {
4647
.properties(p -> p.strength(1.4F, 3600000.0F)) // explosion resistance same as bedrock
4748
.properties(p -> p.isRedstoneConductor((state, getter, pos) -> false))
4849
.transform(axeOrPickaxe())
49-
.tag(AllBlockTags.RELOCATION_NOT_SUPPORTED.tag)
50+
.tag(CommonTags.Blocks.RELOCATION_NOT_SUPPORTED)
5051
.lang("Brass Depositor")
5152
.transform(BuilderTransformers.depositor("brass"))
5253
.simpleItem()
@@ -74,7 +75,7 @@ public class NumismaticsBlocks {
7475
.transform(pickaxeOnly())
7576
.transform(BuilderTransformers.blazeBanker())
7677
.addLayer(() -> RenderType::cutoutMipped)
77-
.tag(AllBlockTags.RELOCATION_NOT_SUPPORTED.tag)
78+
.tag(CommonTags.Blocks.RELOCATION_NOT_SUPPORTED)
7879
.tag(AllTags.AllBlockTags.FAN_TRANSPARENT.tag, AllTags.AllBlockTags.PASSIVE_BOILER_HEATERS.tag)
7980
.loot((lt, block) -> lt.add(block, lt.createSingleItemTable(AllBlocks.BLAZE_BURNER)
8081
.withPool(lt.applyExplosionCondition(NumismaticsItems.BANKING_GUIDE.get(), LootPool.lootPool()

gradle.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fabric_api_version = 0.116.4+1.21.1
2222

2323
# NeoForge
2424
# https://neoforged.net/
25-
neoforge_version = 21.1.187
25+
neoforge_version = 21.1.200
2626

2727
# Create - Fabric
2828
# https://modrinth.com/mod/create-fabric/versions
@@ -31,10 +31,10 @@ create_fabric_version_range = ~6.0.0
3131

3232
# Create - NeoForge
3333
# https://wiki.createmod.net/developers/
34-
create_neoforge_version = 6.0.6-104
35-
ponder_version = 1.0.56
34+
create_neoforge_version = 6.0.7-159
35+
ponder_version = 1.0.63
3636
registrate_neoforge_version = MC1.21-1.3.0+62
37-
flywheel_version = 1.0.4
37+
flywheel_version = 1.0.5
3838

3939
# Development QOL
4040
# EMI - https://modrinth.com/mod/emi/versions

0 commit comments

Comments
 (0)