Jump to content

[1.8.9] Bow Pull Back Help


Monstrous_Apple

Recommended Posts

Okay so this time I have my bow firing arrows and everything is right, etc. But when I pull back the bow, it does change textures however it turns to the black and purple block textures (as if there was no texture for it), does anyone know why it does this?

 

package com.MonstrousApple.mod.items.rangedweapons;

import com.MonstrousApple.mod.MACreativeTabRangingWeapons;
import com.MonstrousApple.mod.MAGlobal;
import com.MonstrousApple.mod.items.MAItems;

import net.minecraft.client.resources.model.ModelBakery;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.projectile.EntityArrow;
import net.minecraft.init.Items;
import net.minecraft.item.EnumAction;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemArmor.ArmorMaterial;
import net.minecraft.item.ItemBow;
import net.minecraft.stats.StatList;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

public class MAIronBow extends ItemBow {

public MAIronBow(String unlocalizedName) {
	this.setUnlocalizedName(unlocalizedName);
	this.setCreativeTab(MAGlobal.maCreativeTabRangingWeapons);

	//Maximum Amount In One Slot - Stack Size
	this.maxStackSize = 1;

	//Durability - How many uses
	//this.setMaxDamage(250);

	this.setMaxDamage(3);

	}


/**
 * Get the location of the blockstates file used for this item's models
 *
 * @return The location
 */
public String getModelLocation() {
	return getRegistryName();
}

@SideOnly(Side.CLIENT)
@Override
public ModelResourceLocation getModel(ItemStack stack, EntityPlayer player, int useRemaining) {
	if (player.isUsingItem()) {
		int useTime = stack.getMaxItemUseDuration() - useRemaining;

		if (useTime >= 18) {
			return new ModelResourceLocation(getModelLocation(), "IronBow_pulling_2");
		} else if (useTime > 13) {
			return new ModelResourceLocation(getModelLocation(), "IronBow_pulling_1");
		} else if (useTime > 0) {
			return new ModelResourceLocation(getModelLocation(), "IronBow_pulling_0");
		}
	}

	return null;
}

{
    final String[] bowPullIconNameArray = new String[] {"IronBow_pulling_0", "IronBow_pulling_1", "IronBow_pulling_2"};

    }

    /**
     * Called when the player stops using an Item (stops holding the right mouse button).
     */
    public void onPlayerStoppedUsing(ItemStack stack, World worldIn, EntityPlayer playerIn, int timeLeft)
    {
        boolean flag = playerIn.capabilities.isCreativeMode || EnchantmentHelper.getEnchantmentLevel(Enchantment.infinity.effectId, stack) > 0;

        if (flag || playerIn.inventory.hasItem(MAItems.IronArrow))
        {
            int i = this.getMaxItemUseDuration(stack) - timeLeft;
            net.minecraftforge.event.entity.player.ArrowLooseEvent event = new net.minecraftforge.event.entity.player.ArrowLooseEvent(playerIn, stack, i);
            if (net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(event)) return;
            i = event.charge;
            float f = (float)i / 20.0F;
            f = (f * f + f * 2.0F) / 3.0F;

            if ((double)f < 0.1D)
            {
                return;
            }

            if (f > 1.0F)
            {
                f = 1.0F;
            }

            EntityArrow entityarrow = new EntityArrow(worldIn, playerIn, f * 2.0F);

            if (f == 1.0F)
            {
                entityarrow.setIsCritical(true);
            }

            int j = EnchantmentHelper.getEnchantmentLevel(Enchantment.power.effectId, stack);

            if (j > 0)
            {
                entityarrow.setDamage(entityarrow.getDamage() + (double)j * 0.5D + 0.5D);
            }

            int k = EnchantmentHelper.getEnchantmentLevel(Enchantment.punch.effectId, stack);

            if (k > 0)
            {
                entityarrow.setKnockbackStrength(k);
            }

            if (EnchantmentHelper.getEnchantmentLevel(Enchantment.flame.effectId, stack) > 0)
            {
                entityarrow.setFire(100);
            }

            stack.damageItem(1, playerIn);
            worldIn.playSoundAtEntity(playerIn, "random.bow", 1.0F, 1.0F); //  /(itemRand.nextFloat() * 0.4F + 1.2F) + f * 0.5F);

            if (flag)
            {
                entityarrow.canBePickedUp = 2;
            }
            else
            {
                playerIn.inventory.consumeInventoryItem(MAItems.IronArrow);
            }

            playerIn.triggerAchievement(StatList.objectUseStats[item.getIdFromItem(this)]);

            if (!worldIn.isRemote)
            {
                worldIn.spawnEntityInWorld(entityarrow);
            }
        }
    }

