Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Skullblade

Members
  • Content Count

    20
  • Joined

  • Last visited

Community Reputation

1 Neutral

About Skullblade

  • Rank
    Tree Puncher

Recent Profile Visitors

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

  1. You absolute genius. I had been testing in creative, so there was no way for me to get set on fire to know that. Thank you so much for all of the help. You too eggpasta.
  2. Ok, here it is. Keep in mind that I renamed FlamingSword.java to Embercleave.java for 1, troubleshooting, and 2, I don't intend to reuse the exact code for any other item, so I gave it its final name and I'll just take pieces of it I need for other items later.
  3. I created a new world, spawned a Vindicator, and hit it with Embercleave. It took the right amount of damage, but it wasn't set on fire. Also, I checked the logs and there was nothing.
  4. Nice! (I didn't really know how Lambda worked before, so that was really helpful.) Well, I tested it, as all the errors were fixed (i figured out the last few on their own, they were either in the wrong place or were no longer necessary). I ran the client, and Embercleave didn't set anything on fire...
  5. Oh, that makes sense. The only remaining problems (we're almost done, thank you so much for your help) is "event" in event.getEntity().setSecondsOnFire(10); remaining unresolved and two brackets at the bottom, the higher one saying ')' expected (perhaps the one I just deleted) and the lower one before the final bracket for class FlamingSword saying ';" expected.
  6. Oh, that makes sense. The only remaining problems (we're almost done, thank you so much for your help) is "event" in event.getEntity().setSecondsOnFire(10); remaining unresolved and two brackets at the bottom, the higher one saying ')' expected (perhaps the one I just deleted) and the lower one before the final bracket for class FlamingSword saying ';" expected.
  7. Well, I got rid of () ->, but I have no typos. I've typed it correctly, but I still have this:
  8. Ok, that got rid of some errors. super is fine now, along with some clearer labels. public class FlamingSword now extends SwordItem (I forgot to do that part, sorry eggpasta). I'm still having an issue with p_220045_0_. It says it can't resolve it. Also, I'm not exactly sure where to put my code, and what changes to make. (I'm more of a visual learner, so an example like the last one would be sweet.) Lastly, ItemInit is saying the following about "() -> FlamingSword::new);" Required type: RegistryObject <SwordItem> Provided: RegistryObject <I> I is not a functio
  9. Ok, so I did that, but FlamingSword.java is throwing 10 different errors. Here's the code now. ItemInit and FlamingSword are having a related issue, super(ModItemTier.EMBERCLEAVE is saying "Object()' in 'java.lang.Object' cannot be applied to '(com.skullblade.planeswalkermod.ModItemTier, int, float, net.minecraft.item.Item.Properties)", the code doesn't like p_220045_0_, and I'm not sure I implemented the setFire code right. ItemInit.java (just the errored code): private static SwordItem FlamingSword; public static final RegistryObject<SwordItem> EMBERCLEAVE = ITEMS.r
  10. Okay, so the tutorial I was watching wasn't super clear which one was my item class, so here's the four main ones I have been working with. ItemInit.java: package com.skullblade.planeswalkermod.core.init; import com.skullblade.planeswalkermod.ModItemTier; import com.skullblade.planeswalkermod.PlaneswalkerMod; import net.minecraft.item.Item; import net.minecraft.item.ItemGroup; import net.minecraft.item.SwordItem; import net.minecraftforge.fml.RegistryObject; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge
  11. This is getting confusing. What do I put where? If I need to show my classes I can.
  12. I tried MonkeyKnight's suggestion, but I think what PooPooDice said also applies. I can't compare Embercleave to DamageSource. So when I tried it, it didn't work. I'll keep that one in my pocket though, thanks Could I get a more in depth explanation about onLeftClickEntity? Like, what class does it go in? Do I use @Override? Lastly, thank you everyone for helping me this far. It means a lot, as I'm new at this, and I didn't want this to be another of my abandoned projects.
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.