Jump to content

Recommended Posts

Posted

I have checked my code and I don't think anything is wrong, but when I start up the game, the armor models show as purple and black. I did one before on cheese, and that worked fine and I tried re-copying the code but the new one doesn't work.

 

Here is my main mod.java code

package tntdiamond.RegidMod;

import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
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.registry.GameRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemFood;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.util.EnumHelper;
import tntdiamond.RegidMod.item.ItemCheeseArmor;
import tntdiamond.RegidMod.item.ItemCheeseAxe;
import tntdiamond.RegidMod.item.ItemCheeseHoe;
import tntdiamond.RegidMod.item.ItemCheesePickaxe;
import tntdiamond.RegidMod.item.ItemCheeseShovel;
import tntdiamond.RegidMod.item.ItemCheeseSword;
import tntdiamond.RegidMod.item.ItemGalaxySword;
import tntdiamond.RegidMod.item.ItemIllusionArmor;
import tntdiamond.RegidMod.item.ItemRegidAxe;
import tntdiamond.RegidMod.item.ItemRegidHoe;
import tntdiamond.RegidMod.item.ItemRegidPickaxe;
import tntdiamond.RegidMod.item.ItemRegidShovel;
import tntdiamond.RegidMod.item.ItemRegidSword;

//step 1
@Mod(modid = "rm", name = "Regid Mod", version = "1.0")
public class RegidMod {

public static Item itemRegid; 
public static Block blockRegid;
public static Item itemCheese;
public static Item itemGrilledCheese;
public static Block blockCheese;

public static Item cheeseHelmet;
public static Item cheeseChestplate;
public static Item cheeseLeggings;
public static Item cheeseBoots;

public static Item cheesePickaxe;
public static Item cheeseAxe;
public static Item cheeseShovel;
public static Item cheeseHoe;
public static Item cheeseSword;
public static Item itemCheeseStick;

public static Item regidPickaxe;
public static Item regidAxe;
public static Item regidShovel;
public static Item regidHoe;
public static Item regidSword;

public static Block blockIllusionOre;
public static Block blockIllusion;
public static Item itemIllusion;

public static Item illusionHelmet;
public static Item illusionChestplate;
public static Item illusionLeggings;
public static Item illusionBoots;

public static Item galaxySword;

//diamond harvestlevel=4, diamond maxUses = 1560, diamond efficiency = 8.0F, iron = 6.0F, diamond damage = 6.0F, enchantibility diamond = 10
public static final Item.ToolMaterial cheeseToolMaterial = EnumHelper.addToolMaterial("cheeseToolMaterial", 1, 400, 5.0F, 1.5F, 5);
public static final ItemArmor.ArmorMaterial cheeseArmorMaterial = EnumHelper.addArmorMaterial("cheeseArmorMaterial", 400, new int[]{1,4,3,2}, 5);

public static final Item.ToolMaterial galaxyToolMaterial = EnumHelper.addToolMaterial("galaxyToolMaterial", 4, 2500, 12.0F, 20.0F, 15);
public static final Item.ToolMaterial illusionToolMaterial = EnumHelper.addToolMaterial("illusionToolMaterial", 4, 1800, 8.0F, 10.0F, 12);
public static final ItemArmor.ArmorMaterial illusionArmorMaterial = EnumHelper.addArmorMaterial("illusionArmorMaterial", 1800, new int[]{7,17,13,8}, 30);
//default 2,7,5,3.

public static final Item.ToolMaterial regidToolMaterial = EnumHelper.addToolMaterial("regidToolMaterial", 5, 2000, 9.0F, 7.0F, 11);


@EventHandler
public void preInit(FMLPreInitializationEvent event) {
	//step 2
	//Item/Block init and registering
	//config handling
	itemRegid = new ItemRegid().setUnlocalizedName("itemRegid").setTextureName("rm:itemRegid").setCreativeTab(tabRegidModItems);
	blockRegid = new BlockRegid(Material.iron).setBlockName("BlockRegid").setBlockTextureName("rm:blockregid").setCreativeTab(tabRegidModBlocks);

	cheesePickaxe = new ItemCheesePickaxe(cheeseToolMaterial).setUnlocalizedName("ItemCheesePickaxe").setTextureName("rm:itemcheesepickaxe").setCreativeTab(tabRegidModTools);
	cheeseAxe = new ItemCheeseAxe(cheeseToolMaterial).setUnlocalizedName("ItemCheeseAxe").setTextureName("rm:itemcheeseaxe").setCreativeTab(tabRegidModTools);
	cheeseShovel = new ItemCheeseShovel(cheeseToolMaterial).setUnlocalizedName("ItemCheeseShovel").setTextureName("rm:itemcheeseshovel").setCreativeTab(tabRegidModTools);
	cheeseHoe = new ItemCheeseHoe(cheeseToolMaterial).setUnlocalizedName("ItemCheeseHoe").setTextureName("rm:itemcheesehoe").setCreativeTab(tabRegidModTools);
	cheeseSword = new ItemCheeseSword(cheeseToolMaterial).setUnlocalizedName("ItemCheeseSword").setTextureName("rm:itemcheesesword").setCreativeTab(tabRegidModCombat);

	cheeseHelmet = new ItemCheeseArmor(cheeseArmorMaterial, 0, 0).setUnlocalizedName("ItemCheeseHelmet").setTextureName("rm:itemcheesehelmet").setCreativeTab(tabRegidModCombat);
	cheeseChestplate = new ItemCheeseArmor(cheeseArmorMaterial, 0, 1).setUnlocalizedName("ItemCheeseChestplate").setTextureName("rm:itemcheesechestplate").setCreativeTab(tabRegidModCombat);
	cheeseLeggings = new ItemCheeseArmor(cheeseArmorMaterial, 0, 2).setUnlocalizedName("ItemCheeseLeggings").setTextureName("rm:itemcheeseleggings").setCreativeTab(tabRegidModCombat);
	cheeseBoots = new ItemCheeseArmor(cheeseArmorMaterial, 0, 3).setUnlocalizedName("ItemCheeseBoots").setTextureName("rm:itemcheeseboots").setCreativeTab(tabRegidModCombat);

	blockCheese = new BlockCheese(Material.cloth).setBlockName("BlockCheese").setBlockTextureName("rm:blockcheese").setCreativeTab(tabRegidModBlocks);

	regidPickaxe = new ItemRegidPickaxe(regidToolMaterial).setUnlocalizedName("ItemRegidPickaxe").setTextureName("rm:itemregidpickaxe").setCreativeTab(tabRegidModTools);
	regidAxe = new ItemRegidAxe(regidToolMaterial).setUnlocalizedName("ItemRegidAxe").setTextureName("rm:itemregidAxe").setCreativeTab(tabRegidModTools);
	regidShovel = new ItemRegidShovel(regidToolMaterial).setUnlocalizedName("ItemRegidShovel").setTextureName("rm:itemregidshovel").setCreativeTab(tabRegidModTools);
	regidHoe = new ItemRegidHoe(regidToolMaterial).setUnlocalizedName("ItemRegidHoe").setTextureName("rm:itemregidhoe").setCreativeTab(tabRegidModTools);;
	regidSword = new ItemRegidSword(regidToolMaterial).setUnlocalizedName("ItemRegidSword").setTextureName("rm:itemregidsword").setCreativeTab(tabRegidModCombat);;


	itemCheeseStick = new ItemCheeseStick().setUnlocalizedName("ItemCheeseStick").setTextureName("rm:itemcheesestick").setCreativeTab(tabRegidModItems);
	itemCheese = new ItemFood(4, 0.1F, false).setUnlocalizedName("ItemCheese").setTextureName("rm:itemcheese").setCreativeTab(tabRegidModItems);
	itemGrilledCheese = new ItemFood(8, 0.2F, true).setUnlocalizedName("ItemGrilledCheese").setTextureName("rm:itemgrilledcheese").setCreativeTab(tabRegidModItems);
	//food new ItemFood(1, 2, 3) 1=Food Points (max20) 2=Saturation (max1.0F) 3=wolf food (T/F)

	blockIllusionOre = new BlockIllusionOre(Material.rock).setBlockName("BlockIllusionOre").setBlockTextureName("rm:blockillusionore").setCreativeTab(tabRegidModBlocks);
	blockIllusion = new BlockIllusion(Material.rock).setBlockName("BlockIllusion").setBlockTextureName("rm:blockillusion").setCreativeTab(tabRegidModBlocks);
	itemIllusion = new ItemIllusion().setUnlocalizedName("itemIllusion").setTextureName("rm:itemIllusion").setCreativeTab(tabRegidModItems);

	illusionHelmet = new ItemIllusionArmor(illusionArmorMaterial, 0, 0).setUnlocalizedName("ItemIllusionHelmet").setTextureName("rm:itemillusionhelmet").setCreativeTab(tabRegidModCombat);
	illusionChestplate = new ItemIllusionArmor(illusionArmorMaterial, 0, 1).setUnlocalizedName("ItemIllusionChestplate").setTextureName("rm:itemillusionchestplate").setCreativeTab(tabRegidModCombat);;
	illusionLeggings = new ItemIllusionArmor(illusionArmorMaterial, 0, 2).setUnlocalizedName("ItemIllusionLeggings").setTextureName("rm:itemillusionleggings").setCreativeTab(tabRegidModCombat);;
	illusionBoots = new ItemIllusionArmor(illusionArmorMaterial, 0, 3).setUnlocalizedName("ItemIllusionBoots").setTextureName("rm:itemillusionboots").setCreativeTab(tabRegidModCombat);;

	galaxySword = new ItemGalaxySword(galaxyToolMaterial).setUnlocalizedName("ItemGalaxySword").setTextureName("rm:itemgalaxysword").setCreativeTab(tabRegidModCombat);




	//step 3
	GameRegistry.registerItem(itemRegid, itemRegid.getUnlocalizedName().substring(5));
	GameRegistry.registerBlock(blockRegid, blockRegid.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemCheese, itemCheese.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemGrilledCheese, itemGrilledCheese.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(cheesePickaxe, cheesePickaxe.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(cheeseAxe, cheeseAxe.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(cheeseShovel, cheeseShovel.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(cheeseHoe, cheeseHoe.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(cheeseSword, cheeseSword.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemCheeseStick, itemCheeseStick.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(cheeseHelmet, cheeseHelmet.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(cheeseChestplate, cheeseChestplate.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(cheeseLeggings, cheeseLeggings.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(cheeseBoots, cheeseBoots.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(regidPickaxe, regidPickaxe.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(regidAxe, regidAxe.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(regidShovel, regidShovel.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(regidHoe, regidHoe.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(regidSword, regidSword.getUnlocalizedName().substring(5));

	GameRegistry.registerBlock(blockCheese, blockCheese.getUnlocalizedName().substring(5));

	GameRegistry.registerBlock(blockIllusionOre, blockIllusionOre.getUnlocalizedName().substring(5));
	GameRegistry.registerBlock(blockIllusion, blockIllusion.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemIllusion, itemIllusion.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(galaxySword, galaxySword.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(illusionHelmet, illusionHelmet.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(illusionChestplate, illusionChestplate.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(illusionLeggings, illusionLeggings.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(illusionBoots, illusionBoots.getUnlocalizedName().substring(5));

	GameRegistry.registerWorldGenerator(new CheeseGeneration(), 0);
}

@EventHandler
public void init(FMLInitializationEvent event) {
	//Proxy, TileEntity, entity, GUI and Packet Registering
	GameRegistry.addRecipe(new ItemStack(cheesePickaxe), new Object[]{"CCC", " S ", " S ", 'C', itemGrilledCheese, 'S', Items.stick});
	GameRegistry.addRecipe(new ItemStack(cheeseAxe), new Object[]{"CC ", "CS ", " S ", 'C', itemGrilledCheese, 'S', Items.stick});
	GameRegistry.addRecipe(new ItemStack(cheeseShovel), new Object[]{"C", "S", "S", 'C', itemGrilledCheese, 'S', Items.stick});
	GameRegistry.addRecipe(new ItemStack(cheeseHoe), new Object[]{"CC ", " S ", " S ", 'C', itemGrilledCheese, 'S', Items.stick});
	GameRegistry.addRecipe(new ItemStack(cheeseSword), new Object[]{"C", "C", "S", 'C', itemGrilledCheese, 'S', Items.stick});
	GameRegistry.addRecipe(new ItemStack(itemCheeseStick), new Object[]{" C ", " S ", "   ", 'C', itemGrilledCheese, 'S', Items.stick});
	GameRegistry.addRecipe(new ItemStack(itemGrilledCheese), new Object[]{"   ", "CC ", "CC ", 'C', itemCheeseStick,});

	GameRegistry.addRecipe(new ItemStack(cheeseHelmet), new Object[]{"CCC", "C C", "   ", 'C', itemGrilledCheese});
	GameRegistry.addRecipe(new ItemStack(cheeseChestplate), new Object[]{"C C", "CCC", "CCC", 'C', itemGrilledCheese});
	GameRegistry.addRecipe(new ItemStack(cheeseLeggings), new Object[]{"CCC", "C C", "C C", 'C', itemGrilledCheese});
	GameRegistry.addRecipe(new ItemStack(cheeseBoots), new Object[]{"   ", "C C", "C C", 'C', itemGrilledCheese});

	GameRegistry.addRecipe(new ItemStack(blockIllusion), new Object[]{"III", "III", "III", 'I', itemIllusion});
	GameRegistry.addRecipe(new ItemStack(galaxySword), new Object[]{" FI", " IF", "O  ", 'F', Items.flint_and_steel, 'I', itemIllusion, 'O', Blocks.obsidian});


	GameRegistry.addSmelting(blockIllusionOre, new ItemStack(itemIllusion), 5.0F);

	GameRegistry.addSmelting(itemCheese, new ItemStack(itemGrilledCheese), 5.0F);
	GameRegistry.addSmelting(itemCheeseStick, new ItemStack(RegidMod.itemGrilledCheese), 5.0F);
}

@EventHandler
public void postInit(FMLPostInitializationEvent event) {

}

public static CreativeTabs tabRegidModBlocks = new CreativeTabs("tabRegidModBlocks"){
	@Override
	public Item getTabIconItem(){
		return new ItemStack(blockRegid).getItem();
	}
};

public static CreativeTabs tabRegidModItems = new CreativeTabs("tabRegidModItems"){
	@Override
	public Item getTabIconItem(){
		return new ItemStack(itemRegid).getItem();

	}
};

public static CreativeTabs tabRegidModTools = new CreativeTabs("tabRegidModTools"){
	@Override
	public Item getTabIconItem(){
		return new ItemStack(regidPickaxe).getItem();
	}
};

public static CreativeTabs tabRegidModCombat = new CreativeTabs("tabRegidModCombat"){
	@Override
	public Item getTabIconItem(){
		return new ItemStack(regidSword).getItem();
	}
};
}

 

Here is the ItemIllusionArmor.java file

package tntdiamond.RegidMod.item;

import net.minecraft.entity.Entity;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemArmor.ArmorMaterial;

public class ItemIllusionArmor extends ItemArmor {

public ItemIllusionArmor(ArmorMaterial armorMaterial, int renderIndex, int armorType) {
	super(armorMaterial, renderIndex, armorType);
}

@Override
public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type)
{
	if(this.armorType == 2)
	{
		return "rm:texutres/models/armor/illusion_layer_2.png";
	}	
	return "rm:texutres/models/armor/illusion_layer_1.png";
}
}

 

Here are my texture models:

jIEQG0V.png

NWuRtla.png

 

The links for the texture models:

http://i.imgur.com/jIEQG0V.png

http://i.imgur.com/jIEQG0V.png

 

Posted

There's always a log. It's written to logs/fml-client-latest.log in the game directory.

 

Missing or broken textures log errors without crashing the game.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted
[11:12:25] [main/INFO]: Extra: []
[11:12:25] [main/INFO]: Running with arguments: [--userProperties, {}, --assetsDir, /Users/Tnt/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[11:12:25] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[11:12:25] [main/INFO]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[11:12:25] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[11:12:25] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[11:12:25] [main/INFO]: Forge Mod Loader version 7.99.16.1448 for Minecraft 1.7.10 loading
[11:12:25] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_60, running on Mac OS X:x86_64:10.11.5, installed at /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/jre
[11:12:25] [main/INFO]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[11:12:25] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[11:12:25] [main/INFO]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
[11:12:25] [main/INFO]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[11:12:25] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[11:12:25] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[11:12:25] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[11:12:25] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[11:12:25] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[11:12:25] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[11:12:25] [main/ERROR]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[11:12:26] [main/ERROR]: FML appears to be missing any signature data. This is not a good thing
[11:12:26] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[11:12:26] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[11:12:27] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[11:12:27] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
[11:12:27] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
[11:12:27] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[11:12:28] [main/INFO]: Setting user: Player590
[11:12:31] [Client thread/INFO]: LWJGL Version: 2.9.1
[11:12:31] [Client thread/INFO]: [cpw.mods.fml.client.SplashProgress:start:188]: ---- Minecraft Crash Report ----
// This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~]

Time: 7/20/16 11:12 AM
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.7.10
Operating System: Mac OS X (x86_64) version 10.11.5
Java Version: 1.8.0_60, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 796168912 bytes (759 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: 
GL info: ' Vendor: 'Intel Inc.' Version: '2.1 INTEL-10.14.66' Renderer: 'Intel(R) HD Graphics 5300'
[11:12:31] [Client thread/INFO]: Attempting early MinecraftForge initialization
[11:12:31] [Client thread/INFO]: MinecraftForge v10.13.4.1448 Initialized
[11:12:32] [Client thread/INFO]: Replaced 183 ore recipies
[11:12:32] [Client thread/INFO]: Completed early MinecraftForge initialization
[11:12:32] [Client thread/INFO]: Found 0 mods from the command line. Injecting into mod discoverer
[11:12:32] [Client thread/INFO]: Searching /Users/Tnt/Desktop/Modding Workspace/eclipse/mods for mods
[11:12:38] [Client thread/INFO]: Forge Mod Loader has identified 4 mods to load
[11:12:39] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, rm] at CLIENT
[11:12:39] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, rm] at SERVER
[11:12:39] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Regid Mod
[11:12:39] [Client thread/INFO]: Processing ObjectHolder annotations
[11:12:39] [Client thread/INFO]: Found 341 ObjectHolder annotations
[11:12:39] [Client thread/INFO]: Identifying ItemStackHolder annotations
[11:12:39] [Client thread/INFO]: Found 0 ItemStackHolder annotations
[11:12:40] [Client thread/INFO]: Configured a dormant chunk cache size of 0
[11:12:40] [Client thread/INFO]: Applying holder lookups
[11:12:40] [Client thread/INFO]: Holder lookups applied
[11:12:40] [Client thread/INFO]: Injecting itemstacks
[11:12:40] [Client thread/INFO]: Itemstack injection complete
[11:12:40] [sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: 
[11:12:40] [sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
[11:12:40] [Thread-7/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[11:12:40] [Thread-7/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[11:12:40] [Thread-7/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[11:12:41] [sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: 
[11:12:41] [sound Library Loader/INFO]: Sound engine started
[11:12:45] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[11:12:45] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[11:12:45] [Client thread/INFO]: Injecting itemstacks
[11:12:45] [Client thread/INFO]: Itemstack injection complete
[11:12:46] [Client thread/INFO]: Forge Mod Loader has successfully loaded 4 mods
[11:12:46] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Regid Mod
[11:12:47] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[11:12:47] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[11:12:47] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: 
[11:12:47] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...
[11:12:48] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
[11:12:48] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: 
[11:12:48] [sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: 
[11:12:48] [sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
[11:12:48] [Thread-9/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[11:12:48] [Thread-9/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[11:12:48] [Thread-9/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[11:12:48] [sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: 
[11:12:48] [sound Library Loader/INFO]: Sound engine started
[11:13:02] [server thread/INFO]: Starting integrated minecraft server version 1.7.10
[11:13:02] [server thread/INFO]: Generating keypair
[11:13:02] [server thread/INFO]: Injecting existing block and item data into this server instance
[11:13:02] [server thread/INFO]: Applying holder lookups
[11:13:02] [server thread/INFO]: Holder lookups applied
[11:13:03] [server thread/INFO]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@5751aa91)
[11:13:03] [server thread/INFO]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@5751aa91)
[11:13:03] [server thread/INFO]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@5751aa91)
[11:13:03] [server thread/INFO]: Preparing start region for level 0
[11:13:04] [server thread/INFO]: Preparing spawn area: 29%
[11:13:05] [server thread/INFO]: Changing view distance to 12, from 10
[11:13:05] [Netty Client IO #0/INFO]: Server protocol version 2
[11:13:05] [Netty IO #1/INFO]: Client protocol version 2
[11:13:05] [Netty IO #1/INFO]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]
[11:13:05] [Netty IO #1/INFO]: Attempting connection with missing mods [] at CLIENT
[11:13:05] [Netty Client IO #0/INFO]: Attempting connection with missing mods [] at SERVER
[11:13:05] [server thread/INFO]: [server thread] Server side modded connection established
[11:13:05] [Client thread/INFO]: [Client thread] Client side modded connection established
[11:13:05] [server thread/INFO]: Player590[local:E:46ef1610] logged in with entity id 49 at (-251.52719836724532, 78.0, 186.28054122013575)
[11:13:05] [server thread/INFO]: Player590 joined the game
[11:13:12] [server thread/INFO]: Saving and pausing game...
[11:13:12] [server thread/INFO]: Saving chunks for level 'New World'/Overworld
[11:13:12] [server thread/INFO]: Saving chunks for level 'New World'/Nether
[11:13:12] [server thread/INFO]: Saving chunks for level 'New World'/The End
[11:13:13] [server thread/INFO]: Stopping server
[11:13:13] [server thread/INFO]: Saving players
[11:13:13] [server thread/INFO]: Saving worlds
[11:13:13] [server thread/INFO]: Saving chunks for level 'New World'/Overworld
[11:13:13] [server thread/INFO]: Saving chunks for level 'New World'/Nether
[11:13:13] [server thread/INFO]: Saving chunks for level 'New World'/The End
[11:13:13] [server thread/INFO]: Unloading dimension 0
[11:13:13] [server thread/INFO]: Unloading dimension -1
[11:13:13] [server thread/INFO]: Unloading dimension 1
[11:13:13] [server thread/INFO]: Applying holder lookups
[11:13:13] [server thread/INFO]: Holder lookups applied
[11:13:14] [Client thread/INFO]: Stopping!
[11:13:14] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: 
[11:13:14] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...
[11:13:14] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
[11:13:14] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: 

Posted

I think I was, but here is another log where I am for sure wearing the armor.

 

[16:01:24] [main/INFO]: Extra: []
[16:01:24] [main/INFO]: Running with arguments: [--userProperties, {}, --assetsDir, /Users/Eden/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[16:01:24] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[16:01:24] [main/INFO]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[16:01:24] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[16:01:24] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[16:01:24] [main/INFO]: Forge Mod Loader version 7.99.16.1448 for Minecraft 1.7.10 loading
[16:01:24] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_60, running on Mac OS X:x86_64:10.11.5, installed at /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/jre
[16:01:24] [main/INFO]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[16:01:24] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[16:01:24] [main/INFO]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
[16:01:24] [main/INFO]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[16:01:24] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[16:01:24] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[16:01:24] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[16:01:24] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[16:01:24] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[16:01:24] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[16:01:24] [main/ERROR]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[16:01:25] [main/ERROR]: FML appears to be missing any signature data. This is not a good thing
[16:01:25] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[16:01:25] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[16:01:26] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[16:01:26] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
[16:01:26] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
[16:01:26] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[16:01:28] [main/INFO]: Setting user: Player20
[16:01:30] [Client thread/INFO]: LWJGL Version: 2.9.1
[16:01:32] [Client thread/INFO]: [cpw.mods.fml.client.SplashProgress:start:188]: ---- Minecraft Crash Report ----
// Would you like a cupcake?

Time: 7/20/16 4:01 PM
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.7.10
Operating System: Mac OS X (x86_64) version 10.11.5
Java Version: 1.8.0_60, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 782491928 bytes (746 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: 
GL info: ' Vendor: 'Intel Inc.' Version: '2.1 INTEL-10.14.66' Renderer: 'Intel(R) HD Graphics 5300'
[16:01:32] [Client thread/INFO]: Attempting early MinecraftForge initialization
[16:01:32] [Client thread/INFO]: MinecraftForge v10.13.4.1448 Initialized
[16:01:32] [Client thread/INFO]: Replaced 183 ore recipies
[16:01:32] [Client thread/INFO]: Completed early MinecraftForge initialization
[16:01:32] [Client thread/INFO]: Found 0 mods from the command line. Injecting into mod discoverer
[16:01:32] [Client thread/INFO]: Searching /Users/Eden/Desktop/Modding Workspace/eclipse/mods for mods
[16:01:38] [Client thread/INFO]: Forge Mod Loader has identified 4 mods to load
[16:01:39] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, rm] at CLIENT
[16:01:39] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, rm] at SERVER
[16:01:39] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Regid Mod
[16:01:39] [Client thread/INFO]: Processing ObjectHolder annotations
[16:01:39] [Client thread/INFO]: Found 341 ObjectHolder annotations
[16:01:39] [Client thread/INFO]: Identifying ItemStackHolder annotations
[16:01:39] [Client thread/INFO]: Found 0 ItemStackHolder annotations
[16:01:39] [Client thread/INFO]: Configured a dormant chunk cache size of 0
[16:01:40] [Client thread/INFO]: Applying holder lookups
[16:01:40] [Client thread/INFO]: Holder lookups applied
[16:01:40] [Client thread/INFO]: Injecting itemstacks
[16:01:40] [Client thread/INFO]: Itemstack injection complete
[16:01:40] [sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: 
[16:01:40] [sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
[16:01:40] [Thread-7/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[16:01:40] [Thread-7/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[16:01:40] [Thread-7/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[16:01:40] [sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: 
[16:01:40] [sound Library Loader/INFO]: Sound engine started
[16:01:43] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[16:01:43] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[16:01:43] [Client thread/INFO]: Injecting itemstacks
[16:01:43] [Client thread/INFO]: Itemstack injection complete
[16:01:44] [Client thread/INFO]: Forge Mod Loader has successfully loaded 4 mods
[16:01:44] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Regid Mod
[16:01:44] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[16:01:44] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[16:01:44] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: 
[16:01:44] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...
[16:01:45] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
[16:01:45] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: 
[16:01:45] [sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: 
[16:01:45] [sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
[16:01:45] [Thread-9/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[16:01:45] [Thread-9/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[16:01:45] [Thread-9/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[16:01:45] [sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: 
[16:01:45] [sound Library Loader/INFO]: Sound engine started
[16:01:49] [server thread/INFO]: Starting integrated minecraft server version 1.7.10
[16:01:49] [server thread/INFO]: Generating keypair
[16:01:49] [server thread/INFO]: Injecting existing block and item data into this server instance
[16:01:49] [server thread/INFO]: Applying holder lookups
[16:01:49] [server thread/INFO]: Holder lookups applied
[16:01:50] [server thread/INFO]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@4feb637b)
[16:01:50] [server thread/INFO]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@4feb637b)
[16:01:50] [server thread/INFO]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@4feb637b)
[16:01:50] [server thread/INFO]: Preparing start region for level 0
[16:01:51] [server thread/INFO]: Preparing spawn area: 16%
[16:01:52] [server thread/INFO]: Preparing spawn area: 68%
[16:01:52] [server thread/INFO]: Changing view distance to 12, from 10
[16:01:53] [Netty Client IO #0/INFO]: Server protocol version 2
[16:01:53] [Netty IO #1/INFO]: Client protocol version 2
[16:01:53] [Netty IO #1/INFO]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]
[16:01:53] [Netty IO #1/INFO]: Attempting connection with missing mods [] at CLIENT
[16:01:53] [Netty Client IO #0/INFO]: Attempting connection with missing mods [] at SERVER
[16:01:53] [server thread/INFO]: [server thread] Server side modded connection established
[16:01:53] [Client thread/INFO]: [Client thread] Client side modded connection established
[16:01:53] [server thread/INFO]: Player20[local:E:225849a4] logged in with entity id 49 at (-251.52719836724532, 78.0, 186.28054122013575)
[16:01:53] [server thread/INFO]: Player20 joined the game
[16:01:55] [server thread/INFO]: Player20 has just earned the achievement [Taking Inventory]
[16:01:56] [Client thread/INFO]: [CHAT] Player20 has just earned the achievement [Taking Inventory]
[16:02:04] [Client thread/WARN]: Failed to load texture: rm:texutres/models/armor/illusion_layer_1.png
java.io.FileNotFoundException: rm:texutres/models/armor/illusion_layer_1.png
at net.minecraft.client.resources.FallbackResourceManager.getResource(SourceFile:51) ~[FallbackResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.SimpleTexture.loadTexture(SourceFile:29) ~[simpleTexture.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(SourceFile:72) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.bindTexture(SourceFile:40) [TextureManager.class:?]
at net.minecraft.client.renderer.entity.Render.bindTexture(SourceFile:51) [Render.class:?]
at net.minecraft.client.renderer.entity.RenderPlayer.shouldRenderPass(RenderPlayer.java:67) [RenderPlayer.class:?]
at net.minecraft.client.renderer.entity.RenderPlayer.shouldRenderPass(RenderPlayer.java:491) [RenderPlayer.class:?]
at net.minecraft.client.renderer.entity.RendererLivingEntity.doRender(RendererLivingEntity.java:157) [RendererLivingEntity.class:?]
at net.minecraft.client.renderer.entity.RenderPlayer.doRender(RenderPlayer.java:158) [RenderPlayer.class:?]
at net.minecraft.client.renderer.entity.RenderPlayer.doRender(RenderPlayer.java:521) [RenderPlayer.class:?]
at net.minecraft.client.renderer.entity.RenderManager.func_147939_a(RenderManager.java:293) [RenderManager.class:?]
at net.minecraft.client.renderer.entity.RenderManager.renderEntityWithPosYaw(RenderManager.java:276) [RenderManager.class:?]
at net.minecraft.client.gui.inventory.GuiInventory.func_147046_a(SourceFile:91) [GuiInventory.class:?]
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawGuiContainerBackgroundLayer(GuiContainerCreative.java:804) [GuiContainerCreative.class:?]
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:78) [GuiContainer.class:?]
at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:38) [inventoryEffectRenderer.class:?]
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:638) [GuiContainerCreative.class:?]
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1061) [EntityRenderer.class:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1001) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:898) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(SourceFile:148) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60]
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
at GradleStart.main(Unknown Source) [start/:?]
[16:02:04] [Client thread/WARN]: Failed to load texture: rm:texutres/models/armor/illusion_layer_2.png
java.io.FileNotFoundException: rm:texutres/models/armor/illusion_layer_2.png
at net.minecraft.client.resources.FallbackResourceManager.getResource(SourceFile:51) ~[FallbackResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.SimpleTexture.loadTexture(SourceFile:29) ~[simpleTexture.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(SourceFile:72) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.bindTexture(SourceFile:40) [TextureManager.class:?]
at net.minecraft.client.renderer.entity.Render.bindTexture(SourceFile:51) [Render.class:?]
at net.minecraft.client.renderer.entity.RenderPlayer.shouldRenderPass(RenderPlayer.java:67) [RenderPlayer.class:?]
at net.minecraft.client.renderer.entity.RenderPlayer.shouldRenderPass(RenderPlayer.java:491) [RenderPlayer.class:?]
at net.minecraft.client.renderer.entity.RendererLivingEntity.doRender(RendererLivingEntity.java:157) [RendererLivingEntity.class:?]
at net.minecraft.client.renderer.entity.RenderPlayer.doRender(RenderPlayer.java:158) [RenderPlayer.class:?]
at net.minecraft.client.renderer.entity.RenderPlayer.doRender(RenderPlayer.java:521) [RenderPlayer.class:?]
at net.minecraft.client.renderer.entity.RenderManager.func_147939_a(RenderManager.java:293) [RenderManager.class:?]
at net.minecraft.client.renderer.entity.RenderManager.renderEntityWithPosYaw(RenderManager.java:276) [RenderManager.class:?]
at net.minecraft.client.gui.inventory.GuiInventory.func_147046_a(SourceFile:91) [GuiInventory.class:?]
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawGuiContainerBackgroundLayer(GuiContainerCreative.java:804) [GuiContainerCreative.class:?]
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:78) [GuiContainer.class:?]
at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:38) [inventoryEffectRenderer.class:?]
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:638) [GuiContainerCreative.class:?]
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1061) [EntityRenderer.class:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1001) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:898) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(SourceFile:148) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60]
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
at GradleStart.main(Unknown Source) [start/:?]
[16:02:10] [server thread/INFO]: Saving and pausing game...
[16:02:10] [server thread/INFO]: Saving chunks for level 'New World'/Overworld
[16:02:10] [server thread/INFO]: Saving chunks for level 'New World'/Nether
[16:02:10] [server thread/INFO]: Saving chunks for level 'New World'/The End
[16:02:12] [server thread/INFO]: Stopping server
[16:02:12] [server thread/INFO]: Saving players
[16:02:12] [server thread/INFO]: Saving worlds
[16:02:12] [server thread/INFO]: Saving chunks for level 'New World'/Overworld
[16:02:12] [server thread/INFO]: Saving chunks for level 'New World'/Nether
[16:02:12] [server thread/INFO]: Saving chunks for level 'New World'/The End
[16:02:12] [server thread/INFO]: Unloading dimension 0
[16:02:12] [server thread/INFO]: Unloading dimension -1
[16:02:12] [server thread/INFO]: Unloading dimension 1
[16:02:12] [server thread/INFO]: Applying holder lookups
[16:02:12] [server thread/INFO]: Holder lookups applied
[16:02:13] [Client thread/INFO]: Stopping!
[16:02:13] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: 
[16:02:13] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...
[16:02:13] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
[16:02:13] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: 

Posted

[16:02:04] [Client thread/WARN]: Failed to load texture: rm:texutres/models/armor/illusion_layer_2.png

java.io.FileNotFoundException: rm:texutres/models/armor/illusion_layer_2.png

 

textures is spelled wrong :)

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

    • The problem is the save is expecting the mods it was run with, probably due to there being items/blocks/etc in the world from those mods. Try adding --safeMode to your commandline that runs the server, and see if that works. [16:45:01] [ServerMain/WARN]: Missing data pack mod:mr_dungeons_andtaverns [16:45:01] [ServerMain/WARN]: Missing data pack mod:torchbowmod [16:45:01] [ServerMain/WARN]: Missing data pack mod:the_afterdark [16:45:01] [ServerMain/WARN]: Missing data pack mod:explorerscompass [16:45:01] [ServerMain/WARN]: Missing data pack mod:darkloot [16:45:01] [ServerMain/WARN]: Missing data pack mod:walljump [16:45:01] [ServerMain/WARN]: Missing data pack mod:terralith [16:45:01] [ServerMain/WARN]: Missing data pack mod:commonnetworking [16:45:01] [ServerMain/WARN]: Missing data pack mod:configlibtxf [16:45:01] [ServerMain/WARN]: Missing data pack mod:forge [16:45:01] [ServerMain/WARN]: Missing data pack mod:journeymap_api [16:45:01] [ServerMain/WARN]: Missing data pack mod:geophilic [16:45:01] [ServerMain/WARN]: Missing data pack mod:collective [16:45:01] [ServerMain/WARN]: Missing data pack mod:structory [16:45:01] [ServerMain/WARN]: Missing data pack mod:journeymap [16:45:01] [ServerMain/WARN]: Missing data pack mod:snowballsfreezemobs [16:45:01] [ServerMain/WARN]: Missing data pack mod:naturescompass [16:45:02] [ServerMain/WARN]: Failed to load datapacks, can't proceed with server load. You can either fix your datapacks or reset to vanilla with --safeMode  
    • I'm trying to setup a zombie apocalypse modpack with some fantasy elements but after a little bit of playing my game crashes with a log stating it crashed while "Rendering entity in world". It says it happened while rendering an ice and fire dragon but it has given me multiple different crashes each with different entities and mods as the suspected culprit.. I also know that sometimes Oculus and embeddium have problems but I can't find a single issue similar to mine. Crash log with dragon as cuplrit: https://mclo.gs/E8WfYGk Crash log with heavy machine gun as culprit: https://mclo.gs/bppMCne
    • Hello! Essentially I am trying to replicate something similar to the Endermans anger proc for looking at them to my mob LimeEntity. I want to make LimeEntity play the 'waveAnimation' file i made in blockbench whenever the player looks at him. I was trying to understand the Endermans code and having trouble. I just want to feel out if this would be an easy-ish task.  Here is my code on my Entity thus far, below all this code is the Enderman code. package net.jacobgari.sgslimemod.entity.custom; import net.jacobgari.sgslimemod.entity.ModEntities; import net.minecraft.network.syncher.EntityDataAccessor; import net.minecraft.network.syncher.EntityDataSerializers; import net.minecraft.network.syncher.SynchedEntityData; import net.minecraft.server.level.ServerLevel; import net.minecraft.world.entity.*; import net.minecraft.world.entity.ai.attributes.AttributeSupplier; import net.minecraft.world.entity.ai.attributes.Attributes; import net.minecraft.world.entity.ai.goal.*; import net.minecraft.world.entity.animal.Animal; import net.minecraft.world.entity.player.Player; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.Items; import net.minecraft.world.item.crafting.Ingredient; import net.minecraft.world.level.Level; import net.minecraft.world.phys.Vec3; import org.jetbrains.annotations.Nullable; public class LimeEntity extends TamableAnimal { private static final EntityDataAccessor<Boolean> WAVING = SynchedEntityData.defineId(LimeEntity.class, EntityDataSerializers.BOOLEAN); public LimeEntity(EntityType<? extends Animal> pEntityType, Level pLevel) { super((EntityType<? extends TamableAnimal>) pEntityType, pLevel); } public final AnimationState idleAnimationState = new AnimationState(); private int idleAnimationTimeout = 0; public final AnimationState waveAnimationState = new AnimationState(); private int waveAnimationTimeout = 0; @Override public void tick() { super.tick(); if (this.level().isClientSide()) { setupAnimationStates(); } } private void setupAnimationStates() { if (this.idleAnimationTimeout <= 0) { this.idleAnimationTimeout = this.random.nextInt(40) + 80; this.idleAnimationState.start(this.tickCount); } else { --this.idleAnimationTimeout; } if (this.isWaving() && waveAnimationTimeout <= 0) { waveAnimationTimeout = 50; waveAnimationState.start(this.tickCount); } else { --this.waveAnimationTimeout; } if (!this.isWaving()) { waveAnimationState.stop(); } } @Override protected void updateWalkAnimation(float pPartialTick) { float f; if (this.getPose() == Pose.STANDING) { f = Math.min(pPartialTick * 6F, 1f); } else { f = 0f; } this.walkAnimation.update(f, 0.2f); } public void setWaving(boolean waving) { this.entityData.set(WAVING, waving); } @Override protected void defineSynchedData() { super.defineSynchedData(); this.entityData.define(WAVING, false); } public boolean isWaving() { return this.entityData.get(WAVING); } @Override protected void registerGoals() { this.goalSelector.addGoal(0, new FloatGoal(this)); this.goalSelector.addGoal(1, new LookAtPlayerGoal(this, Player.class, 8.0f)); this.goalSelector.addGoal(2, new TemptGoal(this, 1.15D, Ingredient.of(Items.SAND), false)); this.goalSelector.addGoal(3, new SitWhenOrderedToGoal(this)); this.goalSelector.addGoal(4, new FollowOwnerGoal(this, 1.0D, 10.0F, 2.0F, false)); this.goalSelector.addGoal(5, new FollowParentGoal(this, 1.1D)); this.goalSelector.addGoal(6, new BreedGoal(this, 1.15D)); this.goalSelector.addGoal(7, new WaterAvoidingRandomStrollGoal(this, 1.1D)); this.goalSelector.addGoal(8, new RandomLookAroundGoal(this)); } public static AttributeSupplier.Builder createAttributes() { return Animal.createLivingAttributes() .add(Attributes.MAX_HEALTH, 20D) .add(Attributes.FOLLOW_RANGE, 24D) .add(Attributes.MOVEMENT_SPEED, 0.3D) .add(Attributes.ATTACK_DAMAGE, 4f); } @Override public @Nullable AgeableMob getBreedOffspring(ServerLevel pLevel, AgeableMob pOtherParent) { return ModEntities.LIME.get().create(pLevel); } @Override public boolean isFood(ItemStack pStack) { return pStack.is(Items.SAND); } } package net.minecraft.world.entity.monster; import java.util.EnumSet; import java.util.List; import java.util.Optional; import java.util.UUID; import java.util.function.Predicate; import javax.annotation.Nullable; import net.minecraft.core.BlockPos; import net.minecraft.core.Direction; import net.minecraft.core.particles.ParticleTypes; import net.minecraft.core.registries.Registries; import net.minecraft.nbt.CompoundTag; import net.minecraft.nbt.NbtUtils; import net.minecraft.network.syncher.EntityDataAccessor; import net.minecraft.network.syncher.EntityDataSerializers; import net.minecraft.network.syncher.SynchedEntityData; import net.minecraft.server.level.ServerLevel; import net.minecraft.sounds.SoundEvent; import net.minecraft.sounds.SoundEvents; import net.minecraft.tags.BlockTags; import net.minecraft.tags.DamageTypeTags; import net.minecraft.tags.FluidTags; import net.minecraft.util.Mth; import net.minecraft.util.RandomSource; import net.minecraft.util.TimeUtil; import net.minecraft.util.valueproviders.UniformInt; import net.minecraft.world.damagesource.DamageSource; import net.minecraft.world.effect.MobEffectInstance; import net.minecraft.world.entity.Entity; import net.minecraft.world.entity.EntityDimensions; import net.minecraft.world.entity.EntityType; import net.minecraft.world.entity.LivingEntity; import net.minecraft.world.entity.NeutralMob; import net.minecraft.world.entity.Pose; import net.minecraft.world.entity.ai.attributes.AttributeInstance; import net.minecraft.world.entity.ai.attributes.AttributeModifier; import net.minecraft.world.entity.ai.attributes.AttributeSupplier; import net.minecraft.world.entity.ai.attributes.Attributes; import net.minecraft.world.entity.ai.goal.FloatGoal; import net.minecraft.world.entity.ai.goal.Goal; import net.minecraft.world.entity.ai.goal.LookAtPlayerGoal; import net.minecraft.world.entity.ai.goal.MeleeAttackGoal; import net.minecraft.world.entity.ai.goal.RandomLookAroundGoal; import net.minecraft.world.entity.ai.goal.WaterAvoidingRandomStrollGoal; import net.minecraft.world.entity.ai.goal.target.HurtByTargetGoal; import net.minecraft.world.entity.ai.goal.target.NearestAttackableTargetGoal; import net.minecraft.world.entity.ai.goal.target.ResetUniversalAngerTargetGoal; import net.minecraft.world.entity.ai.targeting.TargetingConditions; import net.minecraft.world.entity.player.Player; import net.minecraft.world.entity.projectile.ThrownPotion; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.Items; import net.minecraft.world.item.alchemy.Potion; import net.minecraft.world.item.alchemy.PotionUtils; import net.minecraft.world.item.alchemy.Potions; import net.minecraft.world.item.enchantment.Enchantments; import net.minecraft.world.level.ClipContext; import net.minecraft.world.level.GameRules; import net.minecraft.world.level.Level; import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.Blocks; import net.minecraft.world.level.block.state.BlockState; import net.minecraft.world.level.gameevent.GameEvent; import net.minecraft.world.level.pathfinder.BlockPathTypes; import net.minecraft.world.level.storage.loot.LootParams; import net.minecraft.world.level.storage.loot.parameters.LootContextParams; import net.minecraft.world.phys.AABB; import net.minecraft.world.phys.BlockHitResult; import net.minecraft.world.phys.Vec3; public class EnderMan extends Monster implements NeutralMob { private static final UUID SPEED_MODIFIER_ATTACKING_UUID = UUID.fromString("020E0DFB-87AE-4653-9556-831010E291A0"); private static final AttributeModifier SPEED_MODIFIER_ATTACKING = new AttributeModifier(SPEED_MODIFIER_ATTACKING_UUID, "Attacking speed boost", (double)0.15F, AttributeModifier.Operation.ADDITION); private static final int DELAY_BETWEEN_CREEPY_STARE_SOUND = 400; private static final int MIN_DEAGGRESSION_TIME = 600; private static final EntityDataAccessor<Optional<BlockState>> DATA_CARRY_STATE = SynchedEntityData.defineId(EnderMan.class, EntityDataSerializers.OPTIONAL_BLOCK_STATE); private static final EntityDataAccessor<Boolean> DATA_CREEPY = SynchedEntityData.defineId(EnderMan.class, EntityDataSerializers.BOOLEAN); private static final EntityDataAccessor<Boolean> DATA_STARED_AT = SynchedEntityData.defineId(EnderMan.class, EntityDataSerializers.BOOLEAN); private int lastStareSound = Integer.MIN_VALUE; private int targetChangeTime; private static final UniformInt PERSISTENT_ANGER_TIME = TimeUtil.rangeOfSeconds(20, 39); private int remainingPersistentAngerTime; @Nullable private UUID persistentAngerTarget; public EnderMan(EntityType<? extends EnderMan> pEntityType, Level pLevel) { super(pEntityType, pLevel); this.setMaxUpStep(1.0F); this.setPathfindingMalus(BlockPathTypes.WATER, -1.0F); } protected void registerGoals() { this.goalSelector.addGoal(0, new FloatGoal(this)); this.goalSelector.addGoal(1, new EnderMan.EndermanFreezeWhenLookedAt(this)); this.goalSelector.addGoal(2, new MeleeAttackGoal(this, 1.0D, false)); this.goalSelector.addGoal(7, new WaterAvoidingRandomStrollGoal(this, 1.0D, 0.0F)); this.goalSelector.addGoal(8, new LookAtPlayerGoal(this, Player.class, 8.0F)); this.goalSelector.addGoal(8, new RandomLookAroundGoal(this)); this.goalSelector.addGoal(10, new EnderMan.EndermanLeaveBlockGoal(this)); this.goalSelector.addGoal(11, new EnderMan.EndermanTakeBlockGoal(this)); this.targetSelector.addGoal(1, new EnderMan.EndermanLookForPlayerGoal(this, this::isAngryAt)); this.targetSelector.addGoal(2, new HurtByTargetGoal(this)); this.targetSelector.addGoal(3, new NearestAttackableTargetGoal<>(this, Endermite.class, true, false)); this.targetSelector.addGoal(4, new ResetUniversalAngerTargetGoal<>(this, false)); } public static AttributeSupplier.Builder createAttributes() { return Monster.createMonsterAttributes().add(Attributes.MAX_HEALTH, 40.0D).add(Attributes.MOVEMENT_SPEED, (double)0.3F).add(Attributes.ATTACK_DAMAGE, 7.0D).add(Attributes.FOLLOW_RANGE, 64.0D); } /** * Sets the active target the Goal system uses for tracking */ public void setTarget(@Nullable LivingEntity pLivingEntity) { AttributeInstance attributeinstance = this.getAttribute(Attributes.MOVEMENT_SPEED); if (pLivingEntity == null) { this.targetChangeTime = 0; this.entityData.set(DATA_CREEPY, false); this.entityData.set(DATA_STARED_AT, false); attributeinstance.removeModifier(SPEED_MODIFIER_ATTACKING); } else { this.targetChangeTime = this.tickCount; this.entityData.set(DATA_CREEPY, true); if (!attributeinstance.hasModifier(SPEED_MODIFIER_ATTACKING)) { attributeinstance.addTransientModifier(SPEED_MODIFIER_ATTACKING); } } super.setTarget(pLivingEntity); //Forge: Moved down to allow event handlers to write data manager values. } protected void defineSynchedData() { super.defineSynchedData(); this.entityData.define(DATA_CARRY_STATE, Optional.empty()); this.entityData.define(DATA_CREEPY, false); this.entityData.define(DATA_STARED_AT, false); } public void startPersistentAngerTimer() { this.setRemainingPersistentAngerTime(PERSISTENT_ANGER_TIME.sample(this.random)); } public void setRemainingPersistentAngerTime(int pTime) { this.remainingPersistentAngerTime = pTime; } public int getRemainingPersistentAngerTime() { return this.remainingPersistentAngerTime; } public void setPersistentAngerTarget(@Nullable UUID pTarget) { this.persistentAngerTarget = pTarget; } @Nullable public UUID getPersistentAngerTarget() { return this.persistentAngerTarget; } public void playStareSound() { if (this.tickCount >= this.lastStareSound + 400) { this.lastStareSound = this.tickCount; if (!this.isSilent()) { this.level().playLocalSound(this.getX(), this.getEyeY(), this.getZ(), SoundEvents.ENDERMAN_STARE, this.getSoundSource(), 2.5F, 1.0F, false); } } } public void onSyncedDataUpdated(EntityDataAccessor<?> pKey) { if (DATA_CREEPY.equals(pKey) && this.hasBeenStaredAt() && this.level().isClientSide) { this.playStareSound(); } super.onSyncedDataUpdated(pKey); } public void addAdditionalSaveData(CompoundTag pCompound) { super.addAdditionalSaveData(pCompound); BlockState blockstate = this.getCarriedBlock(); if (blockstate != null) { pCompound.put("carriedBlockState", NbtUtils.writeBlockState(blockstate)); } this.addPersistentAngerSaveData(pCompound); } /** * (abstract) Protected helper method to read subclass entity data from NBT. */ public void readAdditionalSaveData(CompoundTag pCompound) { super.readAdditionalSaveData(pCompound); BlockState blockstate = null; if (pCompound.contains("carriedBlockState", 10)) { blockstate = NbtUtils.readBlockState(this.level().holderLookup(Registries.BLOCK), pCompound.getCompound("carriedBlockState")); if (blockstate.isAir()) { blockstate = null; } } this.setCarriedBlock(blockstate); this.readPersistentAngerSaveData(this.level(), pCompound); } /** * Checks to see if this enderman should be attacking this player */ boolean isLookingAtMe(Player pPlayer) { ItemStack itemstack = pPlayer.getInventory().armor.get(3); if (net.minecraftforge.common.ForgeHooks.shouldSuppressEnderManAnger(this, pPlayer, itemstack)) { return false; } else { Vec3 vec3 = pPlayer.getViewVector(1.0F).normalize(); Vec3 vec31 = new Vec3(this.getX() - pPlayer.getX(), this.getEyeY() - pPlayer.getEyeY(), this.getZ() - pPlayer.getZ()); double d0 = vec31.length(); vec31 = vec31.normalize(); double d1 = vec3.dot(vec31); return d1 > 1.0D - 0.025D / d0 ? pPlayer.hasLineOfSight(this) : false; } } protected float getStandingEyeHeight(Pose pPose, EntityDimensions pSize) { return 2.55F; } /** * Called every tick so the entity can update its state as required. For example, zombies and skeletons use this to * react to sunlight and start to burn. */ public void aiStep() { if (this.level().isClientSide) { for(int i = 0; i < 2; ++i) { this.level().addParticle(ParticleTypes.PORTAL, this.getRandomX(0.5D), this.getRandomY() - 0.25D, this.getRandomZ(0.5D), (this.random.nextDouble() - 0.5D) * 2.0D, -this.random.nextDouble(), (this.random.nextDouble() - 0.5D) * 2.0D); } } this.jumping = false; if (!this.level().isClientSide) { this.updatePersistentAnger((ServerLevel)this.level(), true); } super.aiStep(); } public boolean isSensitiveToWater() { return true; } protected void customServerAiStep() { if (this.level().isDay() && this.tickCount >= this.targetChangeTime + 600) { float f = this.getLightLevelDependentMagicValue(); if (f > 0.5F && this.level().canSeeSky(this.blockPosition()) && this.random.nextFloat() * 30.0F < (f - 0.4F) * 2.0F) { this.setTarget((LivingEntity)null); this.teleport(); } } super.customServerAiStep(); } /** * Teleport the enderman to a random nearby position */ protected boolean teleport() { if (!this.level().isClientSide() && this.isAlive()) { double d0 = this.getX() + (this.random.nextDouble() - 0.5D) * 64.0D; double d1 = this.getY() + (double)(this.random.nextInt(64) - 32); double d2 = this.getZ() + (this.random.nextDouble() - 0.5D) * 64.0D; return this.teleport(d0, d1, d2); } else { return false; } } /** * Teleport the enderman to another entity */ boolean teleportTowards(Entity pTarget) { Vec3 vec3 = new Vec3(this.getX() - pTarget.getX(), this.getY(0.5D) - pTarget.getEyeY(), this.getZ() - pTarget.getZ()); vec3 = vec3.normalize(); double d0 = 16.0D; double d1 = this.getX() + (this.random.nextDouble() - 0.5D) * 8.0D - vec3.x * 16.0D; double d2 = this.getY() + (double)(this.random.nextInt(16) - 8) - vec3.y * 16.0D; double d3 = this.getZ() + (this.random.nextDouble() - 0.5D) * 8.0D - vec3.z * 16.0D; return this.teleport(d1, d2, d3); } /** * Teleport the enderman */ private boolean teleport(double pX, double pY, double pZ) { BlockPos.MutableBlockPos blockpos$mutableblockpos = new BlockPos.MutableBlockPos(pX, pY, pZ); while(blockpos$mutableblockpos.getY() > this.level().getMinBuildHeight() && !this.level().getBlockState(blockpos$mutableblockpos).blocksMotion()) { blockpos$mutableblockpos.move(Direction.DOWN); } BlockState blockstate = this.level().getBlockState(blockpos$mutableblockpos); boolean flag = blockstate.blocksMotion(); boolean flag1 = blockstate.getFluidState().is(FluidTags.WATER); if (flag && !flag1) { net.minecraftforge.event.entity.EntityTeleportEvent.EnderEntity event = net.minecraftforge.event.ForgeEventFactory.onEnderTeleport(this, pX, pY, pZ); if (event.isCanceled()) return false; Vec3 vec3 = this.position(); boolean flag2 = this.randomTeleport(event.getTargetX(), event.getTargetY(), event.getTargetZ(), true); if (flag2) { this.level().gameEvent(GameEvent.TELEPORT, vec3, GameEvent.Context.of(this)); if (!this.isSilent()) { this.level().playSound((Player)null, this.xo, this.yo, this.zo, SoundEvents.ENDERMAN_TELEPORT, this.getSoundSource(), 1.0F, 1.0F); this.playSound(SoundEvents.ENDERMAN_TELEPORT, 1.0F, 1.0F); } } return flag2; } else { return false; } } protected SoundEvent getAmbientSound() { return this.isCreepy() ? SoundEvents.ENDERMAN_SCREAM : SoundEvents.ENDERMAN_AMBIENT; } protected SoundEvent getHurtSound(DamageSource pDamageSource) { return SoundEvents.ENDERMAN_HURT; } protected SoundEvent getDeathSound() { return SoundEvents.ENDERMAN_DEATH; } protected void dropCustomDeathLoot(DamageSource pSource, int pLooting, boolean pRecentlyHit) { super.dropCustomDeathLoot(pSource, pLooting, pRecentlyHit); BlockState blockstate = this.getCarriedBlock(); if (blockstate != null) { ItemStack itemstack = new ItemStack(Items.DIAMOND_AXE); itemstack.enchant(Enchantments.SILK_TOUCH, 1); LootParams.Builder lootparams$builder = (new LootParams.Builder((ServerLevel)this.level())).withParameter(LootContextParams.ORIGIN, this.position()).withParameter(LootContextParams.TOOL, itemstack).withOptionalParameter(LootContextParams.THIS_ENTITY, this); for(ItemStack itemstack1 : blockstate.getDrops(lootparams$builder)) { this.spawnAtLocation(itemstack1); } } } public void setCarriedBlock(@Nullable BlockState pState) { this.entityData.set(DATA_CARRY_STATE, Optional.ofNullable(pState)); } @Nullable public BlockState getCarriedBlock() { return this.entityData.get(DATA_CARRY_STATE).orElse((BlockState)null); } /** * Called when the entity is attacked. */ public boolean hurt(DamageSource pSource, float pAmount) { if (this.isInvulnerableTo(pSource)) { return false; } else { boolean flag = pSource.getDirectEntity() instanceof ThrownPotion; if (!pSource.is(DamageTypeTags.IS_PROJECTILE) && !flag) { boolean flag2 = super.hurt(pSource, pAmount); if (!this.level().isClientSide() && !(pSource.getEntity() instanceof LivingEntity) && this.random.nextInt(10) != 0) { this.teleport(); } return flag2; } else { boolean flag1 = flag && this.hurtWithCleanWater(pSource, (ThrownPotion)pSource.getDirectEntity(), pAmount); for(int i = 0; i < 64; ++i) { if (this.teleport()) { return true; } } return flag1; } } } private boolean hurtWithCleanWater(DamageSource pSource, ThrownPotion pPotion, float pAmount) { ItemStack itemstack = pPotion.getItem(); Potion potion = PotionUtils.getPotion(itemstack); List<MobEffectInstance> list = PotionUtils.getMobEffects(itemstack); boolean flag = potion == Potions.WATER && list.isEmpty(); return flag ? super.hurt(pSource, pAmount) : false; } public boolean isCreepy() { return this.entityData.get(DATA_CREEPY); } public boolean hasBeenStaredAt() { return this.entityData.get(DATA_STARED_AT); } public void setBeingStaredAt() { this.entityData.set(DATA_STARED_AT, true); } public boolean requiresCustomPersistence() { return super.requiresCustomPersistence() || this.getCarriedBlock() != null; } static class EndermanFreezeWhenLookedAt extends Goal { private final EnderMan enderman; @Nullable private LivingEntity target; public EndermanFreezeWhenLookedAt(EnderMan pEnderman) { this.enderman = pEnderman; this.setFlags(EnumSet.of(Goal.Flag.JUMP, Goal.Flag.MOVE)); } /** * Returns whether execution should begin. You can also read and cache any state necessary for execution in this * method as well. */ public boolean canUse() { this.target = this.enderman.getTarget(); if (!(this.target instanceof Player)) { return false; } else { double d0 = this.target.distanceToSqr(this.enderman); return d0 > 256.0D ? false : this.enderman.isLookingAtMe((Player)this.target); } } /** * Execute a one shot task or start executing a continuous task */ public void start() { this.enderman.getNavigation().stop(); } /** * Keep ticking a continuous task that has already been started */ public void tick() { this.enderman.getLookControl().setLookAt(this.target.getX(), this.target.getEyeY(), this.target.getZ()); } } static class EndermanLeaveBlockGoal extends Goal { private final EnderMan enderman; public EndermanLeaveBlockGoal(EnderMan pEnderman) { this.enderman = pEnderman; } /** * Returns whether execution should begin. You can also read and cache any state necessary for execution in this * method as well. */ public boolean canUse() { if (this.enderman.getCarriedBlock() == null) { return false; } else if (!net.minecraftforge.event.ForgeEventFactory.getMobGriefingEvent(this.enderman.level(), this.enderman)) { return false; } else { return this.enderman.getRandom().nextInt(reducedTickDelay(2000)) == 0; } } /** * Keep ticking a continuous task that has already been started */ public void tick() { RandomSource randomsource = this.enderman.getRandom(); Level level = this.enderman.level(); int i = Mth.floor(this.enderman.getX() - 1.0D + randomsource.nextDouble() * 2.0D); int j = Mth.floor(this.enderman.getY() + randomsource.nextDouble() * 2.0D); int k = Mth.floor(this.enderman.getZ() - 1.0D + randomsource.nextDouble() * 2.0D); BlockPos blockpos = new BlockPos(i, j, k); BlockState blockstate = level.getBlockState(blockpos); BlockPos blockpos1 = blockpos.below(); BlockState blockstate1 = level.getBlockState(blockpos1); BlockState blockstate2 = this.enderman.getCarriedBlock(); if (blockstate2 != null) { blockstate2 = Block.updateFromNeighbourShapes(blockstate2, this.enderman.level(), blockpos); if (this.canPlaceBlock(level, blockpos, blockstate2, blockstate, blockstate1, blockpos1) && !net.minecraftforge.event.ForgeEventFactory.onBlockPlace(enderman, net.minecraftforge.common.util.BlockSnapshot.create(level.dimension(), level, blockpos1), net.minecraft.core.Direction.UP)) { level.setBlock(blockpos, blockstate2, 3); level.gameEvent(GameEvent.BLOCK_PLACE, blockpos, GameEvent.Context.of(this.enderman, blockstate2)); this.enderman.setCarriedBlock((BlockState)null); } } } private boolean canPlaceBlock(Level pLevel, BlockPos pDestinationPos, BlockState pCarriedState, BlockState pDestinationState, BlockState pBelowDestinationState, BlockPos pBelowDestinationPos) { return pDestinationState.isAir() && !pBelowDestinationState.isAir() && !pBelowDestinationState.is(Blocks.BEDROCK) && !pBelowDestinationState.is(net.minecraftforge.common.Tags.Blocks.ENDERMAN_PLACE_ON_BLACKLIST) && pBelowDestinationState.isCollisionShapeFullBlock(pLevel, pBelowDestinationPos) && pCarriedState.canSurvive(pLevel, pDestinationPos) && pLevel.getEntities(this.enderman, AABB.unitCubeFromLowerCorner(Vec3.atLowerCornerOf(pDestinationPos))).isEmpty(); } } static class EndermanLookForPlayerGoal extends NearestAttackableTargetGoal<Player> { private final EnderMan enderman; /** The player */ @Nullable private Player pendingTarget; private int aggroTime; private int teleportTime; private final TargetingConditions startAggroTargetConditions; private final TargetingConditions continueAggroTargetConditions = TargetingConditions.forCombat().ignoreLineOfSight(); private final Predicate<LivingEntity> isAngerInducing; public EndermanLookForPlayerGoal(EnderMan pEnderman, @Nullable Predicate<LivingEntity> pSelectionPredicate) { super(pEnderman, Player.class, 10, false, false, pSelectionPredicate); this.enderman = pEnderman; this.isAngerInducing = (p_269940_) -> { return (pEnderman.isLookingAtMe((Player)p_269940_) || pEnderman.isAngryAt(p_269940_)) && !pEnderman.hasIndirectPassenger(p_269940_); }; this.startAggroTargetConditions = TargetingConditions.forCombat().range(this.getFollowDistance()).selector(this.isAngerInducing); } /** * Returns whether execution should begin. You can also read and cache any state necessary for execution in this * method as well. */ public boolean canUse() { this.pendingTarget = this.enderman.level().getNearestPlayer(this.startAggroTargetConditions, this.enderman); return this.pendingTarget != null; } /** * Execute a one shot task or start executing a continuous task */ public void start() { this.aggroTime = this.adjustedTickDelay(5); this.teleportTime = 0; this.enderman.setBeingStaredAt(); } /** * Reset the task's internal state. Called when this task is interrupted by another one */ public void stop() { this.pendingTarget = null; super.stop(); } /** * Returns whether an in-progress EntityAIBase should continue executing */ public boolean canContinueToUse() { if (this.pendingTarget != null) { if (!this.isAngerInducing.test(this.pendingTarget)) { return false; } else { this.enderman.lookAt(this.pendingTarget, 10.0F, 10.0F); return true; } } else { if (this.target != null) { if (this.enderman.hasIndirectPassenger(this.target)) { return false; } if (this.continueAggroTargetConditions.test(this.enderman, this.target)) { return true; } } return super.canContinueToUse(); } } /** * Keep ticking a continuous task that has already been started */ public void tick() { if (this.enderman.getTarget() == null) { super.setTarget((LivingEntity)null); } if (this.pendingTarget != null) { if (--this.aggroTime <= 0) { this.target = this.pendingTarget; this.pendingTarget = null; super.start(); } } else { if (this.target != null && !this.enderman.isPassenger()) { if (this.enderman.isLookingAtMe((Player)this.target)) { if (this.target.distanceToSqr(this.enderman) < 16.0D) { this.enderman.teleport(); } this.teleportTime = 0; } else if (this.target.distanceToSqr(this.enderman) > 256.0D && this.teleportTime++ >= this.adjustedTickDelay(30) && this.enderman.teleportTowards(this.target)) { this.teleportTime = 0; } } super.tick(); } } } static class EndermanTakeBlockGoal extends Goal { private final EnderMan enderman; public EndermanTakeBlockGoal(EnderMan pEnderman) { this.enderman = pEnderman; } /** * Returns whether execution should begin. You can also read and cache any state necessary for execution in this * method as well. */ public boolean canUse() { if (this.enderman.getCarriedBlock() != null) { return false; } else if (!net.minecraftforge.event.ForgeEventFactory.getMobGriefingEvent(this.enderman.level(), this.enderman)) { return false; } else { return this.enderman.getRandom().nextInt(reducedTickDelay(20)) == 0; } } /** * Keep ticking a continuous task that has already been started */ public void tick() { RandomSource randomsource = this.enderman.getRandom(); Level level = this.enderman.level(); int i = Mth.floor(this.enderman.getX() - 2.0D + randomsource.nextDouble() * 4.0D); int j = Mth.floor(this.enderman.getY() + randomsource.nextDouble() * 3.0D); int k = Mth.floor(this.enderman.getZ() - 2.0D + randomsource.nextDouble() * 4.0D); BlockPos blockpos = new BlockPos(i, j, k); BlockState blockstate = level.getBlockState(blockpos); Vec3 vec3 = new Vec3((double)this.enderman.getBlockX() + 0.5D, (double)j + 0.5D, (double)this.enderman.getBlockZ() + 0.5D); Vec3 vec31 = new Vec3((double)i + 0.5D, (double)j + 0.5D, (double)k + 0.5D); BlockHitResult blockhitresult = level.clip(new ClipContext(vec3, vec31, ClipContext.Block.OUTLINE, ClipContext.Fluid.NONE, this.enderman)); boolean flag = blockhitresult.getBlockPos().equals(blockpos); if (blockstate.is(BlockTags.ENDERMAN_HOLDABLE) && flag) { level.removeBlock(blockpos, false); level.gameEvent(GameEvent.BLOCK_DESTROY, blockpos, GameEvent.Context.of(this.enderman, blockstate)); this.enderman.setCarriedBlock(blockstate.getBlock().defaultBlockState()); } } } }  
    • https://spark.lucko.me/uBsACZjZ1t heres the spark profiler!
  • Topics

×
×
  • Create New...

Important Information

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