Posted April 27, 201510 yr I am currently trying to develop a mod to be able to craft spawners but for some reason, it only gives me a pig spawner. Here is my code: GameRegistry.addShapelessRecipe(new ItemStack(Blocks.mob_spawner, 1 ,92), SpawnerCage, CowSoul);
April 30, 201510 yr Hi, Andrewca. I made the same mod and am faced with the same problem. My kid just uses the mod in creative mode and right-clicks the mod spawner with the proper spawn egg to make the spawner he wants. I was hoping to override some magic function so the spawner cycles through the 16 monster options when clicked on, but haven't figured it out. I gave up at the point where I figured I'd have to make my own item. Did you figure it out? I plan to take a look at ItemMonsterPlacer this evening to see if the function it has for what happens when you right-click on a block covers the "if the block is a monster spawner, set the monster spawner moster type to the spawn egg type" or something. But even then I'm thinking I'd have to make my own monster spawner. What's up with the version 1.8 suggestion? I'm using 1.8 so it seems like I should be able to use NBT data or something to get this done... hw developer in a sw world
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.