Jump to content

[Resolved :)] Armor not rendering properly


chimera27

Recommended Posts

I am having trouble getting my armor textures to render, for whatever reason, minecraft is saying that the file is not found, when the file is in the folder it is saying it's missing from :/ I have tried putting it in many different folders, made sure it is all lowercase, and made sure it's in assets/modID/textures/models/armor/. I have absolutely no idea why it's not finding the textures! If anyone knows what i'm doing wrong, please, any help would be greatly appreciated!

Here's my main class:

 

 

package project.main;

 

import java.lang.reflect.Field;

import java.lang.reflect.Modifier;

 

import net.minecraft.block.Block;

import net.minecraft.client.Minecraft;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.entity.Entity;

import net.minecraft.entity.SharedMonsterAttributes;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.item.EnumArmorMaterial;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.potion.Potion;

import net.minecraft.src.ModLoader;

import net.minecraft.util.DamageSource;

import net.minecraftforge.common.EnumHelper;

import net.minecraftforge.common.MinecraftForge;

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.Mod.EventHandler;

import cpw.mods.fml.common.Mod.Init;

import cpw.mods.fml.common.Mod.Instance;

import cpw.mods.fml.common.Mod.PostInit;

import cpw.mods.fml.common.Mod.PreInit;

import cpw.mods.fml.common.SidedProxy;

import cpw.mods.fml.common.event.FMLInitializationEvent;

import cpw.mods.fml.common.event.FMLPostInitializationEvent;

import cpw.mods.fml.common.event.FMLPreInitializationEvent;

import cpw.mods.fml.common.network.NetworkMod;

import cpw.mods.fml.common.registry.EntityRegistry;

import cpw.mods.fml.common.registry.GameRegistry;

import cpw.mods.fml.common.registry.LanguageRegistry;

import cpw.mods.fml.common.registry.TickRegistry;

import cpw.mods.fml.relauncher.Side;

import project.main.EntityPowerBolt;

import project.main.ItemPowerBeam;

import project.main.ItemWaveBeam;

import project.main.ItemPlasmaBeam;

import project.main.ItemIceBeam;

 

@Mod(modid = "chimera27metroid", name = "Metroid Cubed", version = "1.0.0")

@NetworkMod(clientSideRequired = true, serverSideRequired = false)

