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.

hotrods20

Members
  • Joined

  • Last visited

Everything posted by hotrods20

  1. Alright, I moved it to libs instead of lib and it worked. A tutorial I read said put all dependencies in lib. Guess it's old.
  2. I've been messing around with CoFHLib and a few others lately but I can't recompile. I tried adding them to the "dependencies" section in build.gradle but it won't except dependencies I already have. How can I add them without it crashing? Tried: compile 'lib/dependency.jar' compile group: 'group.name', name: 'libname', version: 'version' Any help would be appreciated.
  3. What version of Optifine are you using? 1.7.10 A4 was really buggy for me and caused a lot of mods to stop working. The newest version which I think came out today has some bug fixes. Version 1.7.10 B1. Refer to http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1272953-optifine-hd-b2-fps-boost-hd-textures-aa-af-and
  4. Couldn't you also use DimensionManager.getWorld(targetDimension) or would that not load the dimension up?
  5. The problem with doing 1.0D instead of a random double or Gaussian is that the particles will all spawn in one spot and fly into the players head instead spawning around the player and going into random spots. In basic though, that is fine code to get started.
  6. private Random rand = new Random(); @Override public void onUpdate(ItemStack is, World world, Entity ent, int i, boolean bool) { if(ent != null && ent instanceof EntityPlayer && bool) { EntityPlayer p = (EntityPlayer)ent; world.spawnParticle("portal", p.posX, p.posY, p.posZ, rand.nextGaussian(), rand.nextGaussian(), rand.nextGaussian()); } } This sends all particles to your head. private Random rand = new Random(); @Override public void onUpdate(ItemStack is, World world, Entity ent, int i, boolean bool) { if(ent != null && ent instanceof EntityPlayer && bool) { EntityPlayer p = (EntityPlayer)ent; world.spawnParticle("portal", p.posX, p.posY-rand.nextInt(2), p.posZ, rand.nextGaussian(), rand.nextGaussian(), rand.nextGaussian()); } } This sends particles to random points on your body(height wise).
  7. Alright, I'll use the Block.getBlockFromName. That seems like the best choice since I know users will have problems finding block IDs without it being handed to them. Thanks!
  8. The problem is that users will be able to add logs/blocks to this list if they add more mods and want my tools to work with them and I don't think users will know the blocks file/reference.
  9. I know IDs have been removed and you can access them with Block.getIdFromBlock but is there a better system I can use without using the blocks unlocalized name? I currently have an array of BlockIDs that can be cut by a special axe but with the "removal" of IDs, it there an easier way to reference every type of log with just a string or two?
  10. Alright, thanks. I'll find it eventually.
  11. Quick question, is there a version of this for Minecraft 1.6.4?
  12. Is it possible to make a mod server side only? That way users won't need to install it with their already existing mods?
  13. Thank you so much. Didn't know that. Also didn't see in Javadoc. Very helpful. I don't really like gradle....
  14. In the code I'm importing to 1.7.10 from 1.6.4, I used World.destroyBlock(...) quite a bit but it doesn't work now and I can't see an obvious replacement for it. Is there a new way to do it or do I have to find a workaround?
  15. Well, with the y, I recommend just doing y = ((int)player.posY)-1
  16. I recommend checking out onArmorTickUpdate in the Item.class. You can use it on your boots so that when they are equipped, you can check where the player is and see what block they might be standing on.
  17. Have you looked to see if Twilight Forest is open sauce? I know it has an uncrafting table that might be of use to you. Well, last time I played it did.
  18. I have a custom pickaxe that mines the ore and all ores around it and I'm not sure how to account for Silk Touch. Here is the code: public boolean onBlockDestroyed(ItemStack par1ItemStack, World par2World, int par3, int x, int y, int z, EntityLivingBase par7EntityLivingBase) { super.onBlockDestroyed(par1ItemStack, par2World, par3, x, y, z, par7EntityLivingBase); if(!par7EntityLivingBase.isSneaking()) { String st1 = Integer.toString(par2World.getBlockId(x, y, z)); String st2 = st1 + ":" + Integer.toString(par2World.getBlockMetadata(x, y, z)); if(Arrays.asList(this.ores).contains(st1) || Arrays.asList(this.ores).contains(st2)) { //par2World.destroyBlock(x, y, z, true); this.repeatMine(par2World, x, y, z); } } return true; } public void repeatMine(World world, int x, int y, int z) { for(int i = -1; i <= 1; i++) { for(int j = -1; j <= 1; j++) { for(int k = -1; k <= 1; k++) { String st1 = Integer.toString(world.getBlockId(x + i, y + j, z + k)); String st2 = st1 + ":" + Integer.toString(world.getBlockMetadata(x + i, y + j, z + k)); if(Arrays.asList(this.ores).contains(st1) || Arrays.asList(this.ores).contains(st2)) { world.destroyBlock(x + i, y + j, z + k, true); this.repeatMine(world, x + i, y + j, z + k); } } } } }
  19. So, just an entity that requires that chunk to be updated and that will just stay there keeping it loaded?
  20. I need to load a dimension/world that the player isn't in to access a Tile Entity in that world, how would I go about loading the dimension/world to access the Tile Entity? Is there a mod or some source code I could check out?
  21. Thank you, exactly what I was looking for.
  22. I've been stuck on this. Is there a way to get the world object with just the dimension ID?
  23. I don't think you need to use a coremod, there are several ways of going about this, all being rendering code. You can look at some other mods if they're open source. One I would look into is the hat mod.
  24. Another thing you could check is when you're testing, make sure you're not in a desert biome.
  25. Can I see your onBlockActivated?

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.