I've completed every tutorial to the en.US file. My block and item are not showing up in the game and I have some errors in the code which I do not know how to solve. The game loads up with them though. Here are the files I have, with the errors pointed out.
Hello, i'm having problems in understand the mob register system.
I have made my Entity class(EntityTest), the render class (RenderTest), and reading the Ascenssion code on github i've managed to make the Cliente and commom proxy. But i can't understand your ModEntities, probably because i don' know what is the ItemAscensionMonsterPlacer class.
Can anybody give a example of the ModEntities and ItemAscensionMonsterPlacer class and tell me what is exactly the mod instance (public static TesteMod instance;) in my case.
Sorry for any grammatical errors, my english is not too good, and tank you for this tutorials.
crashed cause "super();" "Constructor call must be the first statement in a constructor"
... umm
help please?
can you make a tutorial on how to export the mod itself??
Call the super(); method first. To export your mod, run ./gradlew build or gradlew build depending on your OS - make sure the build.gradle file is edited to fit your needs as well.
I was wondering, when creating a new armor set by extending the armor class - is it possible to do a call to change scale of armor pieces? Or do you have to make a custom model for that?
You can most likely scale up and down the armor pieces using OpenGL, at least, I did so with an entity. Making a custom armor model maybe the easiest option for what you seem to be envisioning.
Hello, i'm having problems in understand the mob register system.
I have made my Entity class(EntityTest), the render class (RenderTest), and reading the Ascenssion code on github i've managed to make the Cliente and commom proxy. But i can't understand your ModEntities, probably because i don' know what is the ItemAscensionMonsterPlacer class.
Can anybody give a example of the ModEntities and ItemAscensionMonsterPlacer class and tell me what is exactly the mod instance (public static TesteMod instance;) in my case.
Sorry for any grammatical errors, my english is not too good, and tank you for this tutorials.
In my case, ItemAscensionMonsterPlacer is an item class for mob spawn eggs. As for example, looking at my repositories is your best bet.
I've completed every tutorial to the en.US file. My block and item are not showing up in the game and I have some errors in the code which I do not know how to solve. The game loads up with them though. Here are the files I have, with the errors pointed out.
I'm sorry if this has been asked before—I'm bad at searching through things.
I'll look at this more in-depth when I have more time. Anyways, one thing to do is make sure your item is getting registered, as that is what you seem to be describing. Again, I'll look into it a bit more later on.
That sounds very interesting! The result I'm after is just setting the chestplate, boots and helmet scale to x0.5f too like the leggings. You said you scaled an entity - is it something contained in open source mod so one could .peek()?
Yes, you can find that class here, starting at line 113. Anyways, this basically took an entity about the size of an Iron Golem (a bit bigger actually), and reduced its size to fit inside of a block, so a scaleFactor of something greater than 1 would increase the size. As for where to do this, you would have to look into how the Armor is rendered and such.
The "this." thing is for aplying the following method to the object that is calling it (or something like that, I'm not very well versed in java). If you don't use this. java will not know to wich object apply the setBlockName method. (Now is when a proffesional Java programmer hits me for this clumsy explanation xD)
The "super" thing is used for calling the father's constructor. That means: since BlockFossilOre uses the "extends Block", that means it includes all the methods from the Block class from Minecraft itself (At least I think so), so the super() is needed for telling java that you are using Block's constructor AND then all the extras things you add only for the BlockFossilOre class.
About the IIconRegister, where does that new error appears? The only difference between my code and yours (apart from the class names and so) was that import line...
Since that code is in a constructor, you don't need the this keyword. It's just personal preference.
If I put all the ore generations the same levels, rate, etc would it work or not? I did this and only one of the ore(s) spawn in the overworld/end/nether.
If I put all the ore generations the same levels, rate, etc would it work or not? I did this and only one of the ore(s) spawn in the overworld/end/nether.
Hi ! First of all thank you so much for the tutorials !
This is the first time i ever try to mod something, and even if i don't understand some of the stuff you are explaining, i still managed to get through all the 14 first successfully !
However, things are getting a little bit more complexe with the tutorial n°15 about the Entity Registry.
You said you were gonna talk in a "programmer way". Well... Now i'm lost...
So i did some research, and found some solutions in your Github, using your code as a patern i could follow. So my first question is : did you really expect us, beginners, to write the entire MonsterPlacer class by ourselves ?
Anyway, now i'm badly stuck, and i need your help !
I think i was able to set up the Entity Registry correctly ( Not entierly sure, it's not like checking if a block texture is rendering properly ingame).
So, regarding the MonsterPlacer class, this is my last class with errors. Here it is :
public class ItemEclatdeTerreMonsterPlacer extends ItemMonsterPlacer
{
@SideOnly(Side.CLIENT)
protected int colorPrimary;
protected int colorSecondary;
protected String entityToSpawnName = "";
protected String entityToSpawnNameFull = "";
protected EntityLiving entityToSpawn = null;
public ItemEclatdeTerreMonsterPlacer()
{
super();
}
public ItemEclatdeTerreMonsterPlacer(String name, int primary, int secondary)
{
setHasSubtypes(false);
maxStackSize = 64;
setCreativeTab(ModTabs.tabEclat_de_Terre);
setEntityToSpawnName(name); // It shows an error here <-------
colorPrimary = primary;
colorSecondary = secondary;
// DEBUG
System.out.println("Added spawn egg constructor for " + entityToSpawnName);
}
}
setEntityToSpawnName is underlined. I don't know why.
My other big problem from now on is the EntityYOURMOB class.
I don't know how to Override isAIEnable and return true. You're not using it in your code.
This is what i came up with so far :
public class EntityCotHorn extends EntityAnimal
{
public static final String name = "CotHorn";
public EntityCotHorn(World world)
{
super(world);
this.getNavigator().setAvoidsWater(true);
this.setSize(2F, 2F);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIPanic(this, 1.25D));
this.tasks.addTask(2, new EntityAIWander(this, 1.0D));
this.tasks.addTask(3, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
this.tasks.addTask(4, new EntityAILookIdle(this));
}
I'll take more time to read the lasts tutorials again tomorrow. But now i'm too tired to think properly, so some help would be really appreciated
Again thank you so much for the tutorials, can't wait for the next one !
At the time of writing that tutorial, I guess I just forgot about going over the MonsterPlacer class. Anyways, I have that source file available on my repositories on GitHub. As for your Entity class, #isAIEnabled was available in 1.7, but not in 1.8. You may have been looking at the 1.8 branch on one of my repositories.
Not sure if this feed is still active but im a complete beginner at modding/coding in general and ive been having a few problems with importing the "errors" that you explained in the second tutorial. Im on windows and I couldn't figure out how to import the errors in between packages.
Not sure if this feed is still active but im a complete beginner at modding/coding in general and ive been having a few problems with importing the "errors" that you explained in the second tutorial. Im on windows and I couldn't figure out how to import the errors in between packages.
The shortcut is CTRL-Shift-O on Windows. You can also hover over the error, and it will either tell you it is an error with importing (giving you the option to import), or an actually error that you need to fix in your code.
Hey there, great tutorial so far, but i have a problem, I can't get any textures to load, which I find really weird. When I load up Minecraft, I always get a Java.IO.FileNotFoundException, even though I have the file just like you said. Code is basically copy-pasted since nothing had to be changed
I've completed every tutorial to the en.US file. My block and item are not showing up in the game and I have some errors in the code which I do not know how to solve. The game loads up with them though. Here are the files I have, with the errors pointed out.
AdvancedGeology.java: http://pastebin.com/Qr2rZPRc
BlockFossilOre: http://pastebin.com/isYRjvZs Two errors.
Reference: http://pastebin.com/Hkkr4ZGQ
RegisterHelper: http://pastebin.com/i53czaCs
ModBlocks: http://pastebin.com/2SQejJP4
ModItems: http://pastebin.com/xk7iDRUX
AdvancedGeologyItem: http://pastebin.com/9JrR6GiB Two errors.
I'm sorry if this has been asked before—I'm bad at searching through things.
When I type the "git clone" it gives me this error:
'git' is not recognized as an internal or external command,
operable program or batch file.
Please help!
(I am using Command Prompt)
Some of my favorite quotes
"Huh. Beater. I like that." -Kirito,SAO
"What's management gonna think when they come down here and find 10,000 flippin' vegtables?" -Wheatley,Portal 2
"Agh! Bird! Bird! Kill it! It's evil!" -POTaTOS,Portal 2
"You will be baked, and then there will be cake." -GLaDOS,Portal
"It's my big chance!" -Defective Turret,Portal 2
Hello, i'm having problems in understand the mob register system.
I have made my Entity class(EntityTest), the render class (RenderTest), and reading the Ascenssion code on github i've managed to make the Cliente and commom proxy. But i can't understand your ModEntities, probably because i don' know what is the ItemAscensionMonsterPlacer class.
Can anybody give a example of the ModEntities and ItemAscensionMonsterPlacer class and tell me what is exactly the mod instance (public static TesteMod instance;) in my case.
Sorry for any grammatical errors, my english is not too good, and tank you for this tutorials.
Call the super(); method first. To export your mod, run ./gradlew build or gradlew build depending on your OS - make sure the build.gradle file is edited to fit your needs as well.
You can most likely scale up and down the armor pieces using OpenGL, at least, I did so with an entity. Making a custom armor model maybe the easiest option for what you seem to be envisioning.
Install "git".
In my case, ItemAscensionMonsterPlacer is an item class for mob spawn eggs. As for example, looking at my repositories is your best bet.
I'll look at this more in-depth when I have more time. Anyways, one thing to do is make sure your item is getting registered, as that is what you seem to be describing. Again, I'll look into it a bit more later on.
Yes, you can find that class here, starting at line 113. Anyways, this basically took an entity about the size of an Iron Golem (a bit bigger actually), and reduced its size to fit inside of a block, so a scaleFactor of something greater than 1 would increase the size. As for where to do this, you would have to look into how the Armor is rendered and such.
When I put
into AdvancedGeologyItem it gets an error telling me to create a class, interface, annotation, or enum.
In BlockFossilOre, do you mean to write the methods like this?
[super(Material.rock)];
[setBlockName("fossilOre")];
[setBlockTextureName(Reference.MODID + ":" + getUnlocalizedName().substring(5))];
[setCreativeTab(CreativeTabs.tabBlock)];
Since that code is in a constructor, you don't need the this keyword. It's just personal preference.
*cry*
Oh wow. You didn't read the part with the item icon register class, did you?
If I put all the ore generations the same levels, rate, etc would it work or not? I did this and only one of the ore(s) spawn in the overworld/end/nether.
Do I have to change it up?
It shouldn't matter.
At the time of writing that tutorial, I guess I just forgot about going over the MonsterPlacer class. Anyways, I have that source file available on my repositories on GitHub. As for your Entity class, #isAIEnabled was available in 1.7, but not in 1.8. You may have been looking at the 1.8 branch on one of my repositories.
I'm getting an error with Cannot determine URI for '/Minecraft/src/main/java:
The project explorer will not expand as it shows nothing is there.
I woke up one morning and this error is still haunting me to this day.
Something seems to have been corrupted or moved.
Not sure if this feed is still active but im a complete beginner at modding/coding in general and ive been having a few problems with importing the "errors" that you explained in the second tutorial. Im on windows and I couldn't figure out how to import the errors in between packages.
How do I open up Eclipse???
Some of my favorite quotes
"Huh. Beater. I like that." -Kirito,SAO
"What's management gonna think when they come down here and find 10,000 flippin' vegtables?" -Wheatley,Portal 2
"Agh! Bird! Bird! Kill it! It's evil!" -POTaTOS,Portal 2
"You will be baked, and then there will be cake." -GLaDOS,Portal
"It's my big chance!" -Defective Turret,Portal 2
The shortcut is CTRL-Shift-O on Windows. You can also hover over the error, and it will either tell you it is an error with importing (giving you the option to import), or an actually error that you need to fix in your code.
Like any other application...
When I do as the Tutorial says I get an error saying, "git is not recognized as an internal or external command?
Do you have any suggestions?
You need to install Git.
Modid needs to be all lowercase. Above, you have "pazz199_randomMod" - make the M lowercase there, and in your MODID variable.
Unfortunately no. I haven't had or seen that error before.