Skip to content

Commit ce2d8e0

Browse files
committed
Improve curse system
1 parent 47601d8 commit ce2d8e0

30 files changed

Lines changed: 555 additions & 48 deletions

src/generated/resources/.cache/20f5c98dc0fe2d7a53fc98de5b4a9405da0eaab5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// 1.21.1 2025-09-01T23:42:28.1862181 Biome Modifier Registries: ifw
1+
// 1.21.1 2025-09-02T08:11:44.5705808 Biome Modifier Registries: ifw
22
49f499fed8f8f7c797c3124710dff297dfe03998 data/ifw/neoforge/biome_modifier/ifw_add_deepslate_spawns.json
33
d3ce835cbe615798480c31acf5200397159fd125 data/ifw/neoforge/biome_modifier/ifw_add_deep_ores.json
44
5073fcccdb1b63e1972de71daef79b5d55a8ea59 data/ifw/neoforge/biome_modifier/ifw_add_forest_spawns.json
@@ -8,7 +8,7 @@ d3ce835cbe615798480c31acf5200397159fd125 data/ifw/neoforge/biome_modifier/ifw_ad
88
956d62903ec65e1961be03c957e150f715e717ee data/ifw/neoforge/biome_modifier/ifw_add_shallow_cave_spawns.json
99
f204760a74278b1d6101ab42521b8ca6074d5010 data/ifw/neoforge/biome_modifier/ifw_add_silverfish_blocks.json
1010
4ce978fd516237cda2e397b6021e110a6466b02e data/ifw/neoforge/biome_modifier/ifw_modify_spawns.json
11-
c3c517b6bb5c1a869ec2b8bb6a5895a4eda835c4 data/ifw/neoforge/biome_modifier/ifw_remove_overworld_features.json
11+
78e29f65210883c5baddabec772009c2be349d3e data/ifw/neoforge/biome_modifier/ifw_remove_overworld_features.json
1212
d8062a9987536bc654ee223b0460fb6b8c465eb4 data/ifw/neoforge/biome_modifier/ifw_remove_overworld_spawns.json
1313
e1ad57aee768b341f1e08d868724c970c8f70c9d data/ifw/worldgen/configured_feature/ore_adamantium.json
1414
4f66ef802aa37f492bcc727cffaa821b4411a8fa data/ifw/worldgen/configured_feature/ore_mithril.json

src/generated/resources/.cache/4bcb1c211b05e58ffb2380862bfb6b11ccce7318

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// 1.21.1 2025-08-12T22:56:30.1909377 Item Models: ifw
1+
// 1.21.1 2025-09-02T08:44:56.6883667 Item Models: ifw
22
9ab6010cac42ea73553903db669fc5c01da3210b assets/ifw/models/item/adamantium_axe.json
33
3e249b9ae88c47d265a6ad92dba33dd7b78a34b9 assets/ifw/models/item/adamantium_battle_axe.json
44
76e201d75e58d642af30ed859a4d320fe680b55d assets/ifw/models/item/adamantium_block.json
@@ -88,6 +88,7 @@ aa50639a2f49d36eff86485122cb855251407d54 assets/ifw/models/item/beef_stew.json
8888
63ec6c618a3a23eab4cab9c52d7d3250de9b516e assets/ifw/models/item/blob_spawn_egg.json
8989
a3348deef0d095298887251ea972b6e4f4de7b08 assets/ifw/models/item/blueberry.json
9090
63ec6c618a3a23eab4cab9c52d7d3250de9b516e assets/ifw/models/item/bone_lord_spawn_egg.json
91+
0c3a7017adcc2ae33acf12a18686a8bfb3f23759 assets/ifw/models/item/bottle_of_disenchanting.json
9192
63ec6c618a3a23eab4cab9c52d7d3250de9b516e assets/ifw/models/item/cave_spider_spawn_egg.json
9293
4d4b4c3bf529abe5e355c9810cffb05df656bbb9 assets/ifw/models/item/cereal.json
9394
c94008cfc66a738ab0539be5f54fbee69cbf4b76 assets/ifw/models/item/cheese.json
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// 1.21.1 2025-09-02T05:11:44.3042787 Languages: zh_cn for mod: ifw
2-
f815a3fbdccd3df9f5d1025d4085b426d4d6e6de assets/ifw/lang/zh_cn.json
1+
// 1.21.1 2025-09-02T15:18:15.7228813 Languages: zh_cn for mod: ifw
2+
6af5e2436aa115c7b0a7267aad825ef67bee7bc4 assets/ifw/lang/zh_cn.json

