Jump to content

CrowsOfWar

Members
  • Posts

    9
  • Joined

  • Last visited

CrowsOfWar's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Hey, is it possible to add a recipe to the recipe book when you pick up an item? For example, when you pick up wooden planks you unlock the sign recipe. I looked into advancements but don't want to make my own advancement tree just for recipes. Thanks!
  2. Stupid question but you're sure the event handler is being called right?
  3. Hey, I just started upgrading to Forge 1.12 but the class IPerspectiveAwareModel no longer exists. What should I use instead? Context: have an item that has a different texture when in inventory than when held in hand Thanks!
  4. Sorry to necro an old topic, but I just had the same problem and fixed it! Hopefully this will be helpful to people who experience the problem again like me. The solution is: in your render class, extend RenderLiving instead of RenderLivingBase.
  5. I was able to make a workaround by basically replacing the village generator with my own. Then, the custom village generator does the same stuff, but ALSO spawns in my custom mob. However there are a few reasons I don't love this solution: * It replaces village generator which could have an impact on inter-mod compatibility * Replacing the village generator ignores custom settings which would erase any custom superflat settings So if there is any other recommended solution I would be glad to hear it. edit: code here
  6. Is there a way to get a mob to spawn in villages? I saw IVillageCreationHandler but this requires you to add a new component to the village.
  7. Bumping since this is still a problem. I'm new here and I didn't see anything about bumping being prohibited, but please let me know if bumping is not allowed on this forum.
  8. Hello, I'm working on a bug in my mod and found a behavior that seems really weird. My mobs need custom spawning behavior in the world. I'm doing the logic to determine spawning is the getCanSpawnHere method. To my understanding, it returns whether the mob can spawn at the given spot, and if it returns false, then the mob spawn is cancelled. I was debugging some code where my mobs were spawning everywhere, but getCanSpawnHere is supposed to only let them spawn near villages. All of my logic looked correct, but even when the method returns false mobs still spawn. This results in mobs spawning even away from villages. I even explicitly tried putting return false so the mobs theoretically can't spawn. But they still are spawning even when getCanSpawnHere returns false! So how should I properly use getCanSpawnHere? It seems to be not working. Thanks. Code getCanSpawnHere method Register entity Register spawn All files Thank you!
×
×
  • Create New...

Important Information

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