Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

LittleLDude

Members
  • Joined

  • Last visited

Everything posted by LittleLDude

  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. and how would I make it tell a ability to run
  4. 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
  5. Basically im trying to make a sword with a ability when u right click and I need help
  6. 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); } }
  7. 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.
  8. 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.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.