    /**
     * Called when the player finishes using this Item (E.g. finishes eating.). Not called when the player stops using
     * the Item before the action is complete.
     */
    public ItemStack onItemUseFinish(ItemStack stack, World worldIn, EntityPlayer playerIn)
    {
        return stack;
    }

    /**
     * How long it takes to use or consume an item
     */
    public int getMaxItemUseDuration(ItemStack stack)
    {
        return 72000;
    }

    /**
     * returns the action that specifies what animation to play when the items is being used
     */
    public EnumAction getItemUseAction(ItemStack stack)
    {
        return EnumAction.BOW;
    }

    /**
     * Called whenever this item is equipped and the right mouse button is pressed. Args: itemStack, world, entityPlayer
     */
    public ItemStack onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn)
    {
        net.minecraftforge.event.entity.player.ArrowNockEvent event = new net.minecraftforge.event.entity.player.ArrowNockEvent(playerIn, itemStackIn);
        if (net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(event)) return event.result;

        if (playerIn.capabilities.isCreativeMode || playerIn.inventory.hasItem(MAItems.IronArrow))
        {
            playerIn.setItemInUse(itemStackIn, this.getMaxItemUseDuration(itemStackIn));
        }

        return itemStackIn;
    }

    /**
     * Return the enchantability factor of the item, most of the time is based on material.
     */
    public int getItemEnchantability()
    {
        return 1;
    }
}

Link to comment
Share on other sites

  • Replies 62
  • Created
  • Last Reply

Top Posters In This Topic

Yeah that's what I put, I just spelled it wrong when I typed on the forums however I don't think I'm doing it right, is this correct?:

 

package com.MonstrousApple.mod.proxy;

import com.MonstrousApple.mod.render.MABlockRender;
import com.MonstrousApple.mod.render.MAGemRender;
import com.MonstrousApple.mod.render.MAItemRender;
import com.MonstrousApple.mod.render.MAOreRender;

import net.minecraft.client.resources.model.ModelBakery;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;

public class ClientProxy extends CommonProxy {

public void preInit(FMLPreInitializationEvent preEvent) {

	super.preInit(preEvent);
	ModelBakery.registerItemVariants

}

public void init(FMLInitializationEvent event) {

	super.init(event);

	MABlockRender.registerBlockRender();
	MAItemRender.registerItemRender();
	MAOreRender.registerOreRender();	
	MAGemRender.registerGemRender();
}

public void postInit(FMLPostInitializationEvent postEvent) {

	super.postInit(postEvent);

}

}

 

package com.MonstrousApple.mod.proxy;

import com.MonstrousApple.mod.blocks.MABlocks;
import com.MonstrousApple.mod.crafting.MACraftingRecipes;
import com.MonstrousApple.mod.crafting.MARecipeRemover;
import com.MonstrousApple.mod.crafting.MASmeltingRecipes;
import com.MonstrousApple.mod.gems.MAGems;
import com.MonstrousApple.mod.handler.MACraftingHandler;
import com.MonstrousApple.mod.handler.MAFuelHandler;
import com.MonstrousApple.mod.items.MAItems;
import com.MonstrousApple.mod.items.foodsetup.MAFishing;
import com.MonstrousApple.mod.ores.MAOres;
import com.MonstrousApple.mod.world.MAWorldGen;

import net.minecraft.client.resources.model.ModelBakery;
import net.minecraft.init.Items;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.registry.GameRegistry;

