Jump to content

Registry Objects Not Present


Willatendo

Recommended Posts

Hay, I was working on my mod and after following a tutorial on entities, (I have experienced this two times before. I just deleted one and re-did the other from scratch) But this has happened twice with entities. Every time I load Minecraft, I get a error that says Registry Objects Not Present, but I did everything right(but it still isn't working) Any help would be great!

Link to comment
Share on other sites

14 minutes ago, Willatendo said:

after following a tutorial on entities

That's the mistake, never follow a tutorial word for word. Even though you probably just didn't register the DeferredRegister to your mod event bus.

 

15 minutes ago, Willatendo said:

but I did everything right

I can't see it, you don't have it working, it makes for a great combination of trial and error when this could've been done in a single post. Please post your code next time.

Link to comment
Share on other sites

Here's the code:

 

Entity Init:

package com.willatendo.ancientcreatures.init;

import com.willatendo.ancientcreatures.AncientCreatures;
import com.willatendo.ancientcreatures.entities.PalaeonisciumEntity;

import net.minecraft.entity.EntityClassification;
import net.minecraft.entity.EntityType;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;

public class EntityInit  
{
	public static final DeferredRegister<EntityType<?>> ENTITIES = new DeferredRegister<>(ForgeRegistries.ENTITIES, AncientCreatures.MOD_ID);

	public static final RegistryObject<EntityType<PalaeonisciumEntity>> PALAEONISCIUM_ENTITY = ENTITIES.register("palaeoniscium_entity", () -> EntityType.Builder.<PalaeonisciumEntity>create(PalaeonisciumEntity::new, EntityClassification.CREATURE).size(0.2f, 0.5f).build(new ResourceLocation(AncientCreatures.MOD_ID, "palaeoniscium_entity").toString()));
}

 

Model:

package com.willatendo.ancientcreatures.client.entity.model;

import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.vertex.IVertexBuilder;
import com.willatendo.ancientcreatures.entities.PalaeonisciumEntity;

import net.minecraft.client.renderer.entity.model.EntityModel;
import net.minecraft.client.renderer.model.ModelRenderer;

public class PalaeonisciumEntityModel<T extends PalaeonisciumEntity> extends EntityModel<T> 
{
	private final ModelRenderer palaeoniscium;
	private final ModelRenderer body;
	private final ModelRenderer mainbodyparts;
	private final ModelRenderer mainbodyparts1;
	private final ModelRenderer mainbodyparts2;
	private final ModelRenderer mainbodyparts3;
	private final ModelRenderer body_angle;
	private final ModelRenderer face;
	private final ModelRenderer firstfacepart;
	private final ModelRenderer secondaryfacepart;
	private final ModelRenderer thirdfacepart;
	private final ModelRenderer tail;
	private final ModelRenderer tailtop;
	private final ModelRenderer tailbottem;
	private final ModelRenderer fins;
	private final ModelRenderer fintop;
	private final ModelRenderer fintop1;
	private final ModelRenderer fintop2;
	private final ModelRenderer finsleft;
	private final ModelRenderer mainfinleft;
	private final ModelRenderer secondaryfinleft;
	private final ModelRenderer thirdfinleft;
	private final ModelRenderer finsright;
	private final ModelRenderer mainfinright;
	private final ModelRenderer secondaryfinright;
	private final ModelRenderer thirdfinright;

	public PalaeonisciumEntityModel() 
	{
		textureWidth = 32;
		textureHeight = 32;

		palaeoniscium = new ModelRenderer(this);
		palaeoniscium.setRotationPoint(0.0F, 24.0F, 0.0F);
		

		body = new ModelRenderer(this);
		body.setRotationPoint(0.0F, 0.0F, 0.0F);
		palaeoniscium.addChild(body);
		

		mainbodyparts = new ModelRenderer(this);
		mainbodyparts.setRotationPoint(0.0F, 0.0F, 0.0F);
		body.addChild(mainbodyparts);
		

		mainbodyparts1 = new ModelRenderer(this);
		mainbodyparts1.setRotationPoint(0.0F, 0.0F, 0.0F);
		mainbodyparts.addChild(mainbodyparts1);
		mainbodyparts1.setTextureOffset(11, 0).addBox(-1.0F, -6.0F, -3.2F, 2.0F, 4.0F, 3.0F, 0.1F, false);

		mainbodyparts2 = new ModelRenderer(this);
		mainbodyparts2.setRotationPoint(0.0F, 0.0F, 0.0F);
		mainbodyparts.addChild(mainbodyparts2);
		mainbodyparts2.setTextureOffset(0, 8).addBox(-1.0F, -6.0F, 0.0F, 2.0F, 3.0F, 5.0F, 0.1F, false);

		mainbodyparts3 = new ModelRenderer(this);
		mainbodyparts3.setRotationPoint(0.0F, 0.0F, 0.0F);
		mainbodyparts.addChild(mainbodyparts3);
		mainbodyparts3.setTextureOffset(8, 17).addBox(-1.0F, -6.0F, 5.2F, 2.0F, 2.0F, 2.0F, 0.1F, false);

		body_angle = new ModelRenderer(this);
		body_angle.setRotationPoint(0.0F, 1.0F, 0.1F);
		body.addChild(body_angle);
		setRotationAngle(body_angle, 0.1745F, 0.0F, 0.0F);
		body_angle.setTextureOffset(0, 0).addBox(-1.0F, -3.974F, 0.3227F, 2.0F, 1.0F, 7.0F, 0.0F, false);

		face = new ModelRenderer(this);
		face.setRotationPoint(0.0F, 0.0F, 0.0F);
		body.addChild(face);
		

		firstfacepart = new ModelRenderer(this);
		firstfacepart.setRotationPoint(0.0F, 0.0F, 0.0F);
		face.addChild(firstfacepart);
		firstfacepart.setTextureOffset(0, 3).addBox(-1.0F, -6.0F, -4.3F, 2.0F, 2.0F, 1.0F, 0.0F, false);

		secondaryfacepart = new ModelRenderer(this);
		secondaryfacepart.setRotationPoint(0.0F, 0.0F, 0.0F);
		face.addChild(secondaryfacepart);
		secondaryfacepart.setTextureOffset(0, 0).addBox(-1.0F, -5.5F, -5.3F, 2.0F, 2.0F, 1.0F, 0.0F, false);

		thirdfacepart = new ModelRenderer(this);
		thirdfacepart.setRotationPoint(0.0F, 0.0F, 0.0F);
		face.addChild(thirdfacepart);
		thirdfacepart.setTextureOffset(19, 10).addBox(-1.0F, -3.0F, -4.8F, 2.0F, 1.0F, 1.0F, 0.0F, false);

		tail = new ModelRenderer(this);
		tail.setRotationPoint(0.0F, 0.0F, 0.0F);
		body.addChild(tail);
		

		tailtop = new ModelRenderer(this);
		tailtop.setRotationPoint(0.0F, -2.0F, 7.0F);
		tail.addChild(tailtop);
		setRotationAngle(tailtop, 0.4363F, 0.0F, 0.0F);
		tailtop.setTextureOffset(9, 2).addBox(0.0F, -3.8126F, 0.8452F, 0.0F, 2.0F, 6.0F, 0.0F, false);

		tailbottem = new ModelRenderer(this);
		tailbottem.setRotationPoint(0.0F, -1.625F, 6.0F);
		tail.addChild(tailbottem);
		setRotationAngle(tailbottem, -0.4363F, 0.0F, 0.0F);
		tailbottem.setTextureOffset(9, 5).addBox(0.0F, -3.8126F, -0.8452F, 0.0F, 2.0F, 5.0F, 0.0F, false);

		fins = new ModelRenderer(this);
		fins.setRotationPoint(0.0F, 0.0F, 0.0F);
		palaeoniscium.addChild(fins);
		

		fintop = new ModelRenderer(this);
		fintop.setRotationPoint(0.0F, -4.0F, 5.0F);
		fins.addChild(fintop);
		setRotationAngle(fintop, 0.0F, -1.5708F, 0.0F);
		

		fintop1 = new ModelRenderer(this);
		fintop1.setRotationPoint(-2.0F, 0.0F, 0.0F);
		fintop.addChild(fintop1);
		setRotationAngle(fintop1, 0.0F, 0.0F, -0.8727F);
		fintop1.setTextureOffset(9, 12).addBox(-1.5135F, -1.7646F, 0.0F, 6.0F, 1.0F, 0.0F, 0.0F, false);

		fintop2 = new ModelRenderer(this);
		fintop2.setRotationPoint(-1.0F, 0.0F, 0.0F);
		fintop.addChild(fintop2);
		setRotationAngle(fintop2, 0.0F, 0.0F, -1.2479F);
		fintop2.setTextureOffset(9, 12).addBox(-1.8707F, -0.9986F, 0.0F, 6.0F, 1.0F, 0.0F, 0.0F, false);

		finsleft = new ModelRenderer(this);
		finsleft.setRotationPoint(-1.0F, -1.0F, -2.0F);
		fins.addChild(finsleft);
		setRotationAngle(finsleft, 0.0F, 0.5236F, -0.7854F);
		

		mainfinleft = new ModelRenderer(this);
		mainfinleft.setRotationPoint(1.0F, 1.0F, 2.0F);
		finsleft.addChild(mainfinleft);
		mainfinleft.setTextureOffset(0, 16).addBox(-2.6503F, -2.4142F, -2.5094F, 3.0F, 1.0F, 2.0F, 0.0F, false);

		secondaryfinleft = new ModelRenderer(this);
		secondaryfinleft.setRotationPoint(0.0F, 0.0F, 0.0F);
		finsleft.addChild(secondaryfinleft);
		secondaryfinleft.setTextureOffset(16, 19).addBox(-2.215F, -1.7147F, 3.8019F, 2.0F, 1.0F, 1.0F, -0.1F, false);

		thirdfinleft = new ModelRenderer(this);
		thirdfinleft.setRotationPoint(0.0F, 0.0F, 0.0F);
		finsleft.addChild(thirdfinleft);
		thirdfinleft.setTextureOffset(18, 0).addBox(-2.9776F, -2.0683F, 6.537F, 2.0F, 1.0F, 1.0F, -0.2F, false);

		finsright = new ModelRenderer(this);
		finsright.setRotationPoint(1.0F, -1.0F, -2.0F);
		fins.addChild(finsright);
		setRotationAngle(finsright, 0.0F, -0.5236F, 0.7854F);
		

		mainfinright = new ModelRenderer(this);
		mainfinright.setRotationPoint(-1.0F, 1.0F, 2.0F);
		finsright.addChild(mainfinright);
		mainfinright.setTextureOffset(12, 14).addBox(-0.3497F, -2.4142F, -2.5094F, 3.0F, 1.0F, 2.0F, 0.0F, false);

		secondaryfinright = new ModelRenderer(this);
		secondaryfinright.setRotationPoint(0.0F, 0.0F, 0.0F);
		finsright.addChild(secondaryfinright);
		secondaryfinright.setTextureOffset(0, 19).addBox(0.215F, -1.7147F, 3.8019F, 2.0F, 1.0F, 1.0F, -0.1F, false);

		thirdfinright = new ModelRenderer(this);
		thirdfinright.setRotationPoint(0.0F, 0.0F, 0.0F);
		finsright.addChild(thirdfinright);
		thirdfinright.setTextureOffset(14, 17).addBox(0.9776F, -2.0683F, 6.537F, 2.0F, 1.0F, 1.0F, -0.2F, false);
	}

	@Override
	public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha)
	{
		palaeoniscium.render(matrixStack, buffer, packedLight, packedOverlay);
	}

	public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) 
	{
		modelRenderer.rotateAngleX = x;
		modelRenderer.rotateAngleY = y;
		modelRenderer.rotateAngleZ = z;
	}
	
	@Override
	public void setRotationAngles(T entityIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) 
	{
		
	}
	
	public ModelRenderer getbody() 
	{
		return body;
	}

	public ModelRenderer getmainbodyparts() 
	{
		return mainbodyparts;
	}

	public ModelRenderer getmainbodyparts1() 
	{
		return mainbodyparts1;
	}

	public ModelRenderer getmainbodyparts2() 
	{
		return mainbodyparts2;
	}

	public ModelRenderer getmainbodyparts3() 
	{
		return mainbodyparts3;
	}

	public ModelRenderer getface() 
	{
		return body_angle;
	}

	public ModelRenderer getfirstfacepart() 
	{
		return firstfacepart;
	}

	public ModelRenderer getsecondaryfacepart() 
	{
		return secondaryfacepart;
	}

	public ModelRenderer getthirdfacepart() 
	{
		return thirdfacepart;
	}

	public ModelRenderer gettail() 
	{
		return tail;
	}

	public ModelRenderer gettailtop() 
	{
		return tailtop;
	}

	public ModelRenderer gettailbottem() 
	{
		return tailbottem;
	}
	
	public ModelRenderer getfins() 
	{
		return fins;
	}
	
	public ModelRenderer fintop() 
	{
		return fintop;
	}
	
	public ModelRenderer getfintop1() 
	{
		return fintop1;
	}
	
	public ModelRenderer getfintop2() 
	{
		return fintop2;
	}
	
	public ModelRenderer getfinsleft() 
	{
		return finsleft;
	}
	
	public ModelRenderer getmainfinleft() 
	{
		return mainfinleft;
	}
	
	public ModelRenderer getsecondaryfinleft() 
	{
		return secondaryfinleft;
	}
	
	public ModelRenderer getthirdfinleft() 
	{
		return thirdfinleft;
	}
	
	public ModelRenderer getfinsright() 
	{
		return finsright;
	}
	
	public ModelRenderer getmainfinright() 
	{
		return mainfinright;
	}
	
	public ModelRenderer getsecondaryfinright() 
	{
		return secondaryfinright;
	}
	
	public ModelRenderer getthirdfinright() 
	{
		return thirdfinright;
	}
}

 

