Everything posted by MultiMote
-
[1.7.10][Sloved] Help - How do I get a player's target block?
http://up42.ru/u/p/_________________2014-07-15_20_43_09.png[/img] u CAN'T use this at server
-
[1.7.10][Sloved] Help - How do I get a player's target block?
raytrace is clientside
-
[1.7.10][Sloved] Help - How do I get a player's target block?
Player sends packet. Server gets packet sender.
-
[1.7.10][Sloved] Help - How do I get a player's target block?
mouseOverObject is client-side only. You must to send packet with object coords/id.
-
Worldgeneration with schematic files[1.7.10]
Start of schematic is one of bottom corners.
-
SLOVED[1.7.10]How to use NBT for BlockDoor
http://www.minecraftforge.net/wiki/Creating_NBT_for_items At the end of page.
-
Best Data Storage
Easy to use + all minecraft data stores in NBT.
-
[1.7.10] How to render 2D texture on game screen/HUD ?
GL11.glColor4f(1F, 1F, 1F, 1F); Minecraft.getMinecraft().renderEngine.bindTexture(yourResLocation); this.drawTexturedModalRect(x, y, xOnTexture(u), yOnTexure(v), width, height); Texture must be 256x256 for this render method.
-
Best Data Storage
I'm using NBT https://gist.github.com/9e322275b48c317eacab
-
[1.7.10] Gui only drawing one string value when the real value is different
Packets.
-
[1.7.10] Checking if an entity is killed
LivingDeathEvent
-
[1.7.10]No Vanilla source in Eclipse
It must be in build/tmp/recompSrc
-
[1.7.10] Custom trees?
Thank you, I did't know about Ctrl+N
-
is it possible to dynamicly download a players face and use it on a gui?
GL11.glPushMatrix(); Minecraft.getMinecraft().renderEngine.bindTexture(yourfacelocation); GL11.glTranslatef(faceX, faceY, 0); float scale = 3F; GL11.glScalef(scale, scale, scale); drawTexturedModalRect(0, 0, 8, 8, 8, ; //correct if wrong GL11.glPopMatrix();
-
[Solved] [1.7.10] Making a block drop only an item when broken
public Item getItemDropped(int p_149650_1_, Random rnd, int p_149650_3_) { return youritem; }
-
Worldgeneration with schematic files[1.7.10]
I don't know what's wrong In my case it's works.
-
Worldgeneration with schematic files[1.7.10]
InputStream returns null because it can't find file. IDK. Recheck schematic path...
-
Worldgeneration with schematic files[1.7.10]
Replace InputStream is = Schematic.class.getClass().getClassLoader().getResourceAsStream("assets" + File.separator + MhytRPG.MODID + File.separator + "schematics" + File.separator + schemname +".schematic"); With String temp = "assets" + File.separator + MhytRPG.MODID + File.separator + "schematics" + File.separator + schemname +".schematic"; System.out.println("Trying to load " + temp); InputStream is = Schematic.class.getClass().getClassLoader().getResourceAsStream(temp); And look at log before crash.
-
[1.7.2]Custom Damage Source?[SOLVED]
Just put it in your main mod class public static DamageSource mySource = new DamageSource("mySourceName"); And attack entity with this source.
-
Worldgeneration with schematic files[1.7.10]
Maybe schematic is corrupt? If InputStream can't find file it throws FileNotFound exception. But in your case it's NullPointerException => CompressedStreamTools can't read stream correctly.
-
is it possible to dynamicly download a players face and use it on a gui?
public ResourceLocation getSkin(String name){ ResourceLocation resourcelocation = AbstractClientPlayer.locationStevePng; if (name.length() > 0) { resourcelocation = AbstractClientPlayer.getLocationSkin(name); AbstractClientPlayer.getDownloadImageSkin(resourcelocation, name); } return resourcelocation; }
-
[1.7.10] Getting Owner Name
Which class calling this method?
-
[1.7.2]KeyBindings crashing
It's in your main mod class @EventHandler public void load(FMLInitializationEvent event) { KeyBind.init(); }
-
Worldgeneration with schematic files[1.7.10]
So i can't see the successful load message too (System.out.println("schem size:" + width + " x " + height + " x " + length).
-
[1.7.2][SOLVED] BlockIcon in Inventory different than Texture
@SideOnly(Side.CLIENT) public String getItemIconName() { return "yourmod:nameInIconsFolderWithoutExtention"; }
IPS spam blocked by CleanTalk.