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

Babelincoln1809

Members
  • Content Count

    103
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Babelincoln1809

  • Rank
    Creeper Killer

Recent Profile Visitors

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

  1. Huh okay, I'll look into it. Thank you, that gives me some guidance on what to look for!
  2. Okay, that fixes storing projectile issue I didn't know about lol. What about the inaccuracy/damage being affected by the ATTACK_SPEED attribute then?
  3. Where should I store it then? Also, I have multiple classes that do use the abstract class, I'm just showing the one cause there's really no need to show the others for the issue I'm having.
  4. I'm making my staff item have the attack speed attribute affect the projectile's inaccuracy and damage, the more you spam left click the more inaccurate and less damage the projectile does. The issue I'm running into is that it doesn't seem to work, or I'm not just noticing anything cause it's too small of a difference. Any help would be much appreciated Heres the diamond staff class: https://pastebin.com/EmuLbHH9 Heres the abstract staff class (just incase): https://pastebin.com/ZvHCF0Jh
  5. I referenced the bucket item class just to get it to work, it was the only class to override that method, I'll change that. Also, I don't have CooldownTracker#tick called anywhere, I didn't know I needed to call that
  6. Here's the boltcaster class: https://pastebin.com/yKTnnjif And Here's the default capability: https://pastebin.com/w3yRJDGP I referenced how the PlayerEntity creates it's cool down tracker, and that seems to have fixed the crashing issue I had yesterday, but other than that I really can't put a finger on why it just simply doesn't work. I looked around more in the PlayerEntity class and what uses that method to see if it has something that I don't, but I haven't found anything that could resolve it
  7. Getting the cooldown to work basically. I got it so it doesn't crash the game whenever I right click, which is a step in the right direction, but still doesn't do the item cool down
  8. Okay, so I override that and just attach the capability through there in the item class? [Edit] I got it to work by doing that, so how do I fix the cooldown issue exactly?
  9. I add it here, and originally used it here too. Thinking about it, yeah it really doesn't make sense for me to implement it into my item I'm gonna make it be used there, like I originally had it, instead of in the class. I guess cause I was looking around other classes and thought something in the line of IVanishable it needed to be implemented in my item class
  10. Oh shoot sorry! Didn't realize I sent that one by accident, was in a bit of a rush earlier. Here's the capability class
  11. I'm trying to make an item that has a cool down that is itemstack based, not player based, so that it can be dual-wielded without creating a duplicate item that just creates clutter. I created a capability, and it works, but the issue is trying to apply the cool down, or using any method from the CooldownTracker class. Basically crashes the game. Any idea on what the issue could be or just something that achieves something similar that I can reference would be much appreciated Code (Both Pastebin and Hastebin aren't working rn for some reason):
  12. I don't even know why I didn't think of that in the first place, thank you! It worked! I was WAY overthinking it lolol
  13. I'm doing my first capability, and I followed what I was referencing pretty closely albeit had to change things for my own capability. The issue comes in when running my mod, it says it needs an "addGenericListener" rather than "addListener" when the thing I'm referencing doesn't use that anywhere. I really don't how to fix the issue I'm still new to making capabilities, and I hope I explained my issue well, so any help is much appreciated. Code: Registering the Capability in the FmlCommonSetup: https://pastebin.com/5wMSrM5N ICoolDown Interface: https://pastebin.com/jHZPw
  14. I created a block and referenced most of the code from the end rod, cause I wanted it to be directional. The only issue I'm really stumped on is that it won't mirror the voxel shape at all. I've looked at how other blocks do the mirror method, but all seem to be not what I'm looking for. Any help? [Edit] I've looked around various forum sites and haven't found anything on them either Code : https://pastebin.com/mdUR2SS7
×
×
  • Create New...

Important Information

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