Jump to content


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

LittleLDude's Achievements

Tree Puncher

Tree Puncher (2/8)



  1. 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
  2. This is for storytelling purposes and I dont know how to create a defined dimension all help appreciated.
  3. 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
  4. Basically im trying to make a sword with a ability when u right click and I need help
  5. 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); } }
  6. So im trying to create a model in blockbench but the size limit wont let me create them all in one model so I need to make multiple and make them appear as one.
  7. Basically I dont know a single thing about coding a gui and I kinda messed up (I think) and made the gui 1 big picture instead of each button being a seperate one. If anyone can help thanks.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.