Renderer:

package com.willatendo.ancientcreatures.client.entity.render;

import com.willatendo.ancientcreatures.AncientCreatures;
import com.willatendo.ancientcreatures.client.entity.model.PalaeonisciumEntityModel;
import com.willatendo.ancientcreatures.entities.PalaeonisciumEntity;

import net.minecraft.client.renderer.entity.EntityRendererManager;
import net.minecraft.client.renderer.entity.MobRenderer;
import net.minecraft.util.ResourceLocation;

public class PalaeonisciumEntityRender extends MobRenderer<PalaeonisciumEntity, PalaeonisciumEntityModel<PalaeonisciumEntity>>
{
	protected static final ResourceLocation PALAEONISCIUM_TEXTURE = new ResourceLocation(AncientCreatures.MOD_ID, "textures/entity/palaeoniscium_texture.png");
	
	public PalaeonisciumEntityRender(EntityRendererManager renderManagerIn)
	{
		super (renderManagerIn, new PalaeonisciumEntityModel<PalaeonisciumEntity>(), 0.05F);
	}
	
	public ResourceLocation getEntityTexture(PalaeonisciumEntity entity) 
	{
		return PALAEONISCIUM_TEXTURE;
	}
}

 

ClientEventBusSubscriber:

package com.willatendo.ancientcreatures.util;

