Changed paxels to ShovelItems

This commit is contained in:
patience 2026-02-20 00:14:35 +00:00
parent cf1916b6ad
commit eed83307e7
No known key found for this signature in database
2 changed files with 9 additions and 12 deletions

View file

@ -8,10 +8,7 @@ import net.minecraft.core.registries.Registries;
import net.minecraft.resources.ResourceKey; import net.minecraft.resources.ResourceKey;
import net.minecraft.tags.ItemTags; import net.minecraft.tags.ItemTags;
import net.minecraft.world.entity.EquipmentSlotGroup; import net.minecraft.world.entity.EquipmentSlotGroup;
import net.minecraft.world.item.enchantment.Enchantment; import net.minecraft.world.item.enchantment.*;
import net.minecraft.world.item.enchantment.EnchantmentEffectComponents;
import net.minecraft.world.item.enchantment.EnchantmentTarget;
import net.minecraft.world.item.enchantment.LevelBasedValue;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
import xyz.nearmisses.patience.mc_rebalance.enchantment.effect.WindupEffect; import xyz.nearmisses.patience.mc_rebalance.enchantment.effect.WindupEffect;
@ -41,7 +38,6 @@ public class EnchantGen extends FabricDynamicRegistryProvider {
) )
).withEffect( ).withEffect(
EnchantmentEffectComponents.POST_ATTACK, // enchantment occurs POST_ATTACK EnchantmentEffectComponents.POST_ATTACK, // enchantment occurs POST_ATTACK
//EnchantmentEffectComponents.DAMAGE,
EnchantmentTarget.ATTACKER, EnchantmentTarget.ATTACKER,
EnchantmentTarget.VICTIM, EnchantmentTarget.VICTIM,
new WindupEffect(LevelBasedValue.constant(0.8f)) //.perLevel(0.8f, 0.2f)) // scale the enchantment linearly (irrelevant). new WindupEffect(LevelBasedValue.constant(0.8f)) //.perLevel(0.8f, 0.2f)) // scale the enchantment linearly (irrelevant).

View file

@ -9,6 +9,7 @@ import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.item.CreativeModeTabs; import net.minecraft.world.item.CreativeModeTabs;
import net.minecraft.world.item.Item; import net.minecraft.world.item.Item;
import net.minecraft.world.item.Items; import net.minecraft.world.item.Items;
import net.minecraft.world.item.ShovelItem;
public class ModItems { public class ModItems {
public static void init(){ public static void init(){
@ -32,11 +33,11 @@ public class ModItems {
} }
// Paxel stats are supplied solely with data, this is just to give them an ID so they're nice and easy to meddle with // Paxel stats are supplied solely with data, this is just to give them an ID so they're nice and easy to meddle with
public static final Item Paxel_Wood = register("wooden_paxel", new Item.Properties() ); public static final Item Paxel_Wood = register("wooden_paxel", new ShovelItem.Properties() );
public static final Item Paxel_Stone = register("stone_paxel", new Item.Properties() ); public static final Item Paxel_Stone = register("stone_paxel", new ShovelItem.Properties() );
public static final Item Paxel_Copper = register("copper_paxel", new Item.Properties() ); public static final Item Paxel_Copper = register("copper_paxel", new ShovelItem.Properties() );
public static final Item Paxel_Iron = register("iron_paxel", new Item.Properties() ); public static final Item Paxel_Iron = register("iron_paxel", new ShovelItem.Properties() );
public static final Item Paxel_Gold = register("golden_paxel", new Item.Properties() ); public static final Item Paxel_Gold = register("golden_paxel", new ShovelItem.Properties() );
public static final Item Paxel_Diamond = register("diamond_paxel", new Item.Properties() ); public static final Item Paxel_Diamond = register("diamond_paxel", new ShovelItem.Properties() );
public static final Item Paxel_Dendrite = register("netherite_paxel", new Item.Properties() ); // Not strictly right in this pack but we're keeping up with naming conventions public static final Item Paxel_Dendrite = register("netherite_paxel", new ShovelItem.Properties() ); // Not strictly right in this pack but we're keeping up with naming conventions
} }