hi im my custom furnace i hav my fuel bar (battery) which goes left to right.
i was wondering what you need to add to the code to instead of having the default direction the bar loads eg up and down, how do i make it go right to left
hi im my custom furnace i hav my fuel bar (battery) which goes left to right.
i was wondering what you need to add to the code to instead of having the default direction the bar loads eg up and down, how do i make it go right to left
thanks hope u understand
I do know how to make custom furnaces with custom GUI's and such, but I have never made a horizontal fuel bar, which I now think it will look good, I will look into it.
Rollback Post to RevisionRollBack
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
Note that achievements do NOT require a separate class, so no need for the AchievementName.java file. And I actually didn't notice that error in the achievment localization overwrites, thanks for pointing that out. Also please post your achievement page code, I think I know what is causing that crash, if it is what I think it is then its not an error with the tutorial.
Okay so here is my "AchievementName.java"
package mentin2.entities.common;
import net.minecraft.src.Achievement;
import net.minecraft.src.Block;
import cpw.mods.fml.common.registry.LanguageRegistry;
public class AchievementBlueCobblestone extends Achievement
{
public AchievementBlueCobblestone(int par1, String par2Str, int par3, int par4, Block par5Block, Achievement par6Achievement)
{
super(par1, par2Str, par3, par4, par5Block, par6Achievement);
this.addAchievementName("AchievementBlueCobblestone", "Blue Cobblestone");
this.addAchievemenDesc("AchievementBlueCobblestone", "Mine some Blue Stone");
}
private void addAchievementName(String ach, String name)
{
LanguageRegistry.instance().addStringLocalization("achievement."+ach, "en_US", name);
}
private void addAchievemenDesc(String ach, String desc)
{
LanguageRegistry.instance().addStringLocalization("achievement."+ach, "en_US", desc);
}
}
And this is located in my Main java class:
public static AchievementPage AchievementPageExtendedEntites;
public static Achievement AchievementBlueCobblestone;
@Init public void load(FMLInitializationEvent event)
{
AchievementPageExtendedEntites = new AchievementPage("Extended Entites", (AchievementBlueCobblestone));
AchievementPage.registerAchievementPage(AchievementPageExtendedEntites);
AchievementBlueCobblestone = new AchievementBlueCobblestone(2000, "Blue Cobblestone", 0, 0, BlueCobblestone, null).setIndependent().registerAchievement();
}
im trying to use this method to place blaze rods directly into slot 0, but im not sure how to return the blaze rods as an Itemstack which it what the method is asking for
public void putStackInSlot(int par1, ItemStack par2)
{
this.getSlot(0).putStack(par2);
}
aslo what do i need to add to make it happen only if the player shift clicks
Could I perhaps suggest a tutorial on custom block models/rendering with techne? I used to be able to do it with modloader, but then i forgot and I think its different in forge anyways...
But yeah if you could do that, it would be great! Have a nice day!
im trying to use this method to place blaze rods directly into slot 0, but im not sure how to return the blaze rods as an Itemstack which it what the method is asking for
public void putStackInSlot(int par1, ItemStack par2)
{
this.getSlot(0).putStack(par2);
}
aslo what do i need to add to make it happen only if the player shift clicks
For the Item to ItemStack you could try
new ItemStack(Item.blazeRod)
In my code I have a method that converts Item's and Block's to an ItemStack, but I currently do not have access to my code.
Could I perhaps suggest a tutorial on custom block models/rendering with techne? I used to be able to do it with modloader, but then i forgot and I think its different in forge anyways...
But yeah if you could do that, it would be great! Have a nice day!
package mentin2.entities.common;
import net.minecraft.src.Achievement;
import net.minecraft.src.Block;
import cpw.mods.fml.common.registry.LanguageRegistry;
public class AchievementBlueCobblestone extends Achievement
{
public AchievementBlueCobblestone(int par1, String par2Str, int par3, int par4, Block par5Block, Achievement par6Achievement)
{
super(par1, par2Str, par3, par4, par5Block, par6Achievement);
this.addAchievementName("AchievementBlueCobblestone", "Blue Cobblestone");
this.addAchievemenDesc("AchievementBlueCobblestone", "Mine some Blue Stone");
}
private void addAchievementName(String ach, String name)
{
LanguageRegistry.instance().addStringLocalization("achievement."+ach, "en_US", name);
}
private void addAchievemenDesc(String ach, String desc)
{
LanguageRegistry.instance().addStringLocalization("achievement."+ach, "en_US", desc);
}
}
And this is located in my Main java class:
public static AchievementPage AchievementPageExtendedEntites;
public static Achievement AchievementBlueCobblestone;
@Init public void load(FMLInitializationEvent event)
{
AchievementPageExtendedEntites = new AchievementPage("Extended Entites", (AchievementBlueCobblestone));
AchievementPage.registerAchievementPage(AchievementPageExtendedEntites);
AchievementBlueCobblestone = new AchievementBlueCobblestone(2000, "Blue Cobblestone", 0, 0, BlueCobblestone, null).setIndependent().registerAchievement();
}
Like I said before, you do NOT need a separate class, but if you want to you can, those two methods go inside you main mod class, and then you call them after you load your achievements.
Rollback Post to RevisionRollBack
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
Anyone know how I would go about making a slime that can spawn in the surface? For some reason EntitySlime isn't in my minecraft src or anyone where else iv'e checked and i'm pretty sure that I'd need that class for a working slime.
Any help here please?
Iv'e checked in the src.. entityslime isn't there and its not like i deleted it or it was deleted because there'd be errors in my game because renderslime is still there. I think forge may have edited it, but i can't find it.
EDIT:I'm stupid... i guess forge puts the entities in the "common" section (the one you use to mod with forge, which is why im stupid) and not under the "src" which is what i was looking under... silly me :/
Iv'e checked in the src.. entityslime isn't there and its not like i deleted it or it was deleted because there'd be errors in my game because renderslime is still there. I think forge may have edited it, but i can't find it.
EDIT:I'm stupid... i guess forge puts the entities in the "common" section (the one you use to mod with forge, which is why im stupid) and not under the "src" which is what i was looking under... silly me :/
Like I said before, you do NOT need a separate class, but if you want to you can, those two methods go inside you main mod class, and then you call them after you load your achievements.
I did understand the first time that you didn't need your own class file,
But I don't see how I can fit them in, as what if I want to add more achievements?
That would break the thing no?!
I did understand the first time that you didn't need your own class file,
But I don't see how I can fit them in, as what if I want to add more achievements?
That would break the thing no?!
But I will try what you just suggested...
It will not break it, you just make more achievement variables, that's all the achievement is, a variable.
first of all, thanks a lot for making these awesome tutorials.
ok, im a TOTAL noob, and right now i have my modding-needs pretty clear, so i'm gonna request a couple of tutorials
first, custom biomes, yes i mean adding NEW biomes, and fully customizing these, like set what trees can grow, how the general landscape looks, water colour editting, basicly a full tutorial on biomes would be GREAT, also, editting the biome's frequency is pretty important for my plans, like how the mushroom biome is very rare.
second, custom mobs, if possible with a full tutorial on modelling, texturing and coding their behaviour, like what mobs they will attack on sight, what mobs they will only attack at day/night, if they attack player always/never/only at day/night, cutom taming would be cool, but not necesary as of now, also, how to make a boss mob, and special behaviour, like protecting a specific block, and stay in a specific radius of said block.
any of these two would be epic.
my main plan is to add a new biome, a new block (a dragon egg), and a boss mob (different dragon) that only spawns near this new block, which only spawns once in each of this new biome.
also, thanks for reading this, ended up being longer than i expected... xD
i must be totally dumb, cuz i cant even get the first part of the tutorial done, i mean i cant get eclipse to work, it will give a lot of errors... scr cap:
no, everything went smooth with the forge source... the funny thing is that the files that are missing, aren't missing... they're all there, program just wont find them, and then there's this no access thingy, which might as well be fixed if i run as admin... gonna try that xD
edit: nope, didnt work as admin either... i wonder what i did wrong...
also, there were 2 java thingies u had to download, one of them was a setup executable, the other was a compressed archive, what do i do with this last one? it's a .tar.gz
edit2: just noticed there were .exe files in the download page as well, installing atm...
faily me probably
edit3: ok, so when i open the JRE install file it says it's already installed, is this normal?
should i have installed JRE before installing JDK? or shouldnt it matter? maybe JDK includes JRE?
JDK does include the JRE.
Rollback Post to RevisionRollBack
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
It will not break it, you just make more achievement variables, that's all the achievement is, a variable.
Okay good to know
I am not that good at modding,
so by looking at different tutorials by different authors and by trying out myself: edit base file... (for testing purposes ofc) I hope to improve
i was wondering what you need to add to the code to instead of having the default direction the bar loads eg up and down, how do i make it go right to left
thanks hope u understand
I do know how to make custom furnaces with custom GUI's and such, but I have never made a horizontal fuel bar, which I now think it will look good, I will look into 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!
DEATH TO THE GREENBLOODS(Creepers)!!!
edit i didnt read all ur post first before replying
Okay so here is my "AchievementName.java"
And this is located in my Main java class:
public void putStackInSlot(int par1, ItemStack par2)
{
this.getSlot(0).putStack(par2);
}
aslo what do i need to add to make it happen only if the player shift clicks
But yeah if you could do that, it would be great! Have a nice day!
Tutorial is planned.
For the Item to ItemStack you could try
In my code I have a method that converts Item's and Block's to an ItemStack, but I currently do not have access to my code.
This is planned.
Like I said before, you do NOT need a separate class, but if you want to you can, those two methods go inside you main mod class, and then you call them after you load your achievements.
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!
Any help here please?
Iv'e checked in the src.. entityslime isn't there and its not like i deleted it or it was deleted because there'd be errors in my game because renderslime is still there. I think forge may have edited it, but i can't find it.
EDIT:I'm stupid... i guess forge puts the entities in the "common" section (the one you use to mod with forge, which is why im stupid) and not under the "src" which is what i was looking under... silly me :/
I'm pretty sure he was asking me....
I had to go to bed so yeah :/
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!
All the diamonds for you!
Love your work, I hope you have many more exciting and unique tutorials on the way
Lol, I try to help where I can! Thanks for the diamonds, but I have thousands already in my modded world XD
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!
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!
I did understand the first time that you didn't need your own class file,
But I don't see how I can fit them in, as what if I want to add more achievements?
That would break the thing no?!
But I will try what you just suggested...
It will not break it, you just make more achievement variables, that's all the achievement is, a variable.
Right click on any package, hover your mouse over New and click Package!
The biomes and entities are planned, and when you decompile using Forge do you get any erorrs?
Yes and a tutorial is planned.
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!
JDK does include the JRE.
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 good to know
I am not that good at modding,
so by looking at different tutorials by different authors and by trying out myself: edit base file... (for testing purposes ofc) I hope to improve