import com.willatendo.ancientcreatures.AncientCreatures;
import com.willatendo.ancientcreatures.client.entity.render.PalaeonisciumEntityRender;
import com.willatendo.ancientcreatures.init.BlockInit;
import com.willatendo.ancientcreatures.init.EntityInit;

import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.RenderTypeLookup;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.client.registry.RenderingRegistry;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus;
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;

@Mod.EventBusSubscriber(modid = AncientCreatures.MOD_ID, bus = Bus.MOD, value = Dist.CLIENT)
public class ClientEventBusSubscriber 
{
	@SubscribeEvent
	public static void clientSetup(FMLClientSetupEvent event)
	{
		//Doors
		RenderTypeLookup.setRenderLayer(BlockInit.CONIFER_DOOR.get(), RenderType.getCutout());
		RenderTypeLookup.setRenderLayer(BlockInit.CONIFER_TRAPDOOR.get(), RenderType.getCutout());
		
		//Glass
		RenderTypeLookup.setRenderLayer(BlockInit.AWNING_GLASS.get(), RenderType.getTranslucent());
		RenderTypeLookup.setRenderLayer(BlockInit.DECORATIONAL_GLASS.get(), RenderType.getTranslucent());
		RenderTypeLookup.setRenderLayer(BlockInit.REINFORCED_GLASS.get(), RenderType.getTranslucent());
		RenderTypeLookup.setRenderLayer(BlockInit.REINFORCED_STEEL_GLASS.get(), RenderType.getTranslucent());
		RenderTypeLookup.setRenderLayer(BlockInit.TINTED_DECORATIONAL_GLASS.get(), RenderType.getTranslucent());
		
		//Machines
		RenderTypeLookup.setRenderLayer(BlockInit.FOSSIL_CLEANER.get(), RenderType.getTranslucent());
		RenderTypeLookup.setRenderLayer(BlockInit.FOSSIL_GRINDER.get(), RenderType.getTranslucent());
		RenderTypeLookup.setRenderLayer(BlockInit.DNA_EXTRACTOR.get(), RenderType.getTranslucent());
		RenderTypeLookup.setRenderLayer(BlockInit.DNA_SEQUENCER_COMBINER.get(), RenderType.getTranslucent());
		RenderTypeLookup.setRenderLayer(BlockInit.INCUBATOR.get(), RenderType.getTranslucent());
		
		//Saplings
		RenderTypeLookup.setRenderLayer(BlockInit.CONIFER_SAPLING.get(), RenderType.getCutout());
		
		//Plant
		RenderTypeLookup.setRenderLayer(BlockInit.SMALL_DESERT_PLANT.get(), RenderType.getCutout());
		RenderTypeLookup.setRenderLayer(BlockInit.MEDIUM_DESERT_PLANT.get(), RenderType.getCutout());
		RenderTypeLookup.setRenderLayer(BlockInit.LARGE_DESERT_PLANT.get(), RenderType.getCutout());
		RenderTypeLookup.setRenderLayer(BlockInit.DESERT_GRASS.get(), RenderType.getCutout());
		
		//Entities
		RenderingRegistry.registerEntityRenderingHandler(EntityInit.PALAEONISCIUM_ENTITY.get(), PalaeonisciumEntityRender::new);
	}
}

 

