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. 1.7 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  5. 1.8 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  6. Most likely, also why aren't you ever returning ActionResultType.SUCCESS?
  7. Maybe you could replace all of the arrow entities entirely? Canceling either the usage of the bow or the spawning of the arrows.
  8. 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.
  9. 1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  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. Did you read the log? Line 7 shows it's an error in your config.
  13. Try deleting your entire config folder.
  14. Make your own thread, your issues are most likely unrelated.
  15. 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!
  16. 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.
  17. You're texture should be in resources/assets/modid"/textures/items.
  18. 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.
  19. 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.
  20. 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.
×
×
  • Create New...

Important Information

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