public class CommonProxy {

public void preInit(FMLPreInitializationEvent preEvent) {

	MARecipeRemover.RemoveCraftingRecipe(Items.golden_apple, 1, 1);
	MARecipeRemover.RemoveCraftingRecipe(Items.fire_charge);
	ModelBakery.registerItemVariants;

	//MARecipeRemover.removeFurnace(new ItemStack(Items.iron_ingot));

	MABlocks.initBlocks();
	MAItems.initItems();
	MAOres.initOres();
	MAGems.initGems();

	MACraftingRecipes.initRecipes();
	MASmeltingRecipes.initSmelting();
	MAFishing.addFish();


}

public void init(FMLInitializationEvent event) {
	GameRegistry.registerWorldGenerator(new MAWorldGen(), 0);
	MinecraftForge.EVENT_BUS.register(new MACraftingHandler());
	GameRegistry.registerFuelHandler(new MAFuelHandler());
}

public void postInit(FMLPostInitializationEvent postEvent) {

}

}

Link to comment
Share on other sites

I tried the new before and still got an error... so I took it out and uploaded that code because both gave an error... so what then?

 

ModelBakery.registerItemVariants(MAItems.IronBow, new ModelResourceLocation(getModelLocation(), "IronBow_pulling_2"));

 

The error is on getModelLocation

Link to comment
Share on other sites

Okay look this has no errors however now when I use my bow it has no standby texture and still no pull back textures?

 

ModelBakery.registerItemVariants(MAItems.IronBow, new ModelResourceLocation("IronBow_standby"));
	ModelBakery.registerItemVariants(MAItems.IronBow, new ModelResourceLocation("IronBow_pulling_0"));
	ModelBakery.registerItemVariants(MAItems.IronBow, new ModelResourceLocation("IronBow_pulling_1"));
	ModelBakery.registerItemVariants(MAItems.IronBow, new ModelResourceLocation("IronBow_pulling_2"));

 

And yeah it's not hard for you, but that doesn't mean it won't be for others, if everything was easy and should be known for all java coders and minecraft modders, there wouldn't be a modder support section in the first place.

Link to comment
Share on other sites

Okay so I get an error on getModelLocation and it says to "Create method 'getModelLocation()'" which is then what I do, and now there's no errors however when I run Minecraft it crashes and I get this error:

 

 

2016-05-12 01:05:27,771 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream

2016-05-12 01:05:27,772 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream

[01:05:27] [main/INFO] [GradleStart]: Extra: []

[01:05:27] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Reece/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken{REDACTED}, --version, 1.8.9, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]

[01:05:27] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[01:05:27] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[01:05:27] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker

[01:05:27] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker

[01:05:27] [main/INFO] [FML]: Forge Mod Loader version 11.15.1.1722 for Minecraft 1.8.9 loading

[01:05:27] [main/INFO] [FML]: Java is Java HotSpot Client VM, version 1.8.0_91, running on Windows 10:x86:10.0, installed at C:\Program Files (x86)\Java\jre1.8.0_91

[01:05:27] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[01:05:27] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker

[01:05:27] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin

[01:05:27] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin

[01:05:27] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[01:05:27] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[01:05:27] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker

[01:05:27] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[01:05:27] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[01:05:27] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

[01:05:28] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!

[01:05:29] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing

[01:05:29] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

[01:05:29] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[01:05:29] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker

[01:05:29] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker

[01:05:29] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker

[01:05:29] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

2016-05-12 01:05:30,171 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream

2016-05-12 01:05:30,197 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream

2016-05-12 01:05:30,199 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream

[01:05:30] [Client thread/INFO]: Setting user: Player946

[01:05:34] [Client thread/INFO]: LWJGL Version: 2.9.4

[01:05:34] [Client thread/WARN] [FML]: =============================================================

[01:05:34] [Client thread/WARN] [FML]: MOD HAS DIRECT REFERENCE System.exit() THIS IS NOT ALLOWED REROUTING TO FML!

