Skip to content

Commit

Permalink
feat: Update to Minecraft 1.21.4
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed Nov 27, 2024
1 parent b2ef387 commit 732cd23
Show file tree
Hide file tree
Showing 33 changed files with 37 additions and 39 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/black_portstone",
"model": "waystones:item/portstone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/black_sharestone",
"model": "waystones:item/sharestone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/blue_portstone",
"model": "waystones:item/portstone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/blue_sharestone",
"model": "waystones:item/sharestone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/brown_portstone",
"model": "waystones:item/portstone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/brown_sharestone",
"model": "waystones:item/sharestone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/cyan_portstone",
"model": "waystones:item/portstone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/cyan_sharestone",
"model": "waystones:item/sharestone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/gray_portstone",
"model": "waystones:item/portstone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/gray_sharestone",
"model": "waystones:item/sharestone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/green_portstone",
"model": "waystones:item/portstone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/green_sharestone",
"model": "waystones:item/sharestone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/light_blue_portstone",
"model": "waystones:item/portstone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/light_blue_sharestone",
"model": "waystones:item/sharestone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/light_gray_portstone",
"model": "waystones:item/portstone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/light_gray_sharestone",
"model": "waystones:item/sharestone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/lime_portstone",
"model": "waystones:item/portstone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/lime_sharestone",
"model": "waystones:item/sharestone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/magenta_portstone",
"model": "waystones:item/portstone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/magenta_sharestone",
"model": "waystones:item/sharestone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/orange_portstone",
"model": "waystones:item/portstone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/orange_sharestone",
"model": "waystones:item/sharestone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/pink_portstone",
"model": "waystones:item/portstone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/pink_sharestone",
"model": "waystones:item/sharestone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/purple_portstone",
"model": "waystones:item/portstone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/purple_sharestone",
"model": "waystones:item/sharestone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/red_portstone",
"model": "waystones:item/portstone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/red_sharestone",
"model": "waystones:item/sharestone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/warp_plate",
"model": "waystones:block/warp_plate",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/white_portstone",
"model": "waystones:item/portstone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/yellow_portstone",
"model": "waystones:item/portstone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"model": {
"type": "minecraft:model",
"model": "waystones:item/yellow_sharestone",
"model": "waystones:item/sharestone",
"tints": [
{
"type": "minecraft:constant",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void generateBlockStateModels(BlockModelGenerators blockStateModelGenerat
.select(WarpPlateBlock.WarpPlateStatus.WARPING_INVALID, Variant.variant().with(VariantProperties.MODEL, ResourceLocation.fromNamespaceAndPath(Waystones.MOD_ID, "block/warp_plate")))
.select(WarpPlateBlock.WarpPlateStatus.LOCKED, Variant.variant().with(VariantProperties.MODEL, ResourceLocation.fromNamespaceAndPath(Waystones.MOD_ID, "block/warp_plate_locked")))
));
blockStateModelGenerator.registerSimpleTintedItemModel(ModBlocks.warpPlate, ModelLocationUtils.getModelLocation(ModBlocks.warpPlate.asItem()), new Constant(0xffc456bd));
blockStateModelGenerator.registerSimpleTintedItemModel(ModBlocks.warpPlate, ModelLocationUtils.getModelLocation(ModBlocks.warpPlate), new Constant(0xffc456bd));
createDoubleBlockWaystone(blockStateModelGenerator, ModBlocks.waystone);
createDoubleBlockWaystone(blockStateModelGenerator, ModBlocks.sandyWaystone);
createDoubleBlockWaystone(blockStateModelGenerator, ModBlocks.mossyWaystone);
Expand Down Expand Up @@ -90,7 +90,8 @@ private void createSharestone(BlockModelGenerators blockStateModelGenerator, Sha
.select(DoubleBlockHalf.LOWER, Variant.variant().with(VariantProperties.MODEL, bottomModelLocation))
.select(DoubleBlockHalf.UPPER, Variant.variant().with(VariantProperties.MODEL, topModelLocation)));
blockStateModelGenerator.blockStateOutput.accept(generator);
blockStateModelGenerator.registerSimpleTintedItemModel(block, ModelLocationUtils.getModelLocation(block.asItem()), new Constant(block.getColor().getTextColor()));
final var itemModelLocation = ResourceLocation.fromNamespaceAndPath(Waystones.MOD_ID, "item/sharestone");
blockStateModelGenerator.registerSimpleTintedItemModel(block, itemModelLocation, new Constant(block.getColor().getTextColor()));
}

private void createPortstone(BlockModelGenerators blockStateModelGenerator, PortstoneBlock block) {
Expand All @@ -102,11 +103,8 @@ private void createPortstone(BlockModelGenerators blockStateModelGenerator, Port
.select(DoubleBlockHalf.LOWER, Variant.variant().with(VariantProperties.MODEL, bottomModelLocation))
.select(DoubleBlockHalf.UPPER, Variant.variant().with(VariantProperties.MODEL, topModelLocation)));
blockStateModelGenerator.blockStateOutput.accept(generator);
if(block.getColor() != null) {
blockStateModelGenerator.registerSimpleTintedItemModel(block, ModelLocationUtils.getModelLocation(block.asItem()), new Constant(block.getColor().getTextColor()));
} else {
blockStateModelGenerator.registerSimpleItemModel(block, ModelLocationUtils.getModelLocation(block.asItem()));
}
final var itemModelLocation = ResourceLocation.fromNamespaceAndPath(Waystones.MOD_ID, "item/portstone");
blockStateModelGenerator.registerSimpleTintedItemModel(block, itemModelLocation, new Constant(block.getColor().getTextColor()));
}

}

0 comments on commit 732cd23

Please sign in to comment.