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.

GotoLink

Members
  • Joined

  • Last visited

Everything posted by GotoLink

  1. net.minecraft.block.BlockDirt cannot be cast to java.lang.Character In your recipe at creepian.creepian.load(creepian.java:114), you forgot to put a character before your block.
  2. The coremod will be loaded before "normal" mods, so you don't have to worry about that. In Eclipse, you can do manually the base class edits you want for the "normal" mod to work.
  3. See setContainerItem(args) in Item or implement a ICraftingHandler.
  4. Java is not installed correctly.
  5. You are still no checking for non null player. if(mc.thePlayer!=null) //do things
  6. Submods idea is simple: The @Mod annotation can already handle basic mod dependency, so make submods use it with [required-after:"basemodid"] Then you code your own ItemRegistry, or OreRegistry, or whatever in your basemod. All submod should then use that to register things. Making interfaces and release it as an API could be useful too.
  7. GotoLink replied to Flenix's topic in Modder Support
    You might want to override protected boolean canThisPlantGrowOnThisBlockID(int par1) Bonemeal calls public void fertilize(World par1World, int par2, int par3, int par4) You should look at it in case that doesn't do what you want.
  8. Boat, Minecart, Horse, there are plenty of examples.
  9. Where do you set soundPoolMusic ? Use a IPlayerTracker to get onPlayerChangedDimension call.
  10. I was thinking about List, Map, Arrays or other data structure rather than a simple int.
  11. @Override public boolean requiresMultipleRenderPasses()//kinda strange , but don't worry... { return true; } @Override public int getRenderPasses(int metadata)//we can save the other passes, actually { return 1; } @Override public Icon getIcon(ItemStack stack, int pass){//icons from NBT here... }
  12. if(type==ItemRenderType.FIRST_PERSON_MAP) { return; } What about ItemRenderType.INVENTORY ? You don't check for that one ?
  13. int blockNum = item.getItemDamage()/16; Block blk = null; switch(blockNum) { case 0: blk = BlockLoader.civicBlock1; break; So what are those blocks in BlockLoader class ? Do they have a texture returned by block.getIcon(int,int) ?
  14. Well, it is likely that you tried to use or load data that didn't exist the first time you placed the block and saved it. You would need to catch those cases and save some default value.
  15. No, his texture registering is fine as long as the texture is in: assets/mac_dubstepgun/textures/models/dg3d.png I'd recommend registering the ItemRenderer on client side only.
  16. Let's take examples, shall we ? This is not good: public void onSoundLoadEvent(SoundLoadEvent event, URL URL) { This is not good either: @ForgeSubscribe public void onBackgroundMusic(PlayBackgroundMusicEvent event, Random rand) This is good: @ForgeSubscribe public void onSound(SoundLoadEvent event)
  17. Which doesn't apply to the null object, obviously. if(data != null... This is in your code, if you didn't know.
  18. Give us the lines where you set boundingbox...
  19. The ids from the config must be loaded before the items and blocks are initialized.
  20. public class CommonProxy { // Client stuff public void registerRenderers() { ClientRegistry.bindTileEntitySpecialRenderer(com.jmanpenilla.carbonmod.tileentity.TileGrill.class, new RenderGrill()); } } Doesn't make sense.
  21. You should check hasTagCompound() beforehand.
  22. short short1 = 222; int i = short1 - 108; this.inventoryRows = par2IInventory.getSizeInventory() / 9; this.ySize = i + this.inventoryRows * 18; Hah useless magic numbers...always fun to have those What did you put in getSizeInventory() for TileEntityUnderworldChest ?
  23. @Instance public static mod_SecurityCraft instance = new mod_SecurityCraft(); ... public static Block LaserBlock = new BlockLaserBlock(configHandler.LaserBlockID, Material.iron).setHardness(5F).setResistance(1000).setStepSound(Block.soundMetalFootstep).setCreativeTab(mod_SecurityCraft.tabSecurityCraft).setUnlocalizedName("Laser Tripwire Block"); public static Block Laser = new BlockLaser(configHandler.LaserID).setBlockUnbreakable().setResistance(1000F).setUnlocalizedName("Laser"); public static Block Keypad = new BlockKeypad(configHandler.KeypadID, Material.circuits).setHardness(10F).setResistance(1000).setStepSound(Block.soundStoneFootstep).setCreativeTab(mod_SecurityCraft.tabSecurityCraft).setUnlocalizedName("Keypad"); At least follow the basic tutorials in the wiki please. :'(
  24. Package in lower case please.

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.