public class Main {

 

@Instance("chimera27metroid")

public static Main instance;

 

@SidedProxy(clientSide = "project.main.client.ClientProxy", serverSide = "project.main.CommonProxy")

public static CommonProxy proxy;

 

 

public static Item ItemPowerBeam;

public static Item ItemWaveBeam;

public static Item ItemPlasmaBeam;

public static Item ItemIceBeam;

public static Item ItemMissileLauncher;

public static Item ItemMissile;

public static Item ItemDebugBeam;

 

public static Item ItemPowerSuitHelmet;

public static Item ItemPowerSuitChestplate;

public static Item ItemPowerSuitLeggings;

public static Item ItemPowerSuitBoots;

 

public static Item ItemVariaSuitHelmet;

public static Item ItemVariaSuitChestplate;

public static Item ItemVariaSuitLeggings;

public static Item ItemVariaSuitBoots;

 

public static Item ItemGravitySuitHelmet;

public static Item ItemGravitySuitChestplate;

public static Item ItemGravitySuitLeggings;

public static Item ItemGravitySuitBoots;

 

public static Item ItemPhazonSuitHelmet;

public static Item ItemPhazonSuitChestplate;

public static Item ItemPhazonSuitLeggings;

public static Item ItemPhazonSuitBoots;

 

public static Item ItemPEDSuitHelmet;

public static Item ItemPEDSuitChestplate;

public static Item ItemPEDSuitLeggings;

public static Item ItemPEDSuitBoots;

 

public static Item ItemPowerCore;

 

public static Potion antifirePotion;

public static Potion waterboost;

public static Potion hypermode;

public static Potion enhancedhypermode;

 

 

 

@EventHandler

public void preInit(FMLPreInitializationEvent event) {

 

Potion[] potionTypes = null;

 

TickRegistry.registerTickHandler(new CommonTickHandler(), Side.SERVER);

 

for (Field f : Potion.class.getDeclaredFields()) {

f.setAccessible(true);

try {

if (f.getName().equals("potionTypes") || f.getName().equals("field_76425_a")) {

Field modfield = Field.class.getDeclaredField("modifiers");

modfield.setAccessible(true);

modfield.setInt(f, f.getModifiers() & ~Modifier.FINAL);

 

potionTypes = (Potion[])f.get(null);

final Potion[] newPotionTypes = new Potion[256];

System.arraycopy(potionTypes, 0, newPotionTypes, 0, potionTypes.length);

f.set(null, newPotionTypes);

}

}

catch (Exception e) {

System.err.println("Severe error, please report this to the mod author:");

System.err.println(e);

}

}

 

MinecraftForge.EVENT_BUS.register(new metroidEventHooks());

 

 

EnumArmorMaterial powersuit = EnumHelper.addArmorMaterial("powersuit", 0,new int[]{1, 2, 2, 1}, 0);

EnumArmorMaterial varia = EnumHelper.addArmorMaterial("varia", 0,new int[]{2, 3, 3, 2}, 0);

EnumArmorMaterial gravity = EnumHelper.addArmorMaterial("gravity", 0,new int[]{3, 4, 4, 2}, 0);

EnumArmorMaterial phazon = EnumHelper.addArmorMaterial("phazon", 0,new int[]{3, 6, 5, 4}, 0);

EnumArmorMaterial ped = EnumHelper.addArmorMaterial("ped", 0,new int[]{6, 7, 6, 6}, 0);

 

 

 

ItemPowerBeam = new ItemPowerBeam(5000).setUnlocalizedName("chimera27metroid:powerbeam");

ItemWaveBeam = new ItemWaveBeam(5001).setUnlocalizedName("chimera27metroid:wavebeam");

ItemPlasmaBeam = new ItemPlasmaBeam(5002).setUnlocalizedName("chimera27metroid:plasmabeam");

ItemIceBeam = new ItemIceBeam(5003).setUnlocalizedName("chimera27metroid:icebeam");

ItemMissileLauncher = new ItemMissileLauncher(5004).setUnlocalizedName("chimera27metroid:missilelauncher");

ItemMissile = new ItemMissile(5005).setUnlocalizedName("chimera27metroid:itemmissile");

ItemDebugBeam = new ItemDebugBeam(5006).setUnlocalizedName("chimera27metroid:debugbeam");

 

ItemPowerSuitHelmet = new ItemPowerSuitHelmet(5007, powersuit, proxy.addArmor("powersuit"), 0).setUnlocalizedName("itempowersuithelmet");

ItemPowerSuitChestplate = new ItemPowerSuitChestplate(5008, powersuit, proxy.addArmor("powersuit"), 1).setUnlocalizedName("itempowersuitchestplate");

ItemPowerSuitLeggings = new ItemPowerSuitLeggings(5009, powersuit, proxy.addArmor("powersuit"), 2).setUnlocalizedName("itempowersuitleggings");

ItemPowerSuitBoots = new ItemPowerSuitBoots(5010, powersuit, proxy.addArmor("powersuit"), 3).setUnlocalizedName("itempowersuitboots");

 

ItemVariaSuitHelmet = new ItemVariaSuitHelmet(5011, varia, proxy.addArmor("varia"),0).setUnlocalizedName("chimera27metroid:variasuithelmet");

ItemVariaSuitChestplate = new ItemVariaSuitChestplate(5012, varia, proxy.addArmor("varia"),1).setUnlocalizedName("chimera27metroid:variasuitchestplate");

ItemVariaSuitLeggings = new ItemVariaSuitLeggings(5013, varia, proxy.addArmor("varia"),2).setUnlocalizedName("chimera27metroid:variasuitleggings");

ItemVariaSuitBoots = new ItemVariaSuitBoots(5014, varia, proxy.addArmor("varia"),3).setUnlocalizedName("chimera27metroid:variasuitboots");

 

ItemGravitySuitHelmet = new ItemGravitySuitHelmet(5015, gravity, proxy.addArmor("gravity"), 0).setUnlocalizedName("chimera27metroid:itemgravitysuithelmet");

ItemGravitySuitChestplate = new ItemGravitySuitChestplate(5016, gravity, proxy.addArmor("gravity"), 1).setUnlocalizedName("chimera27metroid:itemgravitysuitchestplate");

ItemGravitySuitLeggings = new ItemGravitySuitLeggings(5017, gravity, proxy.addArmor("gravity"), 2).setUnlocalizedName("chimera27metroid:itemgravitysuitleggings");

ItemGravitySuitBoots = new ItemGravitySuitBoots(5018, gravity, proxy.addArmor("gravity"), 3).setUnlocalizedName("chimera27metroid:itemgravitysuitboots");

 

ItemPhazonSuitHelmet = new ItemPhazonSuitHelmet(5019, phazon, proxy.addArmor("phazon"), 0).setUnlocalizedName("chimera27metroid:itemphazonsuithelmet");

ItemPhazonSuitChestplate = new ItemPhazonSuitChestplate(5020, phazon, proxy.addArmor("phazon"), 1).setUnlocalizedName("chimera27metroid:itemphazonsuitchestplate");

ItemPhazonSuitLeggings = new ItemPhazonSuitLeggings(5021, phazon, proxy.addArmor("phazon"), 2).setUnlocalizedName("chimera27metroid:itemphazonsuitleggings");

ItemPhazonSuitBoots = new ItemPhazonSuitBoots(5022, phazon, proxy.addArmor("phazon"), 3).setUnlocalizedName("chimera27metroid:itemphazonsuitboots");

 

ItemPEDSuitHelmet = new ItemPEDSuitHelmet(5023, ped, proxy.addArmor("ped"), 0).setUnlocalizedName("chimera27metroid:itempedsuithelmet");

ItemPEDSuitChestplate = new ItemPEDSuitChestplate(5024, ped, proxy.addArmor("ped"), 1).setUnlocalizedName("chimera27metroid:itempedsuitchestplate");

ItemPEDSuitLeggings = new ItemPEDSuitLeggings(5025, ped, proxy.addArmor("ped"), 2).setUnlocalizedName("chimera27metroid:itempedsuitleggings");

ItemPEDSuitBoots = new ItemPEDSuitBoots(5026, ped, proxy.addArmor("ped"), 3).setUnlocalizedName("chimera27metroid:itempedsuitboots");

 

ItemPowerCore = new ItemPowerCore(5027).setUnlocalizedName("chimera27metroid:itempowercore");

}

 

@EventHandler

public void load(FMLInitializationEvent event) {

proxy.registerRenderer();

 

waterboost = (new waterboost(21, false, 0)).setIconIndex(0, 0).setPotionName("potion.waterboost");

hypermode = (new hypermode(22, false, 0)).setIconIndex(0, 0).setPotionName("potion.hypermode");

enhancedhypermode = (new hypermode(22, false, 0)).setIconIndex(0, 0).setPotionName("potion.enhanacedhypermode");

 

 

ItemPowerBeam = new ItemPowerBeam(5000).setUnlocalizedName("chimera27metroid:powerbeam");

ItemWaveBeam = new ItemWaveBeam(5001).setUnlocalizedName("chimera27metroid:wavebeam");

ItemPlasmaBeam = new ItemPlasmaBeam(5002).setUnlocalizedName("chimera27metroid:plasmabeam");

ItemIceBeam = new ItemIceBeam(5003).setUnlocalizedName("chimera27metroid:icebeam");

ItemMissileLauncher = new ItemMissileLauncher(5004).setUnlocalizedName("chimera27metroid:missilelauncher");

ItemMissile = new ItemMissile(5005).setUnlocalizedName("chimera27metroid:itemmissile");

ItemDebugBeam = new ItemDebugBeam(5006).setUnlocalizedName("chimera27metroid:debugbeam");

 

 

LanguageRegistry.addName(ItemPowerBeam, "Power Beam");

LanguageRegistry.addName(ItemWaveBeam, "Wave Beam");

LanguageRegistry.addName(ItemPlasmaBeam, "Plasma Beam");

LanguageRegistry.addName(ItemIceBeam, "Ice Beam");

LanguageRegistry.addName(ItemMissileLauncher, "Missile Launcher");

LanguageRegistry.addName(ItemMissile, "Missile");

LanguageRegistry.addName(ItemDebugBeam, "Debug Beam");

LanguageRegistry.addName(ItemPowerSuitHelmet, "Power Suit Helmet");

LanguageRegistry.addName(ItemPowerSuitChestplate, "Power Suit Chestplate");

LanguageRegistry.addName(ItemPowerSuitLeggings, "Power Suit Leggings");

LanguageRegistry.addName(ItemPowerSuitBoots, "Power Suit Boots");

LanguageRegistry.addName(ItemVariaSuitHelmet, "Varia Suit Helmet");

LanguageRegistry.addName(ItemVariaSuitChestplate, "Varia Suit Chestplate");

LanguageRegistry.addName(ItemVariaSuitLeggings, "Varia Suit Leggings");

LanguageRegistry.addName(ItemVariaSuitBoots, "Varia Suit Boots");

LanguageRegistry.addName(ItemGravitySuitHelmet, "Gravity Suit Helmet");

LanguageRegistry.addName(ItemGravitySuitChestplate, "Gravity Suit Chestplate");

LanguageRegistry.addName(ItemGravitySuitLeggings, "Gravity Suit Leggings");

LanguageRegistry.addName(ItemGravitySuitBoots, "Gravity Suit Boots");

LanguageRegistry.addName(ItemPhazonSuitHelmet, "Phazon Suit Helmet");

LanguageRegistry.addName(ItemPhazonSuitChestplate, "Phazon Suit Chestplate");

LanguageRegistry.addName(ItemPhazonSuitLeggings, "Phazon Suit Leggings");

LanguageRegistry.addName(ItemPhazonSuitBoots, "Phazon Suit Boots");

LanguageRegistry.addName(ItemPEDSuitHelmet, "PED Suit Helmet");

LanguageRegistry.addName(ItemPEDSuitChestplate, "PED Suit Chestplate");

LanguageRegistry.addName(ItemPEDSuitLeggings, "PED Suit Leggings");

LanguageRegistry.addName(ItemPEDSuitBoots, "PED Suit Boots");

LanguageRegistry.addName(ItemPowerCore, "Power Core");

 

 

 

EntityRegistry.registerModEntity(EntityWaveBolt.class, "WaveBolt", 2 , this, 64, 1, true);

EntityRegistry.registerModEntity(EntityDebugBolt.class, "DebugBolt", 4 , this, 64, 1, true);

EntityRegistry.registerModEntity(EntityPowerBolt.class, "PowerBolt", 5 , this, 64, 1, true);

EntityRegistry.registerModEntity(EntityPlasmaBolt.class, "PlasmaBolt", 6 , this, 64, 1, true);

EntityRegistry.registerModEntity(EntityIceBolt.class, "IceBolt", 7 , this, 64, 1, true);

EntityRegistry.registerModEntity(EntityMissile.class, "Missile", 8 , this, 64, 1, true);

 

 

 

 

LanguageRegistry.instance().addStringLocalization("entity.chimera27metroid.EntityMissile.name", "Missile");

 

ItemStack ItemPowerBeamStack = new ItemStack(ItemPowerBeam);

ItemStack ItemWaveBeamStack = new ItemStack(ItemWaveBeam);

ItemStack ItemPlasmaBeamStack = new ItemStack(ItemPlasmaBeam);

ItemStack ItemIceBeamStack = new ItemStack(ItemIceBeam);

ItemStack ItemMissileLauncherStack = new ItemStack(ItemMissileLauncher);

ItemStack ItemPowerSuitHelmetStack = new ItemStack(ItemPowerSuitHelmet);

ItemStack ItemPowerSuitChestplateStack = new ItemStack(ItemPowerSuitChestplate);

ItemStack ItemPowerSuitLeggingsStack = new ItemStack(ItemPowerSuitLeggings);

ItemStack ItemPowerSuitBootsStack = new ItemStack(ItemPowerSuitBoots);

ItemStack ItemPowerCoreStack = new ItemStack(ItemPowerCore);

 

 

 

 

GameRegistry.addRecipe(new ItemStack(ItemPowerBeam), " xx", "xyx", " xx",

        'x', Item.ingotIron, 'y', Item.redstone);

GameRegistry.addRecipe(new ItemStack(ItemWaveBeam), " xx", "xyz", " xx",

        'x', Item.ingotIron, 'y', Item.redstone, 'z', Block.glass);

GameRegistry.addRecipe(new ItemStack(ItemPlasmaBeam), " xx", "xyz", " xx",

        'x', Item.ingotIron, 'y', Item.redstone, 'z', Item.bucketLava);

GameRegistry.addRecipe(new ItemStack(ItemIceBeam), " xx", "xyz", " xx",

        'x', Item.ingotIron, 'y', Item.redstone, 'z', Item.snowball );

GameRegistry.addRecipe(new ItemStack(ItemMissileLauncher), "  ", " x ", "  ",

        'x', ItemPowerBeam);

GameRegistry.addRecipe(new ItemStack(ItemPowerBeam), "  ", " x ", "  ",

        'x', ItemMissileLauncher);

GameRegistry.addRecipe(new ItemStack(ItemPowerSuitHelmet), "xxx", "xyx", "  ",

        'x', Item.ingotIron, 'y', ItemPowerCore);

GameRegistry.addRecipe(new ItemStack(ItemPowerSuitChestplate), "xyx", "xxx", "xxx",

        'x', Item.ingotIron, 'y', ItemPowerCore);

GameRegistry.addRecipe(new ItemStack(ItemPowerSuitLeggings), "xxx", "xyx", "x x",

        'x', Item.ingotIron, 'y', ItemPowerCore);

GameRegistry.addRecipe(new ItemStack(ItemPowerSuitBoots), "  ", "x x", "xyx",

        'x', Item.ingotIron, 'y', ItemPowerCore);

GameRegistry.addRecipe(new ItemStack(ItemPowerCore), "xyx", "yzy", "xyx",

        'x', Item.redstone, 'y', Item.ingotGold, 'z', Item.diamond);

 

}

 

@EventHandler

public void postInit(FMLPostInitializationEvent event) {

MinecraftForge.EVENT_BUS.register(new HudHelmetOverlay(Minecraft.getMinecraft()));

}

}

 

 

