Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Marcel1202

Forge Modder
  • Posts

    28
  • Joined

  • Last visited

Converted

  • Gender
    Male
  • URL
    http://marcel12022000.ma.funpic.de/
  • Location
    Germany
  • Personal Text
    Maps: http://marcel12022000.ma.funpic.de/meine-map

Marcel1202's Achievements

Tree Puncher

Tree Puncher (2/8)

1

Reputation

  1. I've already changed it package de.unknownassassin.powerapples;[/Code]
  2. Thank you, but it already is lowercase
  3. Forgot to post it here sry: Folder: C:\Users\Marcel\Meine Dateien\PowerApples\src\main\resources\assets\PowerApples\models\item File:json diamondapple.json: { "parent": "builtin/generated", "textures": { "layer0": "powerapples:items/diamondapple" }, "display": { "thirdperson": { "rotation": [-90, 0, 0], "translation": [0, 1, -3], "scale": [0.55, 0.55, 0.55 ] }, "firstperson": { "rotation": [0, -135, 25 ], "translation": [0, 4, 2 ], "scale": [1.7, 1.7, 1.7] } } }[/Code] EDIT: Ouh diamondapple isn't in lowercase EDIT: Pasted the new Code...still doesn't work...is it true, that the MODID has to be lowercase? New Error: [Code][16:12:41] [Client thread/ERROR] [FML]: Exception loading model powerapples:models/item/ObsidianApple with vanilla loader, skipping java.io.FileNotFoundException: powerapples:models/item/ObsidianApple.json at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:70) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?] at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:260) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.access$1200(ModelLoader.java:51) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:417) [ModelLoader$VanillaLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:92) [ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadAnyModel(ModelLoader.java:165) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.getModel(ModelLoader.java:148) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.loadItems(ModelLoader.java:140) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:69) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [simpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:727) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:306) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:484) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31] 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(GradleStartCommon.java:85) [start/:?] at GradleStart.main(GradleStart.java:45) [start/:?][/Code]
  4. My Texture for the Item "DiamondApple" is not working. Path: C:\Users\Marcel\Meine Dateien\PowerApples\src\main\resources\assets\PowerApples\textures\items Name: diamondapple file: png Thank you PowerApplesMain: package de.UnknownAssassin.PowerApples; import de.UnknownAssassin.PowerApples.ItemDiamondApple; import net.minecraft.client.Minecraft; import net.minecraft.client.resources.model.ModelResourceLocation; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemFood; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; 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; @Mod(modid = PowerApplesMain.MODID, version = PowerApplesMain.VERSION) public class PowerApplesMain { public static final String MODID = "powerapples"; public static final String VERSION = "Alpha"; public static Item diamondapple; public static Item obsidianapple; public static CreativeTabs PowerApplesTab; @EventHandler public void preinit(FMLPreInitializationEvent event) { //PowerApplesTab PowerApplesTab = new CreativeTabs("PowerApplesTab") { @Override public Item getTabIconItem() { return Items.apple; } }; //DiamondApple diamondapple = new ItemDiamondApple(0, false).setUnlocalizedName("DiamondApple").setCreativeTab(PowerApplesTab).setMaxStackSize(4); obsidianapple = new ItemObsidianApple(0, false).setUnlocalizedName("ObsidianApple").setCreativeTab(PowerApplesTab).setMaxStackSize(4); } @EventHandler public void init(FMLInitializationEvent event) { //Crafting Rezepte GameRegistry.addRecipe(new ItemStack(Items.diamond, 1), new Object[] { "ddd", "dad", "ddd", Character.valueOf('d'), Items.diamond, Character.valueOf('a'), Items.apple }); //Register Items GameRegistry.registerItem(diamondapple, "DiamondApple"); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(diamondapple, 0, new ModelResourceLocation("powerapples:diamondapple", "inventory")); GameRegistry.registerItem(obsidianapple, "ObsidianApple"); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(obsidianapple, 0, new ModelResourceLocation("powerapples:obsidianapple", "inventory")); } @EventHandler public void postinit(FMLPostInitializationEvent event) { } } [/Code] ItemDiamondApple: [Code]package de.UnknownAssassin.PowerApples; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemFood; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; import net.minecraft.world.World; public class ItemDiamondApple extends ItemFood { private PotionEffect effects; public ItemDiamondApple(int amount, boolean isWolfFood) { super(8, false); setPotionEffect(Potion.regeneration.id, 10, 0, 1.00F); this.setAlwaysEdible(); } } [/Code] Log: [Code][15:47:54] [main/INFO] [GradleStart]: Extra: [] [15:47:54] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Marcel/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker] [15:47:54] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [15:47:54] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [15:47:54] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker [15:47:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [15:47:54] [main/INFO] [FML]: Forge Mod Loader version 8.0.26.1299 for Minecraft 1.8 loading [15:47:54] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_31, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jre1.8.0_31 [15:47:54] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [15:47:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker [15:47:54] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [15:47:54] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [15:47:54] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [15:47:54] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [15:47:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [15:47:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [15:47:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [15:47:54] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [15:47:55] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [15:47:55] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [15:47:55] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [15:47:56] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [15:47:56] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [15:47:56] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [15:47:56] [Client thread/INFO]: Setting user: Player312 [15:47:58] [Client thread/INFO]: LWJGL Version: 2.9.1 [15:47:59] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [15:47:59] [Client thread/INFO] [FML]: MinecraftForge v11.14.0.1299 Initialized [15:47:59] [Client thread/INFO] [FML]: Replaced 204 ore recipies [15:47:59] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [15:47:59] [Client thread/INFO] [FML]: Searching C:\Users\Marcel\Meine Dateien\PowerApples\eclipse\mods for mods [15:48:01] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [15:48:02] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, powerapples] at CLIENT [15:48:02] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, powerapples] at SERVER [15:48:02] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:PowerApples [15:48:02] [Client thread/WARN]: ResourcePack: ignored non-lowercase namespace: %s in %s [15:48:02] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [15:48:02] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations [15:48:02] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [15:48:02] [Client thread/INFO] [FML]: Applying holder lookups [15:48:02] [Client thread/INFO] [FML]: Holder lookups applied [15:48:02] [sound Library Loader/INFO]: Starting up SoundSystem... [15:48:02] [Thread-7/INFO]: Initializing LWJGL OpenAL [15:48:02] [Thread-7/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [15:48:02] [Thread-7/INFO]: OpenAL initialized. [15:48:03] [sound Library Loader/INFO]: Sound engine started [15:48:04] [Client thread/INFO]: Created: 512x512 textures-atlas [15:48:05] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [15:48:05] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:PowerApples [15:48:05] [Client thread/WARN]: ResourcePack: ignored non-lowercase namespace: %s in %s [15:48:05] [Client thread/INFO]: SoundSystem shutting down... [15:48:05] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [15:48:05] [sound Library Loader/INFO]: Starting up SoundSystem... [15:48:06] [Thread-9/INFO]: Initializing LWJGL OpenAL [15:48:06] [Thread-9/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [15:48:06] [Thread-9/INFO]: OpenAL initialized. [15:48:06] [sound Library Loader/INFO]: Sound engine started [15:48:07] [Client thread/ERROR] [FML]: Exception loading model powerapples:models/item/DiamondApple with vanilla loader, skipping java.io.FileNotFoundException: powerapples:models/item/DiamondApple.json at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:71) ~[simpleReloadableResourceManager.class:?] at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:260) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.access$1200(ModelLoader.java:51) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:417) [ModelLoader$VanillaLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:92) [ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadAnyModel(ModelLoader.java:165) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.getModel(ModelLoader.java:148) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.loadItems(ModelLoader.java:140) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:69) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [simpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:727) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:306) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:484) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31] 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(GradleStartCommon.java:85) [start/:?] at GradleStart.main(GradleStart.java:45) [start/:?] [15:48:07] [Client thread/ERROR] [FML]: Exception loading model powerapples:models/item/ObsidianApple with vanilla loader, skipping java.io.FileNotFoundException: powerapples:models/item/ObsidianApple.json at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:71) ~[simpleReloadableResourceManager.class:?] at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:260) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.access$1200(ModelLoader.java:51) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:417) [ModelLoader$VanillaLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:92) [ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadAnyModel(ModelLoader.java:165) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.getModel(ModelLoader.java:148) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.loadItems(ModelLoader.java:140) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:69) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [simpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:727) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:306) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:484) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31] 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(GradleStartCommon.java:85) [start/:?] at GradleStart.main(GradleStart.java:45) [start/:?] [15:48:07] [Client thread/INFO]: Created: 512x512 textures-atlas [15:48:19] [server thread/INFO]: Starting integrated minecraft server version 1.8 [15:48:19] [server thread/INFO]: Generating keypair [15:48:19] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance [15:48:19] [server thread/INFO] [FML]: Applying holder lookups [15:48:19] [server thread/INFO] [FML]: Holder lookups applied [15:48:19] [server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@28d43085) [15:48:19] [server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@28d43085) [15:48:19] [server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@28d43085) [15:48:19] [server thread/INFO]: Preparing start region for level 0 [15:48:20] [server thread/INFO]: Changing view distance to 12, from 10 [15:48:21] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 1 [15:48:21] [Netty Server IO #1/INFO] [FML]: Client protocol version 1 [15:48:21] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : FML@8.0.26.1299,Forge@11.14.0.1299,powerapples@Alpha,mcp@9.05 [15:48:21] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established [15:48:21] [server thread/INFO] [FML]: [server thread] Server side modded connection established [15:48:21] [server thread/INFO]: Player312[local:E:4361c96f] logged in with entity id 178 at (256.48334283913323, 68.0, -0.7395330982531871) [15:48:21] [server thread/INFO]: Player312 joined the game [15:48:25] [Chunk Batcher 0/WARN]: Needed to grow BufferBuilder buffer: Old size 524288 bytes, new size 2621440 bytes. [15:48:28] [server thread/INFO]: Saving and pausing game... [15:48:31] [server thread/INFO]: Saving chunks for level 'New World'/Overworld [15:48:31] [server thread/INFO]: Saving chunks for level 'New World'/Nether [15:48:31] [server thread/INFO]: Saving chunks for level 'New World'/The End [15:48:31] [server thread/INFO]: Stopping server [15:48:31] [server thread/INFO]: Saving players [15:48:31] [server thread/INFO]: Saving worlds [15:48:31] [server thread/INFO]: Saving chunks for level 'New World'/Overworld [15:48:31] [server thread/INFO]: Saving chunks for level 'New World'/Nether [15:48:31] [server thread/INFO]: Saving chunks for level 'New World'/The End [15:48:32] [server thread/INFO] [FML]: Unloading dimension 0 [15:48:32] [server thread/INFO] [FML]: Unloading dimension -1 [15:48:32] [server thread/INFO] [FML]: Unloading dimension 1 [15:48:32] [server thread/INFO] [FML]: Applying holder lookups [15:48:32] [server thread/INFO] [FML]: Holder lookups applied[/Code]
  5. I fixed it, it was pretty easy
  6. Because of the Forgotten ; ? I already learned much Java but I can't say that it helped
  7. So many Errors ... Rendering doesn't work too btw PowerApplesMain: package de.UnknownAssassin.PowerApples; import de.UnknownAssassin.PowerApples.ItemDiamondApple; import net.minecraft.client.Minecraft; import net.minecraft.client.resources.model.ModelResourceLocation; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemFood; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; 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; @Mod(modid = PowerApplesMain.MODID, version = PowerApplesMain.VERSION) public class PowerApplesMain { public static final String MODID = "powerapples"; public static final String VERSION = "Alpha"; public static Item diamondapple; public static CreativeTabs PowerApplesTab; @EventHandler public void preinit(FMLPreInitializationEvent event) { PowerApplesTab = new CreativeTabs("PowerApplesTab") { @Override public Item getTabIconItem(){ return Items.apple; } }; diamondapple = new ItemDiamondApple(0, false).setUnlocalizedName("DiamondApple").setCreativeTab(PowerApplesTab).setMaxStackSize(4); diamondapple = new PotionEffect(Potion.moveSpeed.id, 1200, 1) } @EventHandler public void init(FMLInitializationEvent event) { //Crafting Rezepte GameRegistry.addRecipe(new ItemStack(Items.diamond, 1), new Object[] { "ddd", "dad", "ddd", Character.valueOf('d'), Items.diamond, Character.valueOf('a'), Items.apple }); //Register Items GameRegistry.registerItem(diamondapple, "DiamondApple"); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(diamondapple, 0, new ModelResourceLocation("powerapples:diamondapple", "inventory")); } @EventHandler public void postinit(FMLPostInitializationEvent event) { } } ItemDiamondApple: package de.UnknownAssassin.PowerApples; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemFood; import net.minecraft.item.ItemStack; import net.minecraft.potion.PotionEffect; import net.minecraft.world.World; public class ItemDiamondApple extends ItemFood { private PotionEffect[] effects; ItemDiamondApple(String "DiamondApple", int healAmount, float saturationModifier, boolean wolvesFavourite, PotionEffect effects); this.effects = effects; } @Override protected void onFoodEaten(ItemStack stack, World world, EntityPlayer player) { super.onFoodEaten(stack, world, player); for (int i = 0; i < effects.length; i ++) { if (effects != null && effects.getPotionID() > 0) player.addPotionEffect(new PotionEffect(this.effects.getPotionID(), this.effects.getDuration(), this.effects.getAmplifier(), this.effects.getIsAmbient())); } }
  8. Im too stupid to make it Trying for hours
  9. Is this working with 1.8? Thought it was 1.7.10 only
  10. I can't find out how to add Potion Effects to Food? ( 1.8 ) Pls help me Thank you
  11. gradlew setupDecompWorkspace --refreshDependencies ---> Only gradlew setupDecompWorkspace eclipse "Build Succesfull" But a exclamation mark. gradlew setupDevWorkspace eclipse works but I can't see classes of the minecraft code.
×
×
  • Create New...

Important Information

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