[01:05:34] [Client thread/WARN] [FML]: Offendor: com/sun/jna/Native.main([Ljava/lang/String;)V

[01:05:34] [Client thread/WARN] [FML]: Use FMLCommonHandler.exitJava instead

[01:05:34] [Client thread/WARN] [FML]: =============================================================

[01:05:34] [Client thread/INFO] [sTDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:246]: ---- Minecraft Crash Report ----

// Shall we play a game?

 

Time: 12/05/16 01:05

Description: Loading screen debug info

 

This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- System Details --

Details:

Minecraft Version: 1.8.9

Operating System: Windows 10 (x86) version 10.0

Java Version: 1.8.0_91, Oracle Corporation

Java VM Version: Java HotSpot Client VM (mixed mode), Oracle Corporation

Memory: 711947920 bytes (678 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML:

Loaded coremods (and transformers):

GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 353.82' Renderer: 'GeForce GT 640/PCIe/SSE2'

[01:05:34] [Client thread/INFO] [FML]: MinecraftForge v11.15.1.1722 Initialized

[01:05:34] [Client thread/INFO] [FML]: Replaced 204 ore recipies

[01:05:35] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer

[01:05:35] [Client thread/INFO] [FML]: Searching C:\Users\Reece\Desktop\Minecraft 1.8.9 Mod\1.8.9 Production\run\mods for mods

[01:05:36] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load

[01:05:36] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, ma] at CLIENT

[01:05:36] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, ma] at SERVER

[01:05:36] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Monstrous Apple's Mod

[01:05:36] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[01:05:36] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations

[01:05:36] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations

[01:05:36] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations

[01:05:36] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0

[01:05:36] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json

[01:05:37] [Client thread/INFO] [FML]: Applying holder lookups

[01:05:37] [Client thread/INFO] [FML]: Holder lookups applied

[01:05:37] [Client thread/INFO] [FML]: Injecting itemstacks

[01:05:37] [Client thread/INFO] [FML]: Itemstack injection complete

[01:05:37] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue

[01:05:37] [Client thread/ERROR] [FML]:

States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored

UCH mcp{9.19} [Minecraft Coder Pack] (minecraft.jar)

UCH FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8.9-11.15.1.1722.jar)

UCH Forge{11.15.1.1722} [Minecraft Forge] (forgeSrc-1.8.9-11.15.1.1722.jar)

UCE ma{Version 0.1 (1.8.9)} [Monstrous Apple's Mod] (bin)

[01:05:37] [Client thread/ERROR] [FML]: The following problems were captured during this phase

[01:05:37] [Client thread/ERROR] [FML]: Caught exception from ma

java.lang.NullPointerException

at net.minecraft.client.resources.model.ModelResourceLocation.<init>(ModelResourceLocation.java:26) ~[forgeSrc-1.8.9-11.15.1.1722.jar:?]

at com.MonstrousApple.mod.proxy.ClientProxy.preInit(ClientProxy.java:22) ~[bin/:?]

at com.MonstrousApple.mod.Main.preInit(Main.java:25) ~[bin/:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]

at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:560) ~[forgeSrc-1.8.9-11.15.1.1722.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211) ~[forgeSrc-1.8.9-11.15.1.1722.jar:?]

at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189) ~[forgeSrc-1.8.9-11.15.1.1722.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?]

at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:556) [Loader.class:?]

at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:451) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:360) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:116) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]

at GradleStart.main(GradleStart.java:26) [start/:?]

[01:05:37] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:612]: ---- Minecraft Crash Report ----

// Shall we play a game?

 

Time: 12/05/16 01:05

Description: Initializing game

 

java.lang.NullPointerException: Initializing game

at net.minecraft.client.resources.model.ModelResourceLocation.<init>(ModelResourceLocation.java:26)

at com.MonstrousApple.mod.proxy.ClientProxy.preInit(ClientProxy.java:22)

at com.MonstrousApple.mod.Main.preInit(Main.java:25)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:560)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

at com.google.common.eventbus.EventBus.post(EventBus.java:275)

at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211)

at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

at com.google.common.eventbus.EventBus.post(EventBus.java:275)

at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118)

at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:556)

at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:451)

at net.minecraft.client.Minecraft.run(Minecraft.java:360)

at net.minecraft.client.main.Main.main(Main.java:116)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)

