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

Babelincoln1809

Members
  • Posts

    122
  • Joined

  • Last visited

Everything posted by Babelincoln1809

  1. Here's the log : https://pastebin.com/cZjzwYdu Here's also the crash report: https://pastebin.com/3VKZhuMC
  2. I attached it to the item by using that event, it keeps crashing though saying that the sound event could be null. I did add a null check, but it still crashes. I'm a bit stumped on what to do IStaff Class: https://pastebin.com/NZs5dYdX Default Instance: https://pastebin.com/9cTvw6Kx Staff Storage: https://pastebin.com/N3UkfU2Y Staff Provider: https://pastebin.com/eAkDKtGd Staff Capability: https://pastebin.com/SUuqLJV4 Capability Handler: https://pastebin.com/qvrW6CCU
  3. Alright, so how would I go about about attaching it to my own item? There's an initcapabilites method in the item class that the bucket uses, so I'm assuming that? And how would I set things like soundevent and entity in the item class?
  4. Hello, I'm trying to better understand capabilities and how they work. I see a lot of examples/tutorials for entities and tile entities but not much for itemstacks, at least from what I could find. I'm trying to make an itemstack store an entity and a sound event for my own item, I dunno if I can possibly do that any other way as well. Any where I could look as an example/guide, or just an explanation?
  5. But isn't most rendering, if not all, handled on the client side of things? I tried it out, but it didn't do anything I tried that, but I just get some interesting results. Nothing to solve the issue
  6. Looking at it, it may having to do with the rendering file itself https://pastebin.com/iY6Zjv6U
  7. yea both are, I'm double checking everything like crazy rn lol. I don't see any in the log appearing either
  8. the image is called "slash.png" and I named the mcmeta file "slash.png.mcmeta"
  9. I made an mcmeta file for my png, and I thought that it would work as intended, but that's not the case. I looked at your example and the water one, but I dunno what's wrong with it. I've done this with items before with no issue, so I dunno why it's not working this time around. My image uses 3 frames, so 96 pixels vertically since it uses 32*32 sized sprites. Could that be the issue? here's the mcmeta file
  10. Is the texture animated, or are you talking about the flame effect it has?
  11. I was wondering how I should go about making an animated sprite for my projectile, it's just a basic 2D sprite no 3D model or anything like that. I thought it would be as easy as a .mcmeta file, but like usual nope. Anything I could reference? I don't think Minecraft itself has anything I can look at, although I am looking. Any help would be much appreciated
  12. I've tried other ways of setting it to zero, but those ways have just given me the same result
  13. So I have this, but x and z are still being affected by the y value
  14. What if instead I used a Quaternion based off the player's direction and rotation instead of using a Vector3D?
  15. I saw some old forum saying to swap them cause of how Y is coded
  16. Please tell me that means I'm close lololol ๐Ÿ‘€๐Ÿ‘„๐Ÿ‘€
  17. So far I have this, but only fires in one direction
  18. Hi, I'm making an item class that when releasing a right click it'll do a "slam attack". I had it working fine, but one big issue arose. The slam's distance is affected by the Y facing axis, so if the player is looking up or down the slam goes nowhere. I'm trying to find a method to where only the X and Z facing values are used, not the Y. I tried using the player's rotation, which did get rid of the Y issue, but lead to inaccurate slams. Any help is much appreciated! Here's the "slam attack" code: https://pastebin.com/sh1LdNWZ
  19. Huh okay, I'll look into it. Thank you, that gives me some guidance on what to look for!
  20. 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?
  21. 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.
  22. 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
  23. 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
  24. 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
×
×
  • Create New...

Important Information

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