Hey,
I'm trying to make a gui, and I followed your tutorial. I have made gui's in the past, but for some reason this time it's squished.
I don't know why it's all stretched like that. The file is only 40 x 152, so the rectangles should just be pixels.... Any idea what's going wrong? Here's my Gui******* class
package net.minecraft.src;
import java.awt.Color;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.Random;
import net.minecraft.client.Minecraft;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;
import org.lwjgl.input.Keyboard;
public class GuiZanpakuto extends GuiScreen
{
public final int guiWidth = 248;//the gui width
public final int guiHeight = 166;//the gui height
public void drawScreen(int x, int y, float f)//draws the gui
{
ScaledResolution var5 = new ScaledResolution(this.mc.gameSettings, this.mc.displayWidth, this.mc.displayHeight);
int var6 = var5.getScaledWidth();
int var7 = var5.getScaledHeight();
drawDefaultBackground();
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
this.mc.mcProfiler.startSection("swordgui");
this.mc.renderEngine.bindTexture("/textures/blocks/sword_gui.png");//background gui texture already in game
int var233 = var7 / 2 - 100;
int var181 = var6 - 400;
this.drawTexturedModalRect(var181, var233, 0, 0, 40, 152);
super.drawScreen(x, y, f);//super invoke
}
}
I created a new world, but for some reason I look around and my ore does not generate. Any tips would be appreciated.
package net.minecraft.src;
import java.util.Random;
public class BlockChromiumOre extends Block
{
protected BlockChromiumOre(int var1)
{
super(var1, Material.rock);
this.setCreativeTab(CreativeTabs.tabBlock);
}
/**
* Returns the ID of the items to drop on destruction.
*/
public int idDropped(int var1, Random var2, int var3)
{
return mod_IronMen.ChromiumOre.blockID;
}
/**
* Returns the usual quantity dropped by the block plus a bonus of 1 to 'i' (inclusive).
*/
public int quantityDroppedWithBonus(int var1, Random var2)
{
return this.quantityDropped(var2) + var2.nextInt(var1 + 1);
}
public void GenerateSurface(World world, Random random, int i, int j) {
for (int p = 0; p < 16; p++) {
int x = i + random.nextInt(16);
int y = random.nextInt(128);
int z = j + random.nextInt(16);
(new WorldGenMinable(mod_IronMen.ChromiumOre.blockID, 32)).generate(world, random, x, y, z);
}
}
}
Ok never mind, figured out my problem. So you can disregard the last post. But I do have a question/request:
Could you do a tutorial on how to craft a book with information already written in it? That would be very helpful, and I can't seem to find how to do it.
Thanks
Hey would you like to add my config file tutorial template to you tutorials? Though you may need to comment it and explain it, so people understand it better.
It can be compiled with both Risugami's Modloader and Forge Modloader, though If used as it is you can compile it with Risugami's Modloader and make it both modloader compatible. That is what i do with my mods..
Check out my mods: Kinyoshi Mods (which includes Ancient Tree Root, Bone Ore, Chert Craft, Corn Nuts, Desert Cotton Plant, Desert Grund Plant, Desert Petrified Wood and misc tweaks).https://sites.google.com/site/kinyoshimods/
Please do directional placement! I have made some models with Techne and they all face the same direction! There are not tutorials for this!
Could you PLEASE do a direction placement tutorial in forge!?!?! All my blocks/TE's face the same way!!! It's killing me......I've asked for help everywhere and people are like sure but then never help....Please help! this is my code example https://github.com/x...ity-EXAMPLE.git
I used the Enchantment code to make my own enchantment, but now I don't know what to do. How I want it is: When I enchant my sword I want it to slow down enemy when I attack them. How would I do that?
Also, How would I use that enchantment as a automatic enchantment on a custom sword? I have done that with Fire Aspect but I would like to know how I would do that if I used my custom enchantment.
Well I guess Modloader is completely screwed up. I can't decompile it anymore. I get a jumble of angry text in command prompt and three errors in eclipse. And everyone is dropping support for Modloader. Everyone likes Forge. Curse you Forge!
I'm trying to make a gui, and I followed your tutorial. I have made gui's in the past, but for some reason this time it's squished.
I don't know why it's all stretched like that. The file is only 40 x 152, so the rectangles should just be pixels.... Any idea what's going wrong? Here's my Gui******* class
package net.minecraft.src; import java.awt.Color; import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Random; import net.minecraft.client.Minecraft; import org.lwjgl.opengl.GL11; import org.lwjgl.opengl.GL12; import org.lwjgl.input.Keyboard; public class GuiZanpakuto extends GuiScreen { public final int guiWidth = 248;//the gui width public final int guiHeight = 166;//the gui height public void drawScreen(int x, int y, float f)//draws the gui { ScaledResolution var5 = new ScaledResolution(this.mc.gameSettings, this.mc.displayWidth, this.mc.displayHeight); int var6 = var5.getScaledWidth(); int var7 = var5.getScaledHeight(); drawDefaultBackground(); GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); this.mc.mcProfiler.startSection("swordgui"); this.mc.renderEngine.bindTexture("/textures/blocks/sword_gui.png");//background gui texture already in game int var233 = var7 / 2 - 100; int var181 = var6 - 400; this.drawTexturedModalRect(var181, var233, 0, 0, 40, 152); super.drawScreen(x, y, f);//super invoke } }LittleBreadLoaf
Bleach Mod
package net.minecraft.src;
import java.util.Random;
public class BlockChromiumOre extends Block
{
protected BlockChromiumOre(int var1)
{
super(var1, Material.rock);
this.setCreativeTab(CreativeTabs.tabBlock);
}
/**
* Returns the ID of the items to drop on destruction.
*/
public int idDropped(int var1, Random var2, int var3)
{
return mod_IronMen.ChromiumOre.blockID;
}
/**
* Returns the usual quantity dropped by the block plus a bonus of 1 to 'i' (inclusive).
*/
public int quantityDroppedWithBonus(int var1, Random var2)
{
return this.quantityDropped(var2) + var2.nextInt(var1 + 1);
}
public void GenerateSurface(World world, Random random, int i, int j) {
for (int p = 0; p < 16; p++) {
int x = i + random.nextInt(16);
int y = random.nextInt(128);
int z = j + random.nextInt(16);
(new WorldGenMinable(mod_IronMen.ChromiumOre.blockID, 32)).generate(world, random, x, y, z);
}
}
}
Could you do a tutorial on how to craft a book with information already written in it? That would be very helpful, and I can't seem to find how to do it.
Thanks
Bleach Mod
It can be compiled with both Risugami's Modloader and Forge Modloader, though If used as it is you can compile it with Risugami's Modloader and make it both modloader compatible. That is what i do with my mods..
Here is a like to the config tutorial template.
http://www.minecraft.../topic/1478472-
Kinyoshi
A new villager profession!
Please do directional placement! I have made some models with Techne and they all face the same direction! There are not tutorials for this!
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumWhere am I supposed to put this exactly on my mod file?
ParticleEffects.spawnParticle("Example", x, y, z, 0.0D, 0.0D, 0.0D);And what values should I put on x, y and z if I want the particle to spawn at my block? I guess 0 right?
Could you PLEASE do a direction placement tutorial in forge!?!?! All my blocks/TE's face the same way!!! It's killing me......I've asked for help everywhere and people are like sure but then never help....Please help! this is my code example https://github.com/x...ity-EXAMPLE.git
I put this in my block class
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
{
double d0 = (double)((float)par2 + 0.4F + par5Random.nextFloat() * 0.2F);
double d1 = (double)((float)par3 + 0.7F + par5Random.nextFloat() * 0.3F);
double d2 = (double)((float)par4 + 0.4F + par5Random.nextFloat() * 0.2F);
par1World.spawnParticle("smoke", d0, d1, d2, 0.0D, 0.0D, 0.0D);
}
works on mine
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumDidn't work for me but thanks anyway
and if it does where could i find my structure without exploring for an hour
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumAlso, How would I use that enchantment as a automatic enchantment on a custom sword? I have done that with Fire Aspect but I would like to know how I would do that if I used my custom enchantment.
Thanks!