-
Posts
9 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
LittleLDude's Achievements
![Rank: Tree Puncher (2/8) Tree Puncher](https://forums.minecraftforge.net/uploads/set_resources_2/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png)
Tree Puncher (2/8)
0
Reputation
-
I'm trying to make a sword that gives you an extra heart while it's in your inventory for every kill youv'e gotten with it, It can only give up to 5 hearts at once and everytime you die and recover the sword it will give you one less heart. Here's what I Have so far package com.legendaryldude.collectorssmpmod.item.items; import net.minecraft.network.chat.Component; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.SwordItem; import net.minecraft.world.item.Tier; import net.minecraft.world.item.TooltipFlag; import net.minecraft.world.level.Level; import java.util.List; public class HeartsBane extends SwordItem { public HeartsBane(Tier tier, int damage, float atkspeed, Properties properties) { super(tier, damage, atkspeed, properties); } @Override public void appendHoverText(ItemStack stack, Level level, List<Component> component, TooltipFlag flag) { component.add(Component.literal("A Stealer Of Hearts")); component.add(Component.literal(" Utility Weapon ")); component.add(Component.literal("")); component.add(Component.literal("When Killing Players With")); component.add(Component.literal("This Weapon, Gives You 1")); component.add(Component.literal("Extra Max Heart. Up To Five")); component.add(Component.literal("Extra Hearts At Once. Hearts")); component.add(Component.literal("Apply As Long As I'm In Your")); component.add(Component.literal("Inventory.")); super.appendHoverText(stack, level, component, flag); } } Ty in advance for help, have a great day
-
Im making a sword that swings down if you right click and I need to select what entities take damage how would I make it so all entities take damage in a arcgoing from above your head to the ground in front of you with 1 block width and around 5 block height at its peak and 5 block length at its longest. I can get down the animation and stuff but I still need help figuring out how to select which entities take damage
-
LittleLDude changed their profile photo
-
Im gonna make it detect right click then shout out a custom beam here is most of the code in my moditems section I only need the code to detect right clicks atm package com.littleldude.idleon.item; import com.littleldude.idleon.IdleOn; import net.minecraft.world.item.Item; import net.minecraft.world.item.SwordItem; import net.minecraft.world.item.Tier; import net.minecraft.world.item.crafting.Ingredient; import net.minecraftforge.common.ForgeTier; import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; import net.minecraftforge.registries.RegistryObject; public class ModItems { public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, IdleOn.MODID); public static final RegistryObject<SwordItem> AMAROK_SWORD = ITEMS.register("amarok_sword", () -> new SwordItem(Tiers.AMAROK, 0, 0, new Item.Properties())); public static void register(IEventBus eventBus) { ITEMS.register(eventBus); } public static class Tiers { public static final Tier AMAROK = new ForgeTier(10, 10000, 15f, 0,40, null, () -> Ingredient.EMPTY); } }