Main / AncientCreatures:

package com.willatendo.ancientcreatures;

import com.willatendo.ancientcreatures.init.BiomeInit;
import com.willatendo.ancientcreatures.init.BlockInit;
import com.willatendo.ancientcreatures.init.DimensionInit;
import com.willatendo.ancientcreatures.init.EntityInit;
import com.willatendo.ancientcreatures.init.ItemInit;
import com.willatendo.ancientcreatures.init.SoundInit;
import com.willatendo.ancientcreatures.itemgroups.ACBlocksItemGroup;
import com.willatendo.ancientcreatures.world.gen.ModOreGen;

import net.minecraft.item.BlockItem;
import net.minecraft.item.Item;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.biome.Biome;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus;
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
import net.minecraftforge.fml.event.lifecycle.FMLLoadCompleteEvent;
import net.minecraftforge.fml.event.server.FMLServerStartingEvent;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
import net.minecraftforge.registries.IForgeRegistry;

@Mod("ancientcreatures")
@EventBusSubscriber(modid = AncientCreatures.MOD_ID, bus = Bus.MOD)
public class AncientCreatures
{
    public static final String MOD_ID = "ancientcreatures";
    public static AncientCreatures instance;
    public static final ResourceLocation PERMIAN_DIM_TYPE = new ResourceLocation(MOD_ID, "permian");

