Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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);

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.