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. What general3214 said. And move ZeBiome = new BiomeGenZecraft(25); into your load method, before GameRegistry.addBiome... You sooo need to learn Java dude.
  2. It should already be fixed by the code I gave you. Anyway, you can change your check in the previous line with: if(i1>0 &&....)
  3. i1 is equal to 0, thus at (l1, i1 -1, j1) you are in the void and can't get a block id.
  4. A static variable will always initialize first, if given the chance.
  5. If installed on the server, it will work for everyone. I made it multiplayer compatible. You need to register the command into server for it to work. Having it on client will try registering it, but I don't know what would be the result. Oh, it is written for 1.6 by the way, though downgrading to 1.5.2 shouldn't require much work.
  6. Error here: at mod.gmod622.biome.BiomeGenZecraft.<init>(BiomeGenZecraft.java:24) You have a null at line 24 of your BiomeGenZecraft class, in your constructor. Your initialized your biome before anything else in your main mod class. public static final BiomeGenBase ZeBiome = new BiomeGenZecraft(25); Which gives you null for anything that is not yet initialized.
  7. No actually, I would go with this: int xCoord, yCoord, zCoord; for(int i = 0; i < 10; i++) { xCoord = chunkX + random.nextInt(16); yCoord = 50 + random.nextInt(206);//try generate between 50 and 256 zCoord = chunkZ + random.nextInt(16); if(generate(world, random, xCoord, yCoord, zCoord)) break; }
  8. It is not an item, this is a BlockCocoa. Just add setBlock(x,y,z, Block.cocoa.blockID) in your generation code.
  9. Don't have any useful ideas left. Use a new computer ?
  10. Well first, you are creating 10 instances of your class within the class. And your "grape tree", should it spawn at the lava level ? underground ?
  11. I made this: public class CommandToDo extends CommandBase{ /** * @author GotoLink */ private static Map<String,List<String>> toDoList = new HashMap(); @Override public String getCommandName() { return "TODO"; } @Override public String getCommandUsage(ICommandSender icommandsender) { return "/" + getCommandName() + "<print:remove:add <message>> "; } @Override public void processCommand(ICommandSender sender, String[] command) { if(command.length == 1 ||( command.length == 2 && command[0].equals("add")))//We have valid number of arguments { String username = sender.getCommandSenderName(); if(toDoList.containsKey(username)) { List<String> business = toDoList.get(username); if(command[0].equals("print")) { sender.sendChatToPlayer(ChatMessageComponent.func_111066_d(business.get(0))); } else if(command[0].equals("add")) { business.add(command[0]); toDoList.put(username, business); } else if(command[0].equals("remove")) { business.remove(0); toDoList.put(username, business); } } else if(command[0].equals("add")) { List<String> business = new ArrayList(); business.add(command[0]); toDoList.put(username, business); } } else throw new WrongUsageException(getCommandUsage(sender)); } @Override public List addTabCompletionOptions(ICommandSender var1, String[] var2) { return var2.length == 1 ? getListOfStringsMatchingLastWord(var2, new String[] {"print", "add", "remove"}): null; } } This command allows a player to store is own TODO list. Usage: A player types /TODO add Remind me to do this please. he can then /TODO print to get back "Remind me to do this please." as a private chat message. or /TODO remove to check out his oldest TODO message.
  12. Look at the EntityList and Random classes, they can help you.
  13. public static int[] drops = new int[]{id1,id2,id3,id4}; @Override public int idDropped(int par1, Random random, int par2) { return this.drops[random.nextInt(drops.length)]; } Replace id1,id2 etc, with the id you want.
  14. You confused provider dimensionID: 1 is for the End, -1 is for the Nether
  15. Well maybe you can help him more than i ? I found this thread with same issue here
  16. ingotInventory.isBurning() Is it supposed to change on client side ?
  17. Well, why do you think it changed ? AFAIK, world.worldInfo.getSpawnX(); still applies. By the way, you shouldn't generate things on the spawn. They are protection rules to avoid people breaking it, why do you want to f* with this ?
  18. Are you sure you can return null there ? @Override public String getModContainerClass() { return null; } @Override public String getSetupClass() { return null; }
  19. Nope, just taking as an example. Why would it be any different for your coremod ?
  20. With LivingJump event, you can probably change jumpMovementFactor or motionY.
  21. From Optifine installation: Click "Edit Profile" - Select the checkbox "JVM Arguments" and in the field next to it add "-Dfml.ignoreInvalidMinecraftCertificates=true -Dfml.ignorePatchDiscrepancies=true" - Click "Save Profile"
  22. Isn't there some special parameter to add to the java command line ? Like -disable_consistency_check=true ?
  23. Why using obfuscated names ?
  24. now if thats true it means that there is a seeeeeeeeeeeeeeeerious problem with mc render engine ! and it also mean that ISBRH is way usefull then i tought sorry for not being that much help, i usually use TESR becasue you can add animation to it :\ but basicly considering what pelep said, it is worth to note that the calls to startDrawingQuads and draw() should probably not appear in a ISBRH I can confirm this problem Sadly.
  25. No, I didn't, thus we agreed. Yes, of course. You are only assuming that the changed code will run as efficiently as the original one. I don't.

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.