Skip to content

Commit 1febb22

Browse files
author
Huix
committed
Update info
1 parent 70a6e8a commit 1febb22

9 files changed

Lines changed: 22 additions & 21 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
Infinity Way
33
=======
44

5-
please runData before runClient
5+
about......
66

77
### About
8-
* Resource is from [ysesiq](https://github.com/ysesiq)
8+
* Resource from [ysesiq](https://github.com/ysesiq)
9+
* Resource from [YF101](https://github.com/YF101)

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
plugins {
22
id 'java-library'
33
id 'maven-publish'
4-
id 'net.neoforged.moddev' version '2.0.61-beta'
5-
id 'net.neoforged.gradle.common' version '7.0.171'
6-
id 'net.neoforged.gradle.mixin' version '7.0.171'
4+
id 'net.neoforged.moddev' version '2.0.76'
5+
id 'net.neoforged.gradle.common' version '7.0.173'
6+
id 'net.neoforged.gradle.mixin' version '7.0.173'
77
}
88

99
tasks.named('wrapper', Wrapper).configure {

gradle.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ parchment_mappings_version=2024.07.28
1212
## Neoforge
1313
minecraft_version=1.21.1
1414
minecraft_version_range=[1.21,1.22)
15-
neo_version=21.1.90
16-
neo_version_range=[21.1.0,)
15+
neo_version=21.1.115
16+
neo_version_range=[21.1.110,)
1717
loader_version_range=[4,)
1818
neomoddev_version=1.0.20
1919

2020
## Mod Properties
2121
mod_id=ifw
2222
mod_name=Infinity Way
2323
mod_license=MIT
24-
mod_version=1.0.0
24+
mod_version=0.0-d
2525
mod_group_id=huix.infinity
26-
mod_authors=Huix
26+
mod_authors=huix, limingzxc, xy_lose, YF_101
2727
mod_description=Minecraft is too easy Remastered Version
2828

2929
# Dependencies
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// 1.21.1 2025-01-31T18:26:43.6674041 Global Loot Modifiers : ifw
2+
470828c527bde8a1cce01089711d3c831944739b data/ifw/loot_modifiers/jungle_leaves_drop.json
3+
8e7be3cc5a58ad9d25b4fe4bc9ec90c7afcaa110 data/neoforge/loot_modifiers/global_loot_modifiers.json

src/main/java/huix/infinity/common/world/block/IFWBlocks.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ public class IFWBlocks {
2222
public static final DeferredRegister.Blocks BLOCKS = DeferredRegister.createBlocks(InfinityWay.MOD_ID);
2323
public static final DeferredRegister.Items ITEM_BLOCKS = IFWItems.ITEMS;
2424

25-
public static final DeferredBlock<IFWAnvilBlock> copper_anvil = BLOCKS.registerBlock("copper_anvil",
25+
public static final DeferredBlock<Block> copper_anvil = BLOCKS.registerBlock("copper_anvil",
2626
block -> new IFWAnvilBlock(BlockBehaviour.Properties.of().mapColor(MapColor.METAL)
2727
.strength(5.0F, 1200.0F).sound(SoundType.ANVIL).pushReaction(PushReaction.BLOCK), IFWTiers.COPPER, 0));
2828
public static final DeferredItem<BlockItem> copper_anvil_item = ITEM_BLOCKS.registerSimpleBlockItem("copper_anvil", copper_anvil,
2929
new Item.Properties().stacksTo(1).durability(DurabilityHelper.getDurability(IFWTiers.COPPER)));
30-
public static final DeferredBlock<IFWAnvilBlock> chipped_copper_anvil = BLOCKS.registerBlock("chipped_copper_anvil",
30+
public static final DeferredBlock<Block> chipped_copper_anvil = BLOCKS.registerBlock("chipped_copper_anvil",
3131
block -> new IFWAnvilBlock(BlockBehaviour.Properties.of().mapColor(MapColor.METAL)
3232
.strength(5.0F, 1200.0F).sound(SoundType.ANVIL).pushReaction(PushReaction.BLOCK), IFWTiers.COPPER, 1));
3333
public static final DeferredItem<BlockItem> chipped_copper_anvil_item = ITEM_BLOCKS.registerSimpleBlockItem("chipped_copper_anvil", chipped_copper_anvil,
3434
new Item.Properties().stacksTo(1).durability(DurabilityHelper.getDurability(IFWTiers.COPPER)));
35-
public static final DeferredBlock<IFWAnvilBlock> damaged_copper_anvil = BLOCKS.registerBlock("damaged_copper_anvil",
35+
public static final DeferredBlock<Block> damaged_copper_anvil = BLOCKS.registerBlock("damaged_copper_anvil",
3636
block -> new IFWAnvilBlock(BlockBehaviour.Properties.of().mapColor(MapColor.METAL)
3737
.strength(5.0F, 1200.0F).sound(SoundType.ANVIL).pushReaction(PushReaction.BLOCK), IFWTiers.COPPER, 2));
3838
public static final DeferredItem<BlockItem> damaged_copper_anvil_item = ITEM_BLOCKS.registerSimpleBlockItem("damaged_copper_anvil", damaged_copper_anvil,

src/main/java/huix/infinity/datagen/loot/IFWLootModifierManager.java renamed to src/main/java/huix/infinity/common/world/loot/IFWLootModifierManager.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package huix.infinity.datagen.loot;
1+
package huix.infinity.common.world.loot;
22

33
import com.mojang.serialization.MapCodec;
44
import huix.infinity.init.InfinityWay;
@@ -16,7 +16,4 @@ public class IFWLootModifierManager {
1616
public static final Supplier<MapCodec<JungleLeavesLootModifier>> JUNGLE_LEAVES_LOOT_MODIFIER =
1717
GLOBAL_LOOT_MODIFIER_SERIALIZERS.register("jungle_leaves_drop", () -> JungleLeavesLootModifier.CODEC);
1818

19-
public static void register(IEventBus eventBus) {
20-
GLOBAL_LOOT_MODIFIER_SERIALIZERS.register(eventBus);
21-
}
2219
}

src/main/java/huix/infinity/datagen/loot/JungleLeavesLootModifier.java renamed to src/main/java/huix/infinity/common/world/loot/JungleLeavesLootModifier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package huix.infinity.datagen.loot;
1+
package huix.infinity.common.world.loot;
22

33
import com.mojang.serialization.Codec;
44
import com.mojang.serialization.MapCodec;

src/main/java/huix/infinity/datagen/loot/IFWGlobalLootModifierProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package huix.infinity.datagen.loot;
22

33
import huix.infinity.common.world.item.IFWItems;
4+
import huix.infinity.common.world.loot.JungleLeavesLootModifier;
45
import huix.infinity.init.InfinityWay;
56
import net.minecraft.core.HolderLookup;
67
import net.minecraft.data.PackOutput;

src/main/java/huix/infinity/init/InfinityWay.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import huix.infinity.common.world.item.group.IFWItemGroup;
1414
import huix.infinity.common.world.entity.IFWAttributes;
1515
import huix.infinity.common.world.item.tier.IFWArmorMaterials;
16-
import huix.infinity.datagen.loot.IFWLootModifierManager;
16+
import huix.infinity.common.world.loot.IFWLootModifierManager;
1717
import net.neoforged.bus.api.IEventBus;
1818
import net.neoforged.fml.ModContainer;
1919
import net.neoforged.fml.common.Mod;
@@ -29,17 +29,16 @@ public InfinityWay(final ModContainer mod, final IEventBus bus) {
2929
IFWAttachment.ATTACHMENT_TYPES.register(bus);
3030
IFWRecipeType.RECIPES.register(bus);
3131
IFWMenuType.MENUS.register(bus);
32+
IFWLootModifierManager.GLOBAL_LOOT_MODIFIER_SERIALIZERS.register(bus);
3233
IFWBlockEntityTypes.BLOCK_ENTITY_TYPES.register(bus);
3334
IFWRecipeSerializer.RECIPE_SERIALIZERS.register(bus);
3435
IFWArmorMaterials.ARMOR_MATERIALS.register(bus);
3536
IFWDataComponents.DATA_COMPONENTS.register(bus);
3637
IFWItemGroup.CREATIVE_TABS.register(bus);
3738
IFWAttributes.ATTRIBUTES.register(bus);
3839
IFWMobEffects.MOB_EFFECTS.register(bus);
39-
IFWBlocks.BLOCKS.register(bus);
40-
4140
IFWItems.ITEMS.register(bus);
42-
IFWLootModifierManager.register(bus);
41+
IFWBlocks.BLOCKS.register(bus);
4342

4443
IFWEvent.init();
4544
}

0 commit comments

Comments
 (0)