Jump to content

DrNickenstein

Members
  • Posts

    49
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by DrNickenstein

  1. I want to get the entities in a certain radius from a block, how would I do that?
  2. I never used those methods but from the looks of them I'd say isAllowedOnBooks shouldn't return false, try that
  3. Or rather, I thought the null check was to prevent some kind of weird instance of nullpointerexception but apparently it's for that reason
  4. Ok man I apologize for that I don't expect anyone to have psychic powers but I thought if it was needed someone would've just asked, but from now on I'll include it when it might be useful. Thanks for the heads up Now that is interesting and I did not notice it, thanks, I'll give it a look
  5. I've got an item that's got a property that changes the used model for it and it is working when shown in-hand while if it is on the ground or in an item frame it is showing the item as if the property was ignored. I tried sending a packet to the server when it was necessary because of some client side events which changed the property but it still doesn't work as intended. What is confusing is that even in vanilla code there isn't a consistency to this: if a charged crossbow is dropped or put in an item frame then it's shown as if it is empty, but if an elytra is broken and the same is done it is shown as broken. I'm clueless about this and it's getting really frustrating because everything works but this small detail doesn't. Any ideas?
  6. So I created an item with its own property and overrides in the model (everything is working perfectly in-hand) but when I try to put said item in an item frame, for some reason it uses the default model as if the property is set to 0 or something. What could the cause of this be and what should I look at to get this fixed?
  7. Currently I managed to change an item's texture based on a property I created but when I put it in an item frame the used model is just the default one, despite it being correctly used when the item is in the hand. Why is that and what should I do in this situation?
  8. I'm an idiot, I couldn't see that on the eclipse console and I didn't slide all the way to the right...
  9. Why would I get this FileNotFoundException, given that this is my latest.log: https://gist.github.com/DrNickenstein/0803566aca6a66d61622f854b15d8200 this is the method I'm using to change the item's property: https://gist.github.com/DrNickenstein/8fc1932cf984e1c04de4e6706628d474 and this is my item model: https://gist.github.com/DrNickenstein/b0886d154352d591e845f0d3363a710a Note that the directory tree is correct as it was working just fine before me trying to use item properties I know this is a lot of stuff but I'm really confused as to why this is happening when it found the file it's not finding now and I haven't renamed it or anything. If the whole github repository could help, I can provide it in a reply
  10. Guess I'll have to learn events next
  11. How would you do something with an item when something that isn't an entity is hit/left clicked? There seems to be no specific method to do this
  12. What is the function to use in order to change an attribute's modifier?
  13. Capabilities seem pretty complex and unnecessary for what I'm doing, I'll check it out though if I feel like I need it, thank you
  14. It is indeed. I needed that info as I needed to create the tag element and put the starting value but couldn't do it in hurtEnemy cause it would get called continously. Gotcha, thanks. I was asking because I remember in some older version there was an onCreated method somewhere, can't recall exactly where though
  15. I'm guessing onCraftedBy is only called when it's crafted and not called when, for instance, you get an item through commands or the creative tab. Is there another method that gets called every time when an item is created or is there another way I should go in order to do some stuff when an item is created?
  16. oh damn I did not know about this github function. Guess I'll take a look and try to understand something
  17. Do you know any good github source code to check out NBTs from to understand how they're used? Struggling on the subject and I haven't got any references
  18. Yeah I read it on that wiki but everything seems so abstract and reading it is a bit confusing to be honest I would look for the source code of a mod if I had a broad knowledge of mods and their features, I legit couldn't even name one mod that does something similiar to what I'm trying to do even though something this basic is probably done by hundreds of mods. Thank you for the sources provided, it's kinda sad that a game kept alive for a good part (may I say, mostly) by mods doesn't have an official documentation
  19. I'm sorry but I'm not very familiar with this kind of concepts yet, could you point me to some documentation about them? I can't find anything about NBTs or CompoundTags on the forge docs
  20. Could someone help me understand why the damage increment is applying only once in this class? https://github.com/DrNickenstein/End-Adventure/blob/master/src/main/java/io/github/drnickenstein/endadventure/items/tools/swords/FinisiumSword.java I'm afraid I don't know due to my lack of knowledge on the subject, if you can't or won't bother to explain, could you point me to where I could read something to learn about attribute modifiers?
  21. It is my sword and I'm passing the initial value in the constructor in my initialization class. However I want to change it further under some conditions
  22. attackDamage is a final variable defined in the SwordItem class, so I cannot change it in the usual way, how would you go about changing it?
  23. Oh damn I didn't know that, thank you very much
  24. Hello, I was restarting to mod just recently and I bumped into some resource errors that are very weird, I've checked my directories and file trees multiple times and still can't find the issue. This is my github repository: https://github.com/DrNickenstein/End-Adventure And this is the latest.log: https://gist.github.com/DrNickenstein/35c38de8d66911501c0138b1bb935bbd Any ideas? Thanks in advance.
×
×
  • Create New...

Important Information

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