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.

Featured Replies

Posted

trying to figure out correct naming for bop quicksand. Block always return null.

problem area

      Block quicksand = GameRegistry.findBlock("BiomesOPlenty","quicksand");
      Block quicksand2 = GameRegistry.findBlock("BiomesOPlenty","Quicksand");
      Block sand = GameRegistry.findBlock("minecraft", "sand");

 

main.java

package wolff.bop_tweaks;

import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;

import net.minecraft.block.Block;

import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.registry.GameRegistry;

import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;

import java.io.PrintWriter;

@Mod(modid = Main.MODID, name = Main.MODNAME, version = Main.VERSION)
public class Main{
  public static final String MODID = "bop_tweaks";
  public static final String MODNAME = "Bop Tweaks Mod";
  public static final String VERSION = "0.1.0";

  public static ModChecker modChecker;
  public static PrintWriter writer;
  public static boolean writer_on;

  @Instance
  public static Main instance = new Main();

  @EventHandler
  public void preInit(FMLPreInitializationEvent e) {
    try {
      writer = new PrintWriter("BopTweaks.txt", "UTF-8");
      writer_on = true;
    } catch (Exception ex) {
      writer_on = false;
    }

  }

  @EventHandler
  public void init(FMLInitializationEvent e) {
    System.out.println("Called method: [init]");
  }

  @EventHandler
  public void postInit(FMLPostInitializationEvent e) {
    modChecker = new ModChecker();
    if(writer_on) {
      writer.println("Bop is loaded: " + ModChecker.isBopLoaded);
    }

    if(ModChecker.isBopLoaded) {
      Block quicksand = GameRegistry.findBlock("BiomesOPlenty","quicksand");
      Block quicksand2 = GameRegistry.findBlock("BiomesOPlenty","Quicksand");
      Block sand = GameRegistry.findBlock("minecraft", "sand");
      GameRegistry.addSmelting(new ItemStack(quicksand, 1, 1), new ItemStack(sand, 1, 1), 0.0F);
      if(writer_on) {
        writer.println("QuickSand: " + quicksand);
        writer.println("QuickSand2: " + quicksand2);
        writer.println("Sand: " + sand);
      }
    }

    if(writer_on) {
      writer.close();
    }
  }
}

 

I don't know about the 1.7.10 version, but skimming over the 1.10.2 source code of Biomes O' Plenty, it seems quicksand is not actually a block, but a fluid registered as such with the name "sand".

 

The full source is here if you want to look over it yourself: https://github.com/Glitchfiend/BiomesOPlenty/blob/BOP-1.10.2-5.0.x/src/main/java/biomesoplenty/

 

There's also a 1.7.10 branch at that repo, but I couldn't actually find the quicksand class in that version.

Whatever Minecraft needs, it is most likely not yet another tool tier.

1.7.10 is no longer supported on this forum, as soon as a moderator finds this thread, it will be locked.

Guest
This topic is now closed to further replies.

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.