    public AncientCreatures() 
    {
    	final IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
        modEventBus.addListener(this::setup);
        modEventBus.addListener(this::doClientStuff);

        SoundInit.SOUNDS.register(modEventBus);
        ItemInit.ITEMS.register(modEventBus);
        BlockInit.BLOCKS.register(modEventBus);
        EntityInit.ENTITIES.register(modEventBus);
        BiomeInit.BIOMES.register(modEventBus);
        DimensionInit.MOD_DIMENSIONS.register(modEventBus);
        
        instance = this;
        MinecraftForge.EVENT_BUS.register(this);
    }

    @SubscribeEvent
    public static void createBlockItems(final RegistryEvent.Register<Item> event)
    {
    	final IForgeRegistry<Item> registry = event.getRegistry();
    	
    	BlockInit.BLOCKS.getEntries().stream()/*.filter(block -> !(block.get() instanceof PermianReedsCrop))*/.map(RegistryObject::get).forEach(block ->
    	{
    		final Item.Properties properties = new Item.Properties().group(ACBlocksItemGroup.instance);
    		final BlockItem blockItem = new BlockItem(block, properties);
    		blockItem.setRegistryName(block.getRegistryName());
    		registry.register(blockItem);
    	});
    }
    
    @SubscribeEvent
    public static void onRegisterBiomes(final RegistryEvent.Register<Biome> event)
    {
    	BiomeInit.registerBiomes();
    }
    
    private void setup(final FMLCommonSetupEvent event)
    {
    	
    }

    private void doClientStuff(final FMLClientSetupEvent event) 
    {
        
    }

    @SubscribeEvent
    public void onServerStarting(FMLServerStartingEvent event) 
    {
        
    }
    