at GradleStart.main(GradleStart.java:26)

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- Head --

Stacktrace:

at net.minecraft.client.resources.model.ModelResourceLocation.<init>(ModelResourceLocation.java:26)

at com.MonstrousApple.mod.proxy.ClientProxy.preInit(ClientProxy.java:22)

at com.MonstrousApple.mod.Main.preInit(Main.java:25)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:560)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

at com.google.common.eventbus.EventBus.post(EventBus.java:275)

at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211)

at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

at com.google.common.eventbus.EventBus.post(EventBus.java:275)

at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118)

at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:556)

at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:451)

 

-- Initialization --

Details:

Stacktrace:

at net.minecraft.client.Minecraft.run(Minecraft.java:360)

at net.minecraft.client.main.Main.main(Main.java:116)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)

at GradleStart.main(GradleStart.java:26)

 

-- System Details --

Details:

Minecraft Version: 1.8.9

Operating System: Windows 10 (x86) version 10.0

Java Version: 1.8.0_91, Oracle Corporation

Java VM Version: Java HotSpot Client VM (mixed mode), Oracle Corporation

Memory: 780403352 bytes (744 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP 9.19 Powered by Forge 11.15.1.1722 4 mods loaded, 4 mods active

States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored

UCH mcp{9.19} [Minecraft Coder Pack] (minecraft.jar)

UCH FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8.9-11.15.1.1722.jar)

UCH Forge{11.15.1.1722} [Minecraft Forge] (forgeSrc-1.8.9-11.15.1.1722.jar)

UCE ma{Version 0.1 (1.8.9)} [Monstrous Apple's Mod] (bin)

Loaded coremods (and transformers):

GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 353.82' Renderer: 'GeForce GT 640/PCIe/SSE2'

Launched Version: 1.8.9

LWJGL: 2.9.4

OpenGL: GeForce GT 640/PCIe/SSE2 GL version 4.5.0 NVIDIA 353.82, NVIDIA Corporation

GL Caps: Using GL 1.3 multitexturing.

Using GL 1.3 texture combiners.

Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.

Shaders are available because OpenGL 2.1 is supported.

VBOs are available because OpenGL 1.5 is supported.

 

Using VBOs: No

Is Modded: Definitely; Client brand changed to 'fml,forge'

Type: Client (map_client.txt)

Resource Packs:

Current Language: English (US)

Profiler Position: N/A (disabled)

CPU: 8x Intel® Core i7-3770 CPU @ 3.40GHz

[01:05:37] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:612]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Reece\Desktop\Minecraft 1.8.9 Mod\1.8.9 Production\run\.\crash-reports\crash-2016-05-12_01.05.37-client.txt

Java HotSpot Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

Link to comment
Share on other sites

Well this is the code from ModelResourceLocation and yeah I have still got no clue what to do...

 

package net.minecraft.client.resources.model;

import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import org.apache.commons.lang3.StringUtils;

@SideOnly(Side.CLIENT)
public class ModelResourceLocation extends ResourceLocation
{
    private final String variant;

    protected ModelResourceLocation(int p_i46078_1_, String... p_i46078_2_)
    {
        super(0, new String[] {p_i46078_2_[0], p_i46078_2_[1]});
        this.variant = StringUtils.isEmpty(p_i46078_2_[2]) ? "normal" : p_i46078_2_[2].toLowerCase();
    }

    public ModelResourceLocation(String p_i46079_1_)
    {
        this(0, parsePathString(p_i46079_1_));
    }

    public ModelResourceLocation(ResourceLocation p_i46080_1_, String p_i46080_2_)
    {
        this(p_i46080_1_.toString(), p_i46080_2_);
    }

    public ModelResourceLocation(String p_i46081_1_, String p_i46081_2_)
    {
        this(0, parsePathString(p_i46081_1_ + '#' + (p_i46081_2_ == null ? "normal" : p_i46081_2_)));
    }

