Try and continue and if if they give you any problems let me know. I have no idea why that is occurring.
In that case, heres my code. Its my Common Proxy.
package monsterhunter798.villagewarriors.common;
public class CommonProxy {
}
villagewarriors.proxy.methodNameHere();
the errors: ; in the body of the proxy and } on the line before the proxy. Please help.
oh and the errors say:
for }: Syntax error on token"}""{" expected.
for ;: Syntax error, insert"}" to complete class body.
and if I fix the error on }, then there will be another error on one of my dots. It says:Syntax error on token"."",= expected.
The Meaning of Life, the Universe, and Everything.
Join Date:
12/1/2012
Posts:
208
Member Details
And when is the mobs tutorial coming? And can you consider biome and dimension tutorials please?
And is it true that whatever you want to make (block,mob,etc.) you can find out how to make by taking a look at vanilla minecraft's classes?
And when is the mobs tutorial coming? And can you consider biome and dimension tutorials please?
And is it true that whatever you want to make (block,mob,etc.) you can find out how to make by taking a look at vanilla minecraft's classes?
The mobs tutorial won't be for a little while as I have ran into a snag with trying to create mobs. And to a certain extent you can
the errors: ; in the body of the proxy and } on the line before the proxy. Please help.
oh and the errors say:
for }: Syntax error on token"}""{" expected.
for ;: Syntax error, insert"}" to complete class body.
and if I fix the error on }, then there will be another error on one of my dots. It says:Syntax error on token"."",= expected.
That "villagewarrirors.proxy.methodNameHere();" part... what exactly does that do? Off the top of my head that shouldn't be in there.
Rollback Post to RevisionRollBack
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
I'm making my own mod. I tried with modloader, but I decided to make it with forge.
There is something wrong with the code.
Can somebody help me PLEASE????????????????????????????????????????????????????????
BlockUraniumOre.java
package unclestevesmods;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
public class BlockUraniumOre extends Block {
public BlockUraniumOre(int i, int j, Material material) {
super(i, j, material.rock);
this.setCreativeTab(CreativeTabs.tabBlock);
}
public String getTextureFile(){
return "/multistar444/mod_terrain.png";
}
}
ClientProxyUnclestevesmods.java
package unclestevesmods;
import net.minecraftforge.client.MinecraftForgeClient;
import unclestevesmods.common.CommonProxyUnclestevesmods;
public class ClientProxyUnclestevesmods extends CommonProxyUnclestevesmods {
@Override
public void registerRenderThings() {
MinecraftForgeClient.preloadTexture("/multistar444/mod_terrain.png");
}
}
CommonProxyUnclestevesmods.java
package unclestevesmods.common;
public class CommonProxyUnclestevesmods {
public void registerRenderThings() {
}
}
Unclestevesmods.java
package unclestevesmods;
import unclestevesmods.common.CommonProxyUnclestevesmods;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
@Mod(modid = "multistar444_Unclestevesmods", name = "Uncle Steve's mods", version = "1.0")
@NetworkMod(clientSideRequired = true, serverSideRequired = false)
public class Unclestevesmods {
public static Block uraniumOre;
@SidedProxy(clientSide = "unclestevesmods.client.ClientProxyUnclestevesmods", serverSide = "unclestevesmods.common.CommonProxyUnclestevesmods")
public static CommonProxyUnclestevesmods proxy;
@Init
public void load(FMLInitializationEvent event) {
proxy.registerRenderThings();
uraniumOre = new BlockUraniumOre(150, 0, Material.rock).setHardness(3F).setStepSound(Block.soundStoneFootstep).setBlockName("uraniumOre");
GameRegistry.registerBlock(uraniumOre);
LanguageRegistry.addName(uraniumOre, "Uranium ore");
}
}
What exactly is wrong? No one can help if we don't know what's wrong.
Rollback Post to RevisionRollBack
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
Okay, say you had a method that tells the game to re-render all the blocks in the world (to stop lag or something), you wanted to call this from inside another class, you would use that code.
Rollback Post to RevisionRollBack
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
Okay, say you had a method that tells the game to re-render all the blocks in the world (to stop lag or something), you wanted to call this from inside another class, you would use that code.
Oh. Okay.
EDIT Where to put entity and mob classes?
Oh. Okay.
EDIT Where to put entity and mob classes?
You can put any class anywhere. It doesn't matter where you put a class, it only matters what's in it. For me personally, I allocate a separate package for each type of class.. ie, a block package for blocks, an item package for items, an entity package for entities, etc.
Rollback Post to RevisionRollBack
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
You can put any class anywhere. It doesn't matter where you put a class, it only matters what's in it. For me personally, I allocate a separate package for each type of class.. ie, a block package for blocks, an item package for items, an entity package for entities, etc.
DEATH TO THE GREENBLOODS(Creepers)!!!
Try and continue and if if they give you any problems let me know. I have no idea why that is occurring.
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
My Github page.
The entire Minecraft shader development community now has its own Discord server! Feel free to join and chat with all the developers!
In that case, heres my code. Its my Common Proxy.
package monsterhunter798.villagewarriors.common;
public class CommonProxy {
}
villagewarriors.proxy.methodNameHere();
oh and the errors say:
for }: Syntax error on token"}""{" expected.
for ;: Syntax error, insert"}" to complete class body.
and if I fix the error on }, then there will be another error on one of my dots. It says:Syntax error on token"."",= expected.
DEATH TO THE GREENBLOODS(Creepers)!!!
And is it true that whatever you want to make (block,mob,etc.) you can find out how to make by taking a look at vanilla minecraft's classes?
DEATH TO THE GREENBLOODS(Creepers)!!!
That should be easy, I'll include it as an example for the furnace tutorial.
Yes.
Yeah, you don't need to but it is quicker than Forge downloading MCP, the client and server files is alright though.
The mobs tutorial won't be for a little while as I have ran into a snag with trying to create mobs. And to a certain extent you can
That "villagewarrirors.proxy.methodNameHere();" part... what exactly does that do? Off the top of my head that shouldn't be in there.
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
My Github page.
The entire Minecraft shader development community now has its own Discord server! Feel free to join and chat with all the developers!
Its for the proxies. you said: "In other classes: YourModName.proxy.methodNameHere();
DEATH TO THE GREENBLOODS(Creepers)!!!
So that would be in your main mod class?
What exactly is wrong? No one can help if we don't know what's wrong.
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
My Github page.
The entire Minecraft shader development community now has its own Discord server! Feel free to join and chat with all the developers!
Nope. You said "In other classes" so I thought it should be added to every other classes.
DEATH TO THE GREENBLOODS(Creepers)!!!
By other classes I mean't that if you ever want to call a method that's inside one of your proxies, just use that to call it.
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
My Github page.
The entire Minecraft shader development community now has its own Discord server! Feel free to join and chat with all the developers!
Oh. Okay. But what do you mean?
DEATH TO THE GREENBLOODS(Creepers)!!!
Okay, say you had a method that tells the game to re-render all the blocks in the world (to stop lag or something), you wanted to call this from inside another class, you would use that code.
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
My Github page.
The entire Minecraft shader development community now has its own Discord server! Feel free to join and chat with all the developers!
Oh. Okay.
EDIT Where to put entity and mob classes?
DEATH TO THE GREENBLOODS(Creepers)!!!
You can put any class anywhere. It doesn't matter where you put a class, it only matters what's in it. For me personally, I allocate a separate package for each type of class.. ie, a block package for blocks, an item package for items, an entity package for entities, etc.
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
My Github page.
The entire Minecraft shader development community now has its own Discord server! Feel free to join and chat with all the developers!
okay.
DEATH TO THE GREENBLOODS(Creepers)!!!
And loggers are not necessary, you can use System.out.println but loggers make the mod look more professional.
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
My Github page.
The entire Minecraft shader development community now has its own Discord server! Feel free to join and chat with all the developers!
Okay. Can you give us an example image editor? And are mob textures basically skins?
DEATH TO THE GREENBLOODS(Creepers)!!!
Yes they are and don't you have paint.net?
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
My Github page.
The entire Minecraft shader development community now has its own Discord server! Feel free to join and chat with all the developers!