And my armor file:

 

 

package project.main;

 

import net.minecraft.entity.Entity;

import net.minecraft.item.EnumArmorMaterial;

import net.minecraft.item.ItemArmor;

import net.minecraft.item.ItemStack;

 

public class PowerSuit extends ItemArmor {

 

public PowerSuit(int par1, EnumArmorMaterial par2EnumArmorMaterial,

int par3, int par4) {

super(par1, par2EnumArmorMaterial, par3, par4);

}

@Override

public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer)

    {

     

if(stack.itemID == Main.ItemPowerSuitHelmet.itemID || stack.itemID == Main.ItemPowerSuitChestplate.itemID || stack.itemID == Main.ItemPowerSuitBoots.itemID){

return CommonProxy.powersuit_1;

}

 

if (stack.itemID == Main.ItemPowerSuitLeggings.itemID){

return CommonProxy.powersuit_2;

 

}

else return null;

    }

}

 

 

And my client and common proxies:

 

 

package project.main.client;

 

import project.main.CommonProxy;

import project.main.EntityIceBolt;

import project.main.EntityMissile;

import project.main.EntityPlasmaBolt;

import project.main.EntityPowerBolt;

import project.main.EntityWaveBolt;

import project.main.RenderIceBolt;

import project.main.RenderMissile;

