Jump to content

Recommended Posts

Posted

I have added a block called nightium which has been put in

 

when I go to put the ore in I did this

 

@Mod(modid = "Parallel Worlds", name = "Parallel Worlds", version = "1.0.0")
@NetworkMod(clientSideRequired = true, serverSideRequired = false)
public class ParallelWorlds {

@SidedProxy(clientSide = "parallelworlds.client.ClientProxyParallelWorlds", serverSide = "parallelworlds.common.CommonProxyParallelWorlds")

public static ClientProxyParallelWorlds proxy = new ClientProxyParallelWorlds();

Block parallelworldsBlock;

int parallelworldsBlockID = 682;

@Init
public void load(FMLInitializationEvent event){
	parallelworldsBlock = new BlockParallelWorldsBlock(parallelworldsBlockID, 0, Material.iron).setUnlocalizedName("Nightium").setHardness(8.0F).setResistance(10000.0F).setStepSound(Block.soundStoneFootstep);
	gameRegisters();
	languageRegisters();
	proxy.registerRenders();
}


	public void gameRegisters(){
		GameRegistry.registerBlock(parallelworldsBlock);}

		public void languageRegisters(){

		LanguageRegistry.addName(parallelworldsBlock, "Nightium");

		}

		Block NightiumOre;

		int NightiumOreID = 681;

		@Init
		public void load1(FMLInitializationEvent event){
			NightiumOre = new BlockNightiumOre(NightiumOreID, 1, Material.iron).setUnlocalizedName("Nightium Ore").setHardness(8.0F).setResistance(100000.0F).setStepSound(Block.soundStoneFootstep).setLightValue(1.0F);
			gameRegisters();
			languageRegisters();
			proxy.registerRenders();

		}


		public void gameRegisters1(){
			GameRegistry.registerBlock(NightiumOre);
		}

		public void languageRegisters1(){

			LanguageRegistry.addName(NightiumOre, "NightiumOre");
		}



		}




 

 

This is my proxy

 

public class ClientProxyParallelWorlds extends CommonProxyParallelWorlds{

@Override
public void registerRenders() {
	MinecraftForgeClient.preloadTexture("/textures/blocks/Nightium.png");
	}

public void registerRenders1(){
	MinecraftForgeClient.preloadTexture("/textures/blocks/NightiumOre.png");
}
}

 

This is the BlockNightiumOre File

 

public class BlockNightiumOre extends Block{

public BlockNightiumOre(int id, int texture, Material mat){
	super(id, mat);
	this.setCreativeTab(CreativeTabs.tabBlock);


}


public String getTextureFile(){
	return "/parallelworlds/parallelworlds_Blocks_NightiumOre.png";
}




}

 

Any help?

 

P.s I know ore is different code to block slightly just wondering if anyone can highlight the mistakes :D

STOP CRUCIFYING NEW MODDERS!!!!

Posted

I do not understand what the question is.

 

As far as your post is concerned it has no errors so it's fine.

 

If your going to post an code without a error, how are we supposed to help you with an error?

Posted

I do not understand what the question is.

 

As far as your post is concerned it has no errors so it's fine.

 

If your going to post an code without a error, how are we supposed to help you with an error?

 

The block isn't going into the game. I am trying to make an ore in minecraft but when i go into the creative tabs in-game the item doesn't exist

STOP CRUCIFYING NEW MODDERS!!!!

Posted

1. You need to make your Block variables public and static.

2. Your proxy declaration is a bit wrong. Look here on how to do it right: http://www.minecraftforge.net/wiki/Basic_Modding

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

1. You need to make your Block variables public and static.

2. Your proxy declaration is a bit wrong. Look here on how to do it right: http://www.minecraftforge.net/wiki/Basic_Modding

 

I followed the same code as previous and only nightium has appeared the ore hasn't. Any suggestions?

 

I'm new to making new blocks and ores

 

You mean in the creative tab? Either way, you made both block variables public and static as I said?

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

1. You need to make your Block variables public and static.

2. Your proxy declaration is a bit wrong. Look here on how to do it right: http://www.minecraftforge.net/wiki/Basic_Modding

 

I followed the same code as previous and only nightium has appeared the ore hasn't. Any suggestions?

 

I'm new to making new blocks and ores

 

 

 

You mean in the creative tab? Either way, you made both block variables public and static as I said?

 

The ore isnt in the game at all. In the process now :)

STOP CRUCIFYING NEW MODDERS!!!!

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.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I tried do download the essential mod to my mod pack but i didnt work. I paly on 1.21 and it should work. I use neoforge for my modding. The weird things is my friend somehow added the mod to his modpack and many others that I somehow can´t. Is there anything i can do? 
    • Thanks, I've now installed a slightly newer version and the server is at least starting up now.
    • i have the same issue. Found 1 Create mod class dependency(ies) in createdeco-1.3.3-1.19.2.jar, which are missing from the current create-1.19.2-0.5.1.i.jar Found 11 Create mod class dependency(ies) in createaddition-fabric+1.19.2-20230723a.jar, which are missing from the current create-1.19.2-0.5.1.i.jar Detailed walkthrough of mods which rely on missing Create mod classes: Mod: createaddition-fabric+1.19.2-20230723a.jar Missing classes of create: com/simibubi/create/compat/jei/category/sequencedAssembly/JeiSequencedAssemblySubCategory com/simibubi/create/compat/recipeViewerCommon/SequencedAssemblySubCategoryType com/simibubi/create/compat/rei/CreateREI com/simibubi/create/compat/rei/EmptyBackground com/simibubi/create/compat/rei/ItemIcon com/simibubi/create/compat/rei/category/CreateRecipeCategory com/simibubi/create/compat/rei/category/WidgetUtil com/simibubi/create/compat/rei/category/animations/AnimatedBlazeBurner com/simibubi/create/compat/rei/category/animations/AnimatedKinetics com/simibubi/create/compat/rei/category/sequencedAssembly/ReiSequencedAssemblySubCategory com/simibubi/create/compat/rei/display/CreateDisplay Mod: createdeco-1.3.3-1.19.2.jar Missing classes of create: com/simibubi/create/content/kinetics/fan/SplashingRecipe
    • The crash points to moonlight lib - try other builds or make a test without this mod and the mods requiring it
    • Do you have shaders enabled? There is an issue with the mod simpleclouds - remove this mod or disable shaders, if enabled  
  • Topics

×
×
  • Create New...

Important Information

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