-
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.
Merge pull request #1 from AllayMC/feat/1.21.30
feat: 1.21.30
- Loading branch information
Showing
11 changed files
with
181 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.gradle | ||
.idea | ||
build | ||
build | ||
scheme.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
83 changes: 83 additions & 0 deletions
83
block-updater/src/main/java/org/allaymc/updater/block/BlockStateUpdater_1_21_30.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,83 @@ | ||
package org.allaymc.updater.block; | ||
|
||
import org.allaymc.updater.block.context.BlockUpdaterContext; | ||
import org.allaymc.updater.block.context.RemapValue; | ||
|
||
/** | ||
* StateUpdater Project 2024/09/12 | ||
* | ||
* @author IWareQ | ||
*/ | ||
public class BlockStateUpdater_1_21_30 extends BlockStateUpdater { | ||
public static final BlockStateUpdater INSTANCE = new BlockStateUpdater_1_21_30(); | ||
|
||
private BlockStateUpdater_1_21_30() { | ||
super(1, 21, 20); | ||
} | ||
|
||
@Override | ||
public void registerUpdaters(BlockUpdaterContext context) { | ||
context.remapState("minecraft:chemistry_table", "minecraft:", "chemistry_table_type", ""); | ||
context.remapState("minecraft:cobblestone_wall", "minecraft:", "wall_block_type", "_wall", | ||
new RemapValue("end_brick", "end_stone_brick") | ||
); | ||
|
||
context.addUpdater() | ||
.match("name", "minecraft:colored_torch_bp") | ||
.visit("states") | ||
.match("color_bit", "0") | ||
.removeProperty("color_bit") | ||
.popVisit() | ||
.replaceValue("name", "minecraft:colored_torch_blue"); | ||
context.addUpdater() | ||
.match("name", "minecraft:colored_torch_bp") | ||
.visit("states") | ||
.match("color_bit", "1") | ||
.removeProperty("color_bit") | ||
.popVisit() | ||
.replaceValue("name", "minecraft:colored_torch_purple"); | ||
|
||
context.addUpdater() | ||
.match("name", "minecraft:colored_torch_rg") | ||
.visit("states") | ||
.match("color_bit", "0") | ||
.removeProperty("color_bit") | ||
.popVisit() | ||
.replaceValue("name", "minecraft:colored_torch_red"); | ||
context.addUpdater() | ||
.match("name", "minecraft:colored_torch_rg") | ||
.visit("states") | ||
.match("color_bit", "1") | ||
.removeProperty("color_bit") | ||
.popVisit() | ||
.replaceValue("name", "minecraft:colored_torch_green"); | ||
|
||
context.remapState("minecraft:purpur_block", "minecraft:", "chisel_type", "", | ||
new RemapValue("chiseled", "deprecated_purpur_block_1"), | ||
new RemapValue("default", "purpur_block"), | ||
new RemapValue("lines", "purpur_pillar"), | ||
new RemapValue("smooth", "deprecated_purpur_block_2") | ||
); | ||
context.remapState("minecraft:sponge", "minecraft:", "sponge_type", "sponge", | ||
new RemapValue("dry", ""), | ||
new RemapValue("wet", "wet_") | ||
); | ||
|
||
context.addUpdater() | ||
.match("name", "minecraft:tnt") | ||
.visit("states") | ||
.match("allow_underwater_bit", "0") | ||
.removeProperty("allow_underwater_bit") | ||
.popVisit() | ||
.replaceValue("name", "minecraft:tnt"); | ||
context.addUpdater() | ||
.match("name", "minecraft:tnt") | ||
.visit("states") | ||
.match("allow_underwater_bit", "1") | ||
.removeProperty("allow_underwater_bit") | ||
.popVisit() | ||
.replaceValue("name", "minecraft:underwater_tnt"); | ||
|
||
context.removeProperty("minecraft:structure_void", "structure_void_type"); | ||
} | ||
} |
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,2 +1,6 @@ | ||
group = "org.allaymc.updater.common" | ||
version = "1.0.0" | ||
version = "1.0.0" | ||
|
||
tasks.publish { | ||
enabled = false | ||
} |
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 @@ | ||
org.gradle.parallel=true |
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
69 changes: 69 additions & 0 deletions
69
item-updater/src/main/java/org/allaymc/updater/item/ItemStateUpdater_1_21_30.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,69 @@ | ||
package org.allaymc.updater.item; | ||
|
||
import org.allaymc.updater.item.context.ItemUpdaterContext; | ||
import org.allaymc.updater.item.context.RemapMetaEntry; | ||
|
||
/** | ||
* StateUpdater Project 2024/09/12 | ||
* | ||
* @author IWareQ | ||
*/ | ||
public class ItemStateUpdater_1_21_30 extends ItemStateUpdater { | ||
public static final ItemStateUpdater INSTANCE = new ItemStateUpdater_1_21_30(); | ||
|
||
private ItemStateUpdater_1_21_30() { | ||
super(1, 21, 30); | ||
} | ||
|
||
@Override | ||
public void registerUpdaters(ItemUpdaterContext context) { | ||
context.remapMeta("minecraft:chemistry_table", | ||
new RemapMetaEntry(0, "minecraft:compound_creator") | ||
); | ||
context.remapMeta("minecraft:cobblestone_wall", | ||
new RemapMetaEntry(1, "minecraft:mossy_cobblestone_wall"), | ||
new RemapMetaEntry(2, "minecraft:granite_wall"), | ||
new RemapMetaEntry(3, "minecraft:diorite_wall"), | ||
new RemapMetaEntry(4, "minecraft:andesite_wall"), | ||
new RemapMetaEntry(5, "minecraft:sandstone_wall"), | ||
new RemapMetaEntry(6, "minecraft:brick_wall"), | ||
new RemapMetaEntry(7, "minecraft:stone_brick_wall"), | ||
new RemapMetaEntry(8, "minecraft:mossy_stone_brick_wall"), | ||
new RemapMetaEntry(9, "minecraft:nether_brick_wall"), | ||
new RemapMetaEntry(10, "minecraft:end_stone_brick_wall"), | ||
new RemapMetaEntry(11, "minecraft:prismarine_wall"), | ||
new RemapMetaEntry(12, "minecraft:red_sandstone_wall"), | ||
new RemapMetaEntry(13, "minecraft:red_nether_brick_wall") | ||
); | ||
context.remapMeta("minecraft:colored_torch_bp", | ||
new RemapMetaEntry(0, "minecraft:colored_torch_blue"), | ||
new RemapMetaEntry(8, "minecraft:colored_torch_purple"), | ||
new RemapMetaEntry(9, "minecraft:colored_torch_purple"), | ||
new RemapMetaEntry(10, "minecraft:colored_torch_purple"), | ||
new RemapMetaEntry(11, "minecraft:colored_torch_purple"), | ||
new RemapMetaEntry(12, "minecraft:colored_torch_purple"), | ||
new RemapMetaEntry(13, "minecraft:colored_torch_purple"), | ||
new RemapMetaEntry(14, "minecraft:colored_torch_purple"), | ||
new RemapMetaEntry(15, "minecraft:colored_torch_purple") | ||
); | ||
context.remapMeta("minecraft:colored_torch_rg", | ||
new RemapMetaEntry(0, "minecraft:colored_torch_red"), | ||
new RemapMetaEntry(8, "minecraft:colored_torch_green"), | ||
new RemapMetaEntry(9, "minecraft:colored_torch_green"), | ||
new RemapMetaEntry(10, "minecraft:colored_torch_green"), | ||
new RemapMetaEntry(11, "minecraft:colored_torch_green"), | ||
new RemapMetaEntry(12, "minecraft:colored_torch_green"), | ||
new RemapMetaEntry(13, "minecraft:colored_torch_green"), | ||
new RemapMetaEntry(14, "minecraft:colored_torch_green"), | ||
new RemapMetaEntry(15, "minecraft:colored_torch_green") | ||
); | ||
context.remapMeta("minecraft:purpur_block", | ||
new RemapMetaEntry(1, "minecraft:deprecated_purpur_block_1"), | ||
new RemapMetaEntry(2, "minecraft:purpur_pillar"), | ||
new RemapMetaEntry(3, "minecraft:deprecated_purpur_block_2") | ||
); | ||
context.remapMeta("minecraft:sponge", | ||
new RemapMetaEntry(1, "minecraft:wet_sponge") | ||
); | ||
} | ||
} |
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