import project.main.RenderPlasmaBolt;

import project.main.RenderPowerBolt;

import project.main.RenderWaveBolt;

import cpw.mods.fml.client.registry.RenderingRegistry;

import cpw.mods.fml.common.registry.EntityRegistry;

import net.minecraftforge.client.MinecraftForgeClient;

public class ClientProxy extends CommonProxy {

 

@Override

public void registerRenderer(){

EntityRegistry.registerGlobalEntityID(EntityIceBolt.class, "IceBolt", EntityRegistry.findGlobalUniqueEntityId());

RenderingRegistry.registerEntityRenderingHandler(EntityIceBolt.class, new RenderIceBolt());

EntityRegistry.registerGlobalEntityID(EntityPowerBolt.class, "PowerBolt", EntityRegistry.findGlobalUniqueEntityId());

RenderingRegistry.registerEntityRenderingHandler(EntityPowerBolt.class, new RenderPowerBolt());

EntityRegistry.registerGlobalEntityID(EntityWaveBolt.class, "WaveBolt", EntityRegistry.findGlobalUniqueEntityId());

RenderingRegistry.registerEntityRenderingHandler(EntityWaveBolt.class, new RenderWaveBolt());

EntityRegistry.registerGlobalEntityID(EntityPlasmaBolt.class, "PlasmaBolt", EntityRegistry.findGlobalUniqueEntityId());

RenderingRegistry.registerEntityRenderingHandler(EntityPlasmaBolt.class, new RenderPlasmaBolt());

EntityRegistry.registerGlobalEntityID(EntityMissile.class, "Missile", EntityRegistry.findGlobalUniqueEntityId());

RenderingRegistry.registerEntityRenderingHandler(EntityMissile.class, new RenderMissile());

 

}

public int addArmor(String armor){

return RenderingRegistry.addNewArmourRendererPrefix(armor);

}

}

 

 

 

 