    protected static String[] parsePathString(String p_177517_0_)
    {
        String[] astring = new String[] {null, p_177517_0_, null};
        int i = p_177517_0_.indexOf(35);
        String s = p_177517_0_;

        if (i >= 0)
        {
            astring[2] = p_177517_0_.substring(i + 1, p_177517_0_.length());

            if (i > 1)
            {
                s = p_177517_0_.substring(0, i);
            }
        }

        System.arraycopy(ResourceLocation.splitObjectName(s), 0, astring, 0, 2);
        return astring;
    }

    public String getVariant()
    {
        return this.variant;
    }

    public boolean equals(Object p_equals_1_)
    {
        if (this == p_equals_1_)
        {
            return true;
        }
        else if (p_equals_1_ instanceof ModelResourceLocation && super.equals(p_equals_1_))
        {
            ModelResourceLocation modelresourcelocation = (ModelResourceLocation)p_equals_1_;
            return this.variant.equals(modelresourcelocation.variant);
        }
        else
        {
            return false;
        }
    }

    public int hashCode()
    {
        return 31 * super.hashCode() + this.variant.hashCode();
    }

    public String toString()
    {
        return super.toString() + '#' + this.variant;
    }
}

Link to comment
Share on other sites

Okay now when I pull it back it renders as if my bow was in standby phase and doesn't switch between the pulling stages and also when I actually hold my bow it has no texture..? Thanks for helping by the way and yeah I will be learning more of java real soon... sorry about that, but anyway do you know why this problem is happening?

 

ModelBakery.registerItemVariants(MAItems.IronBow, new ModelResourceLocation(MAItems.IronBow.getRegistryName(), "IronBow"));
	ModelBakery.registerItemVariants(MAItems.IronBow, new ModelResourceLocation(MAItems.IronBow.getRegistryName(), "IronBow_pulling_0"));
	ModelBakery.registerItemVariants(MAItems.IronBow, new ModelResourceLocation(MAItems.IronBow.getRegistryName(), "IronBow_pulling_1"));
	ModelBakery.registerItemVariants(MAItems.IronBow, new ModelResourceLocation(MAItems.IronBow.getRegistryName(), "IronBow_pulling_2"));

Link to comment
Share on other sites

Is there anything wrong in here?

 

Client Proxy:

package com.MonstrousApple.mod.proxy;

import com.MonstrousApple.mod.items.MAItems;
import com.MonstrousApple.mod.render.MABlockRender;
import com.MonstrousApple.mod.render.MAGemRender;
import com.MonstrousApple.mod.render.MAItemRender;
import com.MonstrousApple.mod.render.MAOreRender;

import net.minecraft.client.resources.model.ModelBakery;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;

public class ClientProxy extends CommonProxy {

public void preInit(FMLPreInitializationEvent preEvent) {

	super.preInit(preEvent);
	ModelBakery.registerItemVariants(MAItems.IronBow, new ModelResourceLocation(MAItems.IronBow.getRegistryName(), "IronBow"));
	ModelBakery.registerItemVariants(MAItems.IronBow, new ModelResourceLocation(MAItems.IronBow.getRegistryName(), "IronBow_pulling_0"));
	ModelBakery.registerItemVariants(MAItems.IronBow, new ModelResourceLocation(MAItems.IronBow.getRegistryName(), "IronBow_pulling_1"));
	ModelBakery.registerItemVariants(MAItems.IronBow, new ModelResourceLocation(MAItems.IronBow.getRegistryName(), "IronBow_pulling_2"));
	//ModelBakery.registerItemVariants(MAItems.IronBow, new ModelResourceLocation(getModelLocation(), "IronBow_pulling_1"));
	//ModelBakery.registerItemVariants(MAItems.IronBow, new ModelResourceLocation(getModelLocation(), "IronBow_pulling_0"));


	//new ModelResourceLocation(MAItems.ObsidianBow.getRegistryName(), "IronBow_pulling_2")


}

public void init(FMLInitializationEvent event) {

	super.init(event);

	MABlockRender.registerBlockRender();
	MAItemRender.registerItemRender();
	MAOreRender.registerOreRender();	
	MAGemRender.registerGemRender();
}

public void postInit(FMLPostInitializationEvent postEvent) {

	super.postInit(postEvent);

}

}

 

Bow:

