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.

Swifts_Tech_Talks

Members
  • Joined

  • Last visited

Everything posted by Swifts_Tech_Talks

  1. Where would I go to get help on this mod then? Because anything above 1.9 is absolute garbage
  2. Thanks for the help... and no. If I wanted to make a 1.14 mod I'd make a 1.14 mod
  3. Follow up I have made a normal block similar to stone but is not an ore. Where and how would I place it in and how would I make it generate in oceans only? Ill try to give every detail needed
  4. Hi im making a mod on 1.7.10 and I have a block that I only want to spawn in oceans (all ocean biomes) I'm quite new to modding and I can't really find much on the internet for this so I wanted to make this thread. here is my current code package com.swift.swiftsmod; import java.util.Random; import cpw.mods.fml.common.IWorldGenerator; import net.minecraft.block.Block; import net.minecraft.init.Blocks; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenMinable; public class OreGeneration implements IWorldGenerator { @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { switch (world.provider.dimensionId) { case 1: generateEnd(world, random, chunkX, chunkZ); break; case 0: generateOverworld(world, random, chunkX, chunkZ); break; case -1: generateNether(world, random, chunkX, chunkZ); break; } } public void generateEnd(World world, Random rand, int x, int z) { } public void generateOverworld(World world, Random rand, int x, int z) { generateOre(SwiftsMod.blockwaterOre, world, rand, x, z, 3, 9, 15, 1, 80, Blocks.stone); generateOre(SwiftsMod.blockmoneyOre, world, rand, x, z, 4, 14, 20, 1, 130, Blocks.stone); //4 min vien, 14 max vien, chance 20, 1 min level, 130 max level } public void generateNether(World world, Random rand, int x, int z) { } public void generateOre(Block block, World world, Random random, int chunkX, int chunkZ, int minVienSize, int maxVienSize, int chance, int minY, int maxY, Block generateIn) { int veinSize = minVienSize + random.nextInt(maxVienSize - minVienSize); int heightRange = maxY - minY; WorldGenMinable gen = new WorldGenMinable(block, veinSize, generateIn); for(int i = 0; i < chance; i++){ int xRand = chunkX * 16 + random.nextInt(16); int yRand = random.nextInt(heightRange) + minY; int zRand = chunkZ * 16 + random.nextInt(16); gen.generate(world, random, xRand, yRand, zRand); } } }

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.