Everything posted by Babelincoln1809
-
Item Capabilities (1.16.5)
Here's the log : https://pastebin.com/cZjzwYdu Here's also the crash report: https://pastebin.com/3VKZhuMC
-
Item Capabilities (1.16.5)
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
-
Item Capabilities (1.16.5)
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?
-
Item Capabilities (1.16.5)
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?
-
Animated Sprite For Projectile Entity (1.16.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
-
Animated Sprite For Projectile Entity (1.16.5)
Looking at it, it may having to do with the rendering file itself https://pastebin.com/iY6Zjv6U
-
Animated Sprite For Projectile Entity (1.16.5)
Here
-
Animated Sprite For Projectile Entity (1.16.5)
yea both are, I'm double checking everything like crazy rn lol. I don't see any in the log appearing either
-
Animated Sprite For Projectile Entity (1.16.5)
the image is called "slash.png" and I named the mcmeta file "slash.png.mcmeta"
-
Animated Sprite For Projectile Entity (1.16.5)
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
-
Animated Sprite For Projectile Entity (1.16.5)
Is the texture animated, or are you talking about the flame effect it has?
-
Animated Sprite For Projectile Entity (1.16.5)
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
-
Issue with direction values (1.16.5)
I've tried other ways of setting it to zero, but those ways have just given me the same result
-
Issue with direction values (1.16.5)
So I have this, but x and z are still being affected by the y value
-
Issue with direction values (1.16.5)
What if instead I used a Quaternion based off the player's direction and rotation instead of using a Vector3D?
-
Issue with direction values (1.16.5)
I saw some old forum saying to swap them cause of how Y is coded
-
Issue with direction values (1.16.5)
Please tell me that means I'm close lololol 👀👄👀
-
Issue with direction values (1.16.5)
So far I have this, but only fires in one direction
-
Issue with direction values (1.16.5)
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
-
Projectile's inaccuracy and damage affected by the attack speed attribute issue (1.16.4)
Huh okay, I'll look into it. Thank you, that gives me some guidance on what to look for!
-
Projectile's inaccuracy and damage affected by the attack speed attribute issue (1.16.4)
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?
-
Projectile's inaccuracy and damage affected by the attack speed attribute issue (1.16.4)
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.
-
Projectile's inaccuracy and damage affected by the attack speed attribute issue (1.16.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
-
Itemstack based Cooldown Tracker
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
-
Itemstack based Cooldown Tracker
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
IPS spam blocked by CleanTalk.