package com.MonstrousApple.mod.items.rangedweapons;

import com.MonstrousApple.mod.MACreativeTabRangingWeapons;
import com.MonstrousApple.mod.MAGlobal;
import com.MonstrousApple.mod.items.MAItems;

import net.minecraft.client.resources.model.ModelBakery;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.projectile.EntityArrow;
import net.minecraft.init.Items;
import net.minecraft.item.EnumAction;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemArmor.ArmorMaterial;
import net.minecraft.item.ItemBow;
import net.minecraft.stats.StatList;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

public class MAIronBow extends ItemBow {

public MAIronBow(String unlocalizedName) {
	this.setUnlocalizedName(unlocalizedName);
	this.setCreativeTab(MAGlobal.maCreativeTabRangingWeapons);

	//Maximum Amount In One Slot - Stack Size
	this.maxStackSize = 1;

	//Durability - How many uses
	this.setMaxDamage(250);

	//this.setMaxDamage(3);

	}


/**
 * Get the location of the blockstates file used for this item's models
 *
 * @return The location
 */
public String getModelLocation() {
	return getRegistryName();
}

@SideOnly(Side.CLIENT)
@Override
public ModelResourceLocation getModel(ItemStack stack, EntityPlayer player, int useRemaining) {
	if (player.isUsingItem()) {
		int useTime = stack.getMaxItemUseDuration() - useRemaining;

		if (useTime >= 18) {
			return new ModelResourceLocation(getModelLocation(), "IronBow_pulling_2");
		} else if (useTime > 13) {
			return new ModelResourceLocation(getModelLocation(), "IronBow_pulling_1");
		} else if (useTime > 0) {
			return new ModelResourceLocation(getModelLocation(), "IronBow_pulling_0");
		}
	}

	return null;
}

{
    final String[] bowPullIconNameArray = new String[] {"IronBow_pulling_0", "IronBow_pulling_1", "IronBow_pulling_2"};

    }

    /**
     * Called when the player stops using an Item (stops holding the right mouse button).
     */
    public void onPlayerStoppedUsing(ItemStack stack, World worldIn, EntityPlayer playerIn, int timeLeft)
    {
        boolean flag = playerIn.capabilities.isCreativeMode || EnchantmentHelper.getEnchantmentLevel(Enchantment.infinity.effectId, stack) > 0;

        if (flag || playerIn.inventory.hasItem(MAItems.IronArrow))
        {
            int i = this.getMaxItemUseDuration(stack) - timeLeft;
            net.minecraftforge.event.entity.player.ArrowLooseEvent event = new net.minecraftforge.event.entity.player.ArrowLooseEvent(playerIn, stack, i);
            if (net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(event)) return;
            i = event.charge;
            float f = (float)i / 20.0F;
            f = (f * f + f * 2.0F) / 3.0F;

            if ((double)f < 0.1D)
            {
                return;
            }

            if (f > 1.0F)
            {
                f = 1.0F;
            }

            EntityArrow entityarrow = new EntityArrow(worldIn, playerIn, f * 2.0F);

            if (f == 1.0F)
            {
                entityarrow.setIsCritical(true);
            }

            int j = EnchantmentHelper.getEnchantmentLevel(Enchantment.power.effectId, stack);

            if (j > 0)
            {
                entityarrow.setDamage(entityarrow.getDamage() + (double)j * 0.5D + 0.5D);
            }

            int k = EnchantmentHelper.getEnchantmentLevel(Enchantment.punch.effectId, stack);

            if (k > 0)
            {
                entityarrow.setKnockbackStrength(k);
            }

            if (EnchantmentHelper.getEnchantmentLevel(Enchantment.flame.effectId, stack) > 0)
            {
                entityarrow.setFire(100);
            }

            stack.damageItem(1, playerIn);
            worldIn.playSoundAtEntity(playerIn, "random.bow", 1.0F, 1.0F); //  /(itemRand.nextFloat() * 0.4F + 1.2F) + f * 0.5F);

            if (flag)
            {
                entityarrow.canBePickedUp = 2;
            }
            else
            {
                playerIn.inventory.consumeInventoryItem(MAItems.IronArrow);
            }

            playerIn.triggerAchievement(StatList.objectUseStats[item.getIdFromItem(this)]);

            if (!worldIn.isRemote)
            {
                worldIn.spawnEntityInWorld(entityarrow);
            }
        }
    }