src/generated/resources/.cache/9fb1092f32d4fcbf9e061ffd718d4ec689c6c95e

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// 1.21.1 2025-08-14T00:49:00.7206092 Recipes
1+
// 1.21.1 2025-09-02T08:44:56.6968709 Recipes
22
8b121b827b1b9657f5f6e233bbec2659875f4afe data/ifw/advancement/recipes/building_blocks/adamantium_anvil.json
33
8095e32c2e0106f3ba40a10c204f6043d8dabfeb data/ifw/advancement/recipes/building_blocks/adamantium_bars.json
44
9d5e5fb6ff22512e12565ce8c70ec8434a2d5448 data/ifw/advancement/recipes/building_blocks/adamantium_door.json
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// 1.21.1 2025-09-02T05:11:44.3064375 Languages: en_us for mod: ifw
2-
e78936d64bfaf3b80ed6f6ff102ad201ce0475dd assets/ifw/lang/en_us.json
1+
// 1.21.1 2025-09-02T15:18:15.7248811 Languages: en_us for mod: ifw
2+
39bed468fdf81bfb05524597ed628a86d2855835 assets/ifw/lang/en_us.json

src/generated/resources/assets/ifw/lang/en_us.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@
298298
"foodtips.phytonutrients": "+%s Phytonutrients Value",
299299
"foodtips.protein": "+%s Protein Value",
300300
"foodtips.saturation": "+%s Saturation Value",
301-
"ifw.witch_curse.curse": "You have been cursed!",
301+
"ifw.witch_curse.curse": "%s has cursed you!",
302302
"ifw.witch_curse.discurse": "The curse has gone",
303303
"item.ifw.adamantium_axe": "Adamantium Axe",
304304
"item.ifw.adamantium_battle_axe": "Adamantium Battle Axe",
@@ -366,6 +366,7 @@
366366
"item.ifw.blob_spawn_egg": "Blob Spawn Egg",
367367
"item.ifw.blueberry": "Blueberry",
368368
"item.ifw.bone_lord_spawn_egg": "Bone Lord Spawn Egg",
369+
"item.ifw.bottle_of_disenchanting": "Bottle of Disenchanting",
369370
"item.ifw.cave_spider_spawn_egg": "Cave Spider Spawn Egg",
370371
"item.ifw.cereal": "Cereal",
371372
"item.ifw.chanceOfBucketMelting": "%d%% Chance of melting",

src/generated/resources/assets/ifw/lang/zh_cn.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@
298298
"foodtips.phytonutrients": "+%s 植物营养素",
299299
"foodtips.protein": "+%s 蛋白质",
300300
"foodtips.saturation": "+%s 饱和度",
301-
"ifw.witch_curse.curse": "你已经被诅咒了",
301+
"ifw.witch_curse.curse": "%s 已经诅咒了你",
302302
"ifw.witch_curse.discurse": "诅咒消逝",
303303
"item.ifw.adamantium_axe": "艾德曼斧",
304304
"item.ifw.adamantium_battle_axe": "艾德曼战斧",
@@ -366,6 +366,7 @@
366366
"item.ifw.blob_spawn_egg": "泡泡刷怪蛋",
367367
"item.ifw.blueberry": "蓝莓",
368368
"item.ifw.bone_lord_spawn_egg": "亡骸领主刷怪蛋",
369+
"item.ifw.bottle_of_disenchanting": "祛魔之瓶",
369370
"item.ifw.cave_spider_spawn_egg": "洞穴蜘蛛刷怪蛋",
370371
"item.ifw.cereal": "麦片粥",
371372
"item.ifw.chanceOfBucketMelting": "有%d%%的几率融毁",
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"parent": "minecraft:item/generated",
3+
"textures": {
4+
"layer0": "ifw:item/bottle_of_disenchanting"
5+
}
6+
}

src/generated/resources/data/ifw/neoforge/biome_modifier/ifw_remove_overworld_features.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"minecraft:patch_melon_sparse"
88
],
99
"steps": [
10-
"lakes",
11-
"vegetal_decoration"
10+
"vegetal_decoration",
11+
"lakes"
1212
]
1313
}

src/main/java/huix/infinity/common/command/CommandHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static int giveCurse(CommandSourceStack stack, CurseType curse, Collectio
1818
if (entity instanceof Player player) {
1919
if (entities.size() == 1) stack.sendSuccess(() -> Component.translatable("commands.give.curse.player", curse.name(), entity.getDisplayName()), true);
2020
else stack.sendSuccess(() -> Component.translatable("commands.give.curse.players", curse.name(), entities.size()), true);
21-
player.setCurse(curse);
21+
player.ifw$setCurse(curse);
2222
player.setData(IFWAttachments.player_curse_known, false); // 给予时重置识别状态
2323
}
2424
}
@@ -33,7 +33,7 @@ public static int clearCurse(CommandSourceStack stack, Collection<? extends Enti
3333
if (entity instanceof Player player) {
3434
if (entities.size() == 1) stack.sendSuccess(() -> Component.translatable("commands.clear.curse.player", entity.getDisplayName()), true);
3535
else stack.sendSuccess(() -> Component.translatable("commands.clear.curse.players", entities.size()), true);
36-
player.setCurse(CurseType.none);
36+
player.ifw$setCurse(CurseType.none);
3737
// 不需要重置 player_curse_known
3838
}
3939
}

0 commit comments

Comments
 (0)