Making a tiny mod that basically only adds the coals and fuels from ProjectE, and would like to know how to make my Nether Star (substitution for the Philo-stone) could be used indefinitely in crafting. You'll also have to ELI5 and like I don't know ANY java. I'm very, VERY new to Java, and that is an understatement. I used MCreator for the recipe I have so far. If you could give me just a simple cut/paste of how to implement this, please do.
Code Below.
package mod.mcreator;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraft.world.World;
import net.minecraft.util.ResourceLocation;
import net.minecraft.item.crafting.Ingredient;
import net.minecraft.item.ItemStack;
import net.minecraft.init.Items;
import java.util.Random;
public class mcreator_recipepureCoal {
public static Object instance;
public mcreator_recipepureCoal() {
}
public void load(FMLInitializationEvent event) {
ItemStack recStack = new ItemStack(mcreator_pureCoal.block, (int) (1));
Object[] recipe = {"012", "34 ", " ", '0',
Ingredient.fromStacks(new ItemStack(Items.NETHER_STAR, (int) (1))), '1',
Ingredient.fromStacks(new ItemStack(Items.COAL, (int) (1))), '2',
Ingredient.fromStacks(new ItemStack(Items.COAL, (int) (1))), '3',
Ingredient.fromStacks(new ItemStack(Items.COAL, (int) (1))), '4',
Ingredient.fromStacks(new ItemStack(Items.COAL, (int) (1))),};
GameRegistry.addShapedRecipe(new ResourceLocation("testenvironmentmod:recipepurecoal"), new ResourceLocation("custom"), recStack, recipe);
}
public void generateNether(World world, Random random, int chunkX, int chunkZ) {
}
public void generateSurface(World world, Random random, int chunkX, int chunkZ) {
}
public int addFuel(ItemStack fuel) {
return 0;
}
public void registerRenderers() {
}
public void serverLoad(FMLServerStartingEvent event) {
}
public void preInit(FMLPreInitializationEvent event) {
}
}