package project.main;

 

public class CommonProxy {

public void registerRenderer() {

 

}

public int addArmor(String string){

return 0;

 

}

public static String powersuit_1 = "chimera27metroid:textures/armor/powersuit_1.png";

public static String powersuit_2 = "chimera27metroid:textures/armor/powersuit_2.png";

 

}

 

 

 

 

 

Creator of Metroid Cubed! Power Suits, Beams, Hypermode and more!

width=174 height=100http://i.imgur.com/ghgWmA3.jpg[/img]

Link to comment
Share on other sites

Here's my armor class:

@Override
public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer)
{
	if(itemID == ModItems.quartzHelm.itemID || itemID == ModItems.quartzChest.itemID || itemID == ModItems.quartzBoots.itemID) {
		return "quartz:textures/models/armor/quartz_layer_1.png";
	}
	if(itemID == ModItems.quartzLegs.itemID) {
		return "quartz:textures/models/armor/quartz_layer_2.png";
	}
	return null;
}

Make sure your armor is in textures/models/armor/[armorname]_layer_1/2.png. Also, check in the console to see where your client is looking for textures.

If you really want help, give that modder a thank you.

 

Modders LOVE thank yous.

Link to comment
Share on other sites

I think you don't need the <modid>:...

Try it the following way:

public MoreToolsArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
	super(par1, par2EnumArmorMaterial, par3, par4);
	this.setCreativeTab(MoreTools.tabMoreWeapons);
}

