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.

SoggyMustache

Members
  • Joined

  • Last visited

  1. I removed the global ids, Im not trying to sound rude but I just need to know how to add eggs to the entities
  2. They spawn in fine I need them to have eggs as well
  3. I looked everywhere (I think) but I can't find anything on how to give my mobs spawn eggs I used this in 1.8 and it is telling me I need to change randomId to a string but that stilll doesnt make the egg work. package net.soggymustache.zawam.entity; import net.minecraft.entity.EntityList; import net.minecraftforge.fml.common.registry.EntityRegistry; import net.soggymustache.zawam.ZAWAMain; import net.soggymustache.zawam.entity.Warthog.EntityWarthog; public class Entity { public static int randomId; public static void ZAWAMain(){ registerEntity(); } public static void registerEntity(){ // createEntity(EntitySumatranRhinoceros.class, "SumatranRhinoceros", 0x424040, } public static void createEntity(Class entityClass, String entityName, int solidColor, int spotColor){ randomId = EntityRegistry.findGlobalUniqueEntityId(); EntityRegistry.registerGlobalEntityID(entityClass, entityName, randomId); EntityRegistry.registerModEntity(entityClass, entityName, randomId, ZAWAMain.modInstance, 42, 1, true); createEgg(randomId, solidColor, spotColor); } public static void createEgg(int randomId, int solidColor, int spotColor) { EntityList.entityEggs.put(String.valueOf(randomId), new EntityList.EntityEggInfo(randomId, solidColor, spotColor)); } }
  4. Here is all the code https://github.com/0SoggyMustache0/ZAWA please note I removed the models because I did not make them and the modelers dont want them stolen
  5. As the title says my mod will randomly lag the game to the point where it is unplayable after around 3 mins. It isn't my PC because I have made plenty of mods before this one and they all worked fine. The main things in this mod is 1 biome, 1 new book GUI, and 15 new entities so far. If someone can help you will save me so much time!
  6. Now the mod will build but it is broken inside eclipse [embed=425,349]http://i.imgur.com/H34g19k.png[/embed]
  7. It was working but it just stopped I have no clue what happened could my computer have updated and messed it up?
  8. My mod just stopped building. I stopped modding for a week and when I came back to it my mod it no longer builds.
  9. I have this protected static final AxisAlignedBB ROAD_BARRIER_SIZE = new AxisAlignedBB(0.0625D, 0.0D, 0.0D, 0.9375D, 1.0D, 0.9375D); and below that I have public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) { return ROAD_BARRIER_SIZE; } Without changing the size to something ridiculous is there a way to make it so you cant jump it.
  10. I am trying to make a new block like a fence I looked in both the fence and wall class and I cant find anything helpful. I only found this boolean which doesnt work for me. What do I need to add to keep the block height normal but make it so you cant climb over it? public boolean isPassable(IBlockAccess worldIn, BlockPos pos) { return false; }
  11. Here is the crash above is the code http://pastebin.com/n5NPdSRz
  12. http://pastebin.com/jTfVuLNX
  13. I used [embed=425,349] public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) { return this.isDouble() ? FULL_BLOCK_AABB : (state.getValue(HALF) == BlockSlab.EnumBlockHalf.TOP ? AABB_TOP_HALF : AABB_BOTTOM_HALF); }[/embed] and I cant remember if the game just would'nt load or if it crashed when I placed the box but it did one of the two.
  14. I am trying to make a block like a half slab but the class for the half slab has no info on the height does any one know what to do.

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.