    @SubscribeEvent
    public static void loadCompleteEvent(FMLLoadCompleteEvent event)
    {
    	ModOreGen.generateOre();
    }
}

 

Link to comment
Share on other sites

Don't use com.willatendo unless you own willatendo.com (Check out GitHub Pages for a free website)

It would be easier to test things if you posted your code as a GitHub repo.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

Spoiler

Logs (Most issues require logs to diagnose):

Spoiler

Please post logs using one of the following sites (Thank you Lumber Wizard for the list):

https://gist.github.com/100MB Requires member (Free)

https://pastebin.com/: 512KB as guest, 10MB as Pro ($$$)

https://hastebin.com/: 400KB

Do NOT use sites like Mediafire, Dropbox, OneDrive, Google Drive, or a site that has a countdown before offering downloads.

 

What to provide:

...for Crashes and Runtime issues:

Minecraft 1.14.4 and newer:

Post debug.log

Older versions:

Please update...

 

...for Installer Issues:

Post your installer log, found in the same place you ran the installer

This log will be called either installer.log or named the same as the installer but with .log on the end

Note for Windows users:

Windows hides file extensions by default so the installer may appear without the .jar extension then when the .log is added the log will appear with the .jar extension

 

Where to get it:

Mojang Launcher: When using the Mojang launcher debug.log is found in .minecraft\logs.

 

Curse/Overwolf: If you are using the Curse Launcher, their configurations break Forge's log settings, fortunately there is an easier workaround than I originally thought, this works even with Curse's installation of the Minecraft launcher as long as it is not launched THROUGH Twitch:

Spoiler
  1. Make sure you have the correct version of Forge installed (some packs are heavily dependent on one specific build of Forge)
  2. Make a launcher profile targeting this version of Forge.
  3. Set the launcher profile's GameDir property to the pack's instance folder (not the instances folder, the folder that has the pack's name on it).
  4. Now launch the pack through that profile and follow the "Mojang Launcher" instructions above.

Video:

Spoiler

 

 

 

or alternately, 

 

Fallback ("No logs are generated"):

If you don't see logs generated in the usual place, provide the launcher_log.txt from .minecraft

 

Server Not Starting:

Spoiler

If your server does not start or a command window appears and immediately goes away, run the jar manually and provide the output.

 

Reporting Illegal/Inappropriate Adfocus Ads:

Spoiler

Get a screenshot of the URL bar or copy/paste the whole URL into a thread on the General Discussion board with a description of the Ad.

Lex will need the Ad ID contained in that URL to report it to Adfocus' support team.

 

Posting your mod as a GitHub Repo:

Spoiler

When you have an issue with your mod the most helpful thing you can do when asking for help is to provide your code to those helping you. The most convenient way to do this is via GitHub or another source control hub.

When setting up a GitHub Repo it might seem easy to just upload everything, however this method has the potential for mistakes that could lead to trouble later on, it is recommended to use a Git client or to get comfortable with the Git command line. The following instructions will use the Git Command Line and as such they assume you already have it installed and that you have created a repository.

 

  1. Open a command prompt (CMD, Powershell, Terminal, etc).
  2. Navigate to the folder you extracted Forge’s MDK to (the one that had all the licenses in).
  3. Run the following commands:
    1. git init
    2. git remote add origin [Your Repository's URL]
      • In the case of GitHub it should look like: https://GitHub.com/[Your Username]/[Repo Name].git
    3. git fetch
    4. git checkout --track origin/master
    5. git stage *
    6. git commit -m "[Your commit message]"
    7. git push
  4. Navigate to GitHub and you should now see most of the files.
    • note that it is intentional that some are not synced with GitHub and this is done with the (hidden) .gitignore file that Forge’s MDK has provided (hence the strictness on which folder git init is run from)
  5. Now you can share your GitHub link with those who you are asking for help.

[Workaround line, please ignore]

 

Link to comment
Share on other sites

10 hours ago, Willatendo said:

just the spawn egg

Called it. Definitely called it. 

10 hours ago, Willatendo said:

however, it was breaking before than.

When you finish posting and stack trace and the repo, you should probably get on creating a custom entity spawn egg that accepts a supplier of an entity type instead of the actual entity type. Items are registered before entities so entities don't exist when you try to register the spawn egg. Any other error location and fix can most likely be determined from the repo and stack trace.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.