Jump to content

wwrpg

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by wwrpg

  1. I am trying to allow potions to stack in my mod, but the BrewingRecipeRegistry has a isValidInput method that prevents the input itemstack from having getMaxStackSize() that is anything but 1. This was not there in 1.7.10 or 1.8.9 I understand keeping the stacksize to 1 for the input and output, but I don't understand why it has to enforce the MaxStackSize for that Item to be 1. I really don't want to make a coremod out of my mod and use ASM Transformers, but I don't see any other way of avoiding that getMaxStackSize check in the BrewingRecipeRegistry::isValidInput() or getOutput().
  2. I guess updating forge to handle the rotation metadata is out of the question. I see this applies for all Double Plants (minecraft:double_plant Tall Flowers & Tall Grass) I thought maybe I could make a mod to fix this issue and force the client to render the top block, but it looks like the client doesn't seem to ever even attempt to add the top block. Not sure if the server in 1.8.7 was changed to not send the info on the top part or the client is failing to recognize the block data? I guess I'll just wait for forge 1.8.7 / 1.8.8
  3. Thanks for the reply. You're right! Vanilla 1.8 with 1.8.7 server... same problem. So not a forge bug. And if I do single player 1.8 after creating it as 1.8.7, all the flowers instantly break into entities. I guess 1.8 isn't really compatible with 1.8.7
  4. After Playing 1.8.7 vanilla single player rosebushes and other double plants have both the top and bottom present and visible. All fine now. But when switching to forge 1.8-11.14.3.1450 (no mods in use yet) the top part of the double plant is missing. If I break it and replant it, then the top part is present again... but the plant is not centered Same problem occurs if I join a 1.8.7 vanilla server with forge based client. Minor bug, but annoying.
  5. I should note that I see both creatures (chickens, sheep, cows) and monsters (skeletons, zombies, creepers) all spawning in my world. I have re-generated my world multiple times as well tried moving the "MinecraftForge.EVENT_BUS.register(new SpawningEventHandler());" to the preInit and load. Still no success in ever seeing an entry into the onCheckIfCanSpawn! public class SpawningEventHandler { @SubscribeEvent public void onCheckIfCanSpawn(CheckSpawn event) { System.out.println("[MRC] checking monster"); FMLCommonHandler.instance().getFMLLogger().log(Level.DEBUG, "[WWRPG] checking if monster " + event.entityLiving + " can spawn at x,z,y " + event.x + "," + event.z + "," + event.y); } } I do see that the performWorldGenSpawning in SpawnerAnimals.java does spawn EnumCreatureType.creature without ever firing forge's canEntitySpawn method, but I can't figure out how monsters are spawning??? For extra debug, I added an event handler for WorldEvent.PotentialSpawns to check if the monster list isn't null since it is called in the spawnRandomCreature before the ForgeEventFactory.canEntitySpawn method is called. @SubscribeEvent public void onPotentialSpawn(WorldEvent.PotentialSpawns event) { if ( event.type == EnumCreatureType.monster && event.list != null && !event.list.isEmpty() ){ System.out.println("[MRC] potential random monster list is valid!"); } } And I get lots of debug hits for that as I explore the world... so I'm guessing either the "spawnlistentry == null" every time or the getConstructor is throwing an exception (even though I see no stack trace in the logs). But regardless... this does not explain how monsters are still spawning??? I'm going crazy... what is spawning them?
  6. In my postInit I register my SpawningEventHandler. @EventHandler public void postInit(FMLPostInitializationEvent event) { MinecraftForge.EVENT_BUS.register(new SpawningEventHandler()); } And in my SpawningEventHandler, I just print out a line as well log a debug line that an entity tried to spawn. public class SpawningEventHandler { @SubscribeEvent public void onCheckIfCanSpawn(CheckSpawn event) { System.out.println("[MRC] checking monster"); FMLCommonHandler.instance().getFMLLogger().log(Level.DEBUG, "[WWRPG] checking if monster " + event.entityLiving + " can spawn at x,z,y " + event.x + "," + event.z + "," + event.y); } } Neither MRC nor WWRPG ever appear in my logs after seeing numerous creatures and monsters spawn.
×
×
  • Create New...

Important Information

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