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


  • Posts

  • Joined

  • Last visited


  • Gender

gottsch's Achievements

Stone Miner

Stone Miner (3/8)



  1. Thanks ChampionAsh. That was my assumption on how it would work. Maybe it is the term "resolved" that could use more explaining. I did some more testing: 1. exploring my immediate area. 2. save and exit. 3. load world repeat steps 2 and 3. There are a set of chunks a distance away from me that generate on every load. If I get closer to them and save, exit and reload, then they won't generate. Does minecraft pre-generate non-visible chunks and then resolve them when they come within the render distance (thus being re-generated if they never were in render distance)?
  2. HI. I've added a custom test Feature, which adds a block to the surface. What i'm noticing is that the Feature generation is running every time a chunk loads. Isn't it only supposed to run once on chunk generation? Thanks
  3. It is relevant because I was attempting to make this as simple for the end-user as possible - ie no extra steps (downloading extra files, jar digging, creating from scratch, etc). This had worked in 1.12.2 when you made a call to LootTableList.register() to register your loot tables. But it appears I won't be able to do this in the manner I hoped. Thank you for your replies.
  4. I had to go another route - I had to add another json file that explicitly listed the path to the resources and then was able to use FileUtils.copyInputStreamToFile(Objects.requireNonNull(mymod.class.getClassLoader().getResourceAsStream(resourcePath.toString())),
  5. Its not really that I need to perform actions dynamically, but I'm trying expose the mod's custom loot tables to the user so they can customize more easily without having to dig through the jar file to see the original loot tables.
  6. My mod adds datapack data (custom loot tables) on load if they don't already exist. I am currently doing this during the WorldEvent.Load event, so that I can get the world save name. However, the WorldEvent.Load event fires AFTER datapack data is loaded, so the new files are not loaded when the world is loaded for the first time. Is there a different event or a better place where I can add the datapack data? Thanks
  7. Hello. I'm updating my mod from 1.12.2 to 1.15.2. However, I am having issues accessing files in my mod jar (I copy some directories/files to the file system so the user can modify/configure). I used to be able to use MyClass.class.getResource("...") to get the URL to the resource, which I could later use to generate a FileSystem and walk all the file in a directory. However, in 1.15.2, the URL returned is no longer in the same format - it is like "modjar://[...path]". The path to the actual jar file is no longer available. Can anyone help on how to get access to files within the mod jar? Thanks, gottsch
  8. Thank you for your quick response, but I haven't worked with matrices (for transformations) for a long time and rendering is my least favorite thing. Any examples you could point me at?
  9. I was wondering if you can rotate a part of an entity model around 2 separate rotation points? Say I have a box and I want to rotate it around (a, b, c) on the y-axis, but then need to rotate it around (x, y, z) on the x-axis. It seems you can use box.setRotationPoint() and box.rotateAngleX/Y/Z but this will only work against the one point. Ex. Minecraft Chest: The lid and latch both have the same rotation point so when they are rotated on the x-axis they rotate to the proper positions. But say I wanted to rotate the latch on the y-axis first but at a point much closer to the latch so it's rotating "in place".
  10. I have the exact same issue and can't figure it out. I didn't have this issue with 1.8. Did you happen to solve this yet?
  11. Thanks, that did the trick. The weird thing is I had manually constructed an array with most of all the biomes but that didn't seem to work, so I removed it altogether because I thought if not provided, the default would be all biomes. Looking at the code - obviously not - doh! Don't know what I screwed up before, but this works. Thanks again.
  12. I originally was using a non-global ID, however, that didn't seem to work. Since each mod has it's own ID space, then the code I was using wasn't incorrect, just simply unnecessary, and shouldn't be causing any issues. I'll update it regardless as it doesn't make sense to keep (both the id selection and the helper method), but it doesn't solve the underlying issue.
  13. Sorry, I forgot to add my method: @SuppressWarnings("unchecked") private void registerModEntityWithEgg(@SuppressWarnings("rawtypes") Class entityClass, String entityName, int mobId, int primary, int secondary) { EntityRegistry.registerModEntity(entityClass, entityName, mobId, Mobs.instance, 80, 3, false); EntityRegistry.registerEgg(entityClass, primary, secondary); } I'm using the ID generated in the calling method. I didn't see a method that doesn't take an ID.
  14. Hello, I have a custom mod which, I have registered the renderer, egg and entity for natural spawning, however, I have yet to see it actually spawn. I have it set in the same way as a vanilla mob (zombie). (The egg and renderer works, just not natural spawn). @EventHandler public void init(FMLInitializationEvent event) { // get next available id int mobId = 0; do { mobId++; } while(EntityList.getClassFromID(mobId) != null); registerModEntityWithEgg(GhoulEntity.class, "Ghoul", mobId, 0x3F5505, 0x4E6414); // register entities for natural spawn EntityRegistry.addSpawn(GhoulEntity.class, 100, 4, 4, EnumCreatureType.MONSTER); // register renderers proxy.registerRenderers(); }
  15. Nevermind, I got it. Another one of my libraries wasn't be picked up for some reason. I'm not sure why that would cause the error I was getting but it is fixed now.
  • Create New...

Important Information

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