@Override
public String getArmorTextureFile(ItemStack itemstack) {
//copper
	if (itemstack.itemID == MoreToolsItems.helmetCopper.itemID || itemstack.itemID == MoreToolsItems.chestplateCopper.itemID || itemstack.itemID == MoreToolsItems.bootsCopper.itemID){
		return "/mods/MoreTools/textures/armor/" + MoreTools.TexturePack + "_copper_1.png";
	}
	if (itemstack.itemID == MoreToolsItems.leggingsCopper.itemID){
		return "/mods/MoreTools/textures/armor/" + MoreTools.TexturePack + "_copper_2.png";
	}
}

 

 

You create this Item with this code:

helmetCopper 			= new MoreToolsArmor(helmetCopperID, ACopper,ClientProxy.addArmor("HelmetCopper"), 0).setUnlocalizedName(PicInit + "helmetCopper");

 

 

Client Proxy: (The common Proxy is Emty, rendering is only client stuff)

public class ClientProxy extends CommonProxy{

public static int addArmor(String armor){
	return RenderingRegistry.addNewArmourRendererPrefix(armor);
}

}

 

 

I hope this will work at 1.6.2 too, I tried it only with 1.5.2

Hope I could help you.

Link to comment
Share on other sites

You should remove this lines of code from your common Proxy.

