Jump to content

Novârch

Members
  • Posts

    422
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Novârch

  1. Use @ObjectHolder, it takes care of everything for you.
  2. 1.7 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  3. 1.8 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  4. You shouldn't, it's terrible.
  5. 1.7 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  6. 1.8 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  7. Most likely, also why aren't you ever returning ActionResultType.SUCCESS?
  8. Maybe you could replace all of the arrow entities entirely? Canceling either the usage of the bow or the spawning of the arrows.
  9. This doesn't seem like a good use case for ASM. Thing about this for a second, are arrows living? Of course they aren't, arrows extend Entity and implement IProjectile. In my opinion you should cancel one of the many events (maybe ArrowLooseEvent?) that references arrows and implement your own physics there.
  10. 1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  11. 1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  12. 1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  13. Did you read the log? Line 7 shows it's an error in your config.
  14. Try deleting your entire config folder.
  15. Make your own thread, your issues are most likely unrelated.
  16. I have no idea what you mean, update your git repo.
  17. I'd recommend a modeling program like Blockbench, it's what I use for all the models in my mods. It has a built in brush tool for creating a texture, but I'll usually use Photoshop or something if I want the texture to look a bit better, if you're trying to make a default block model, I believe it's just a 16x16 cube, hope this helps!
  18. Wrong in Minecraft's case, more than 3gb of ram allocated to the vanilla game will just degrade performance, too much ram is useless and slow.
  19. You're texture should be in resources/assets/modid"/textures/items.
  20. No, use HashMap#put, please read up on HashMaps, they're really useful. Think of the PlayerEntity as the index of the BlockPos, HashMaps don't have normal indexes, try printing out a HashMaps's values and you'll get an order different then the order you added them in.
  21. I've made a custom item that stores a player's capability in it's NBT. The item works fine except when I use it for the first time it consumes the player's capability(resets it's values to 0), but doesn't store it. All subsequent uses of the item work flawlessly. Here's a link to the item's class on GitHub. Edit: Solved by updating the NBT tag twice, I have no idea why this fixed it.
  22. To get a value from a HashMap you need a key, in my case a PlayerEntity, if you want to store a BlockPos for each individual player then you will make a HashMap with PlayerEntity as the key and BlockPos as the value (HashMap<PlayerEntity, BlockPos>), then you will get the BlockPos by calling HashMap#get with your player as the parameter.
  23. Why don't you use Entity#isAirborne? Also, you should use this to get if a keybind is pressed, Minecraft#gameSetiings#"insert keybind here"#isPressed.
×
×
  • Create New...

Important Information

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