    /**
     * Called when the player finishes using this Item (E.g. finishes eating.). Not called when the player stops using
     * the Item before the action is complete.
     */
    public ItemStack onItemUseFinish(ItemStack stack, World worldIn, EntityPlayer playerIn)
    {
        return stack;
    }

    /**
     * How long it takes to use or consume an item
     */
    public int getMaxItemUseDuration(ItemStack stack)
    {
        return 72000;
    }

    /**
     * returns the action that specifies what animation to play when the items is being used
     */
    public EnumAction getItemUseAction(ItemStack stack)
    {
        return EnumAction.BOW;
    }

    /**
     * Called whenever this item is equipped and the right mouse button is pressed. Args: itemStack, world, entityPlayer
     */
    public ItemStack onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn)
    {
        net.minecraftforge.event.entity.player.ArrowNockEvent event = new net.minecraftforge.event.entity.player.ArrowNockEvent(playerIn, itemStackIn);
        if (net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(event)) return event.result;

        if (playerIn.capabilities.isCreativeMode || playerIn.inventory.hasItem(MAItems.IronArrow))
        {
            playerIn.setItemInUse(itemStackIn, this.getMaxItemUseDuration(itemStackIn));
        }

        return itemStackIn;
    }

    /**
     * Return the enchantability factor of the item, most of the time is based on material.
     */
    public int getItemEnchantability()
    {
        return 1;
    }
}

Link to comment
Share on other sites

Named; "IronBow.json"

 

{

    "parent": "builtin/generated",

    "textures": {

        "layer0": "ma:items/IronBow_standby"

    },

    "display": {

        "thirdperson": {

            "rotation": [ 5, 80, -45 ],

            "translation": [ 0.75, 0, 0.25 ],

            "scale": [ 1, 1, 1 ]

        },

        "firstperson": {

            "rotation": [ 0, -135, 25 ],

            "translation": [ 0, 4, 2 ],

            "scale": [ 1.7, 1.7, 1.7 ]

        }

    }

}

 

 

 

Named; "IronBow_pulling_0"

 

{

    "parent": "builtin/generated",

    "textures": {

        "layer0": "ma:items/IronBow_pulling_0"

    },

    "display": {

        "thirdperson": {

            "rotation": [ 5, 80, -45 ],

            "translation": [ 0.75, 0, 0.25 ],

            "scale": [ 1, 1, 1 ]

        },

        "firstperson": {

            "rotation": [ 0, -135, 25 ],

            "translation": [ 0, 4, 2 ],

            "scale": [ 1.7, 1.7, 1.7 ]

        }

    }

}

 

 

 

Named; "IronBow_pulling_1"

 

{

    "parent": "builtin/generated",

    "textures": {

        "layer0": "ma:items/IronBow_pulling_1"

    },

    "display": {

        "thirdperson": {

            "rotation": [ 5, 80, -45 ],

            "translation": [ 0.75, 0, 0.25 ],

            "scale": [ 1, 1, 1 ]

        },

        "firstperson": {

            "rotation": [ 0, -135, 25 ],

            "translation": [ 0, 4, 2 ],

            "scale": [ 1.7, 1.7, 1.7 ]

        }

    }

}

 

 

 

 

Named; "IronBow_pulling_2"

 

{

    "parent": "builtin/generated",

    "textures": {

        "layer0": "ma:items/IronBow_pulling_2"

    },

    "display": {

        "thirdperson": {

            "rotation": [ 5, 80, -45 ],

            "translation": [ 0.75, 0, 0.25 ],

            "scale": [ 1, 1, 1 ]

        },

        "firstperson": {

            "rotation": [ 0, -135, 25 ],

            "translation": [ 0, 4, 2 ],

            "scale": [ 1.7, 1.7, 1.7 ]

        }

    }

}

 

 

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.




×
×
  • Create New...

Important Information

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