Neither rendering nor Armordeclarations are needed from server side.

   public void registerRenderer() {

   }
   public int addArmor(String string){
      return 0;
      
   }

 

You can leave your commonProxy blank. Everything important (rendering, Armor-Renderer) is in the client proxy.

Link to comment
Share on other sites

Just finished trying it, didn't change anything at all... i'm pretty sure that my textures are in the right place, but some code is making minecraft not find them

 

Edit: FML (not the mod loader). Apparently, I needed to make the path

chimera27metroid:textures/armor/powersuit_1.png; instead of

chimera27metroid/textures/armor/powersuit_1.png; even though both were correct. -_____________________________

Creator of Metroid Cubed! Power Suits, Beams, Hypermode and more!

width=174 height=100http://i.imgur.com/ghgWmA3.jpg[/img]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • What MC version? What's the IP? Are any mods needed to be able to join?
    • Thank you for your answer ! Unfortunatly i have the same problem when i use setPos() public static int movingfunction(CommandContext<CommandSourceStack> context){ CommandSourceStack source = context.getSource(); if (!(source.getEntity() instanceof ServerPlayer)) { return 0; } ServerPlayer player = (ServerPlayer ) source.getEntity(); double moveSpeed = 0.5; for (int i =0; i<10000;i++) { LOGGER.info("running for the {} time", i); double x = player.getX() + player.getViewVector(1.0f).x * moveSpeed; double y = player.getY(); double z = player.getZ() + player.getViewVector(1.0f).z * moveSpeed ; Vec3 movementVec = new Vec3(x, y, z); LOGGER.info("x ={} y ={} z ={}", x, y, z); player.setPos( movementVec); } return 1; } With the logs i can see that x and z are increasing but once again my player is not moving. is there a function to use to sync the server and the client ? I also tried to use LocalPlayer instead of ServerPlayer but my code would stop when i got the object. Also i will change a bit the main topic but is there a way to similate key press ? i found KeyBinding.setKeyBindState on others post but it look like there is no more KeyBinding in 1.20   I found this code : KeyMapping.click(Minecraft.getInstance().options.keyUp.getKey()); But it doesn't seems to work   And i found this one : Minecraft.getInstance().options.keyUp.setDown(true); wich works but doesn't exactly do what i want , it doesn't release the key so for exemple i can't make him run. Minecraft.getInstance().options.keyUp.setDown(true); Minecraft.getInstance().options.keyUp.setDown(false); Minecraft.getInstance().options.keyUp.setDown(true); doesn't make him run
    • Add crash-reports with sites like https://paste.ee/ Maybe an issue with blur, essentials or cumulus_menus
    • Add the crash-report or latest.log (logs-folder) with sites like https://paste.ee/ and paste the link to it here  
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.