Jump to content

Blitex

Members
  • Posts

    23
  • Joined

  • Last visited

Blitex's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Thanks for your relies it really helps!
  2. I am making a mod for 1.10.2 and I was just following a YouTube tutorial made 11 months ago
  3. Ok I will do that.
  4. I making a mod, but when I test the mod the texture doesn't show up. Here's my ModItems package net.minecraft.client.renderer.entity.item; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.client.renderer.entity.tab.ModelsTab; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.util.ResourceLocation; import net.minecraftforge.fml.common.registry.GameRegistry; import noppes.mpm.MorePlayerModels; /** * Created by Alex Nava on 9/24/2017. */ public class ModItems { public static Item RiptideSword; public static void preInit(){ RiptideSword = new ItemTutorialItem("Riptide Sword"); registeritems(); } public static void registeritems() { GameRegistry.register(RiptideSword, new ResourceLocation(MorePlayerModels.MODID, "Riptide_Sword")); } public static void registerRenders(){ registerRender(RiptideSword); } public static void registerRender(Item item){ Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item,0,new ModelResourceLocation(MorePlayerModels.MODID + ":" + item.getUnlocalizedName().substring(5),"inventory")); } } My Item package net.minecraft.client.renderer.entity.item; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.item.EnumRarity; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.ActionResult; import net.minecraft.util.EnumActionResult; import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumHand; import net.minecraft.util.math.BlockPos; import net.minecraft.util.text.TextComponentString; import net.minecraft.world.World; import noppes.mpm.MorePlayerModels; import java.util.List; /** * Created by Alex Nava on 9/24/2017. */ public class ItemTutorialItem extends Item { public ItemTutorialItem(String name) { setUnlocalizedName(name); setCreativeTab(MorePlayerModels.modelsTab); setMaxStackSize(1); } @Override public boolean hasEffect(ItemStack stack) { return true; } @Override public EnumRarity getRarity(ItemStack stack) { return EnumRarity.EPIC; } @Override public void addInformation(ItemStack stack, EntityPlayer playerIn, List<String> tooltip, boolean advanced) { tooltip.add("Carried by the mighty Sky or Percy"); super.addInformation(stack, playerIn, tooltip, advanced); } @Override public ActionResult<ItemStack> onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer player, EnumHand hand) { return super.onItemRightClick(itemStackIn, worldIn, player, hand); } @Override public EnumActionResult onItemUse(ItemStack stack, EntityPlayer playerIn, World worldIn, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) { if (worldIn.getBlockState(pos).getBlock()== Blocks.GRASS){ worldIn.setBlockState(pos, Blocks.DIAMOND_BLOCK.getDefaultState()); return EnumActionResult.SUCCESS; } return EnumActionResult.PASS; } } And my JSON { "parent": "item/handheld", "textures": { "layer0": "moreplayermodels:items/RIPTIDESWORD" } }
  5. About MorePlayerModels code, Noppes let me edit his mod so I can practice coding and so I could add obj models which I'll do later I'll make the items with the textures I want. I'll quote you once I'm done making the item.
  6. https://github.com/Blitex/moreplayermodels
  7. I want to add an item where when you right click it turns to a sword and when you right click again it turns back to an item. Can anyone help?
  8. I got it here it is https://github.com/Blitex/moreplayermodels
  9. Wait nvm it's uploading to GitHub I'll post the link when it is done uploading.
  10. I couldn't upload it into GitHub so I uploaded to dropbox https://www.dropbox.com/home?preview=more+player+models.rar
  11. I'll upload the mod into github now just one sec
  12. I want to render it out as an entity, I got the source code for more player models because I want to morph into the models I implemented, I haven't registered the models yet. CerealModel.mtl CerealModel.obj
  13. yea do you want the github?
  14. Hey, I was trying to add in Wavefront OBJ models into the game and have not been successful can anyone help me?
  15. I did that and it crashed again. Here's the crash report: ---- Minecraft Crash Report ---- // There are four lights! Time: 7/9/17 7:54 PM Description: There was a severe problem during mod loading that has caused the game to fail net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from Models (models) Caused by: net.minecraftforge.fml.common.LoaderException: java.lang.ClassNotFoundException: co/coolbeyblades7/minecraft_mod/proxy/ClientProxy; at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:88) at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:243) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:221) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:145) at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:559) at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:220) at net.minecraft.client.Minecraft.startGame(Minecraft.java:477) at net.minecraft.client.Minecraft.run(Minecraft.java:386) at net.minecraft.client.main.Main.main(Main.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) Caused by: java.lang.ClassNotFoundException: co/coolbeyblades7/minecraft_mod/proxy/ClientProxy; at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:71) ... 39 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.10.2 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_131, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 224320048 bytes (213 MB) / 457703424 bytes (436 MB) up to 1894252544 bytes (1806 MB) JVM Flags: 0 total; IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.32 Powered by Forge 12.18.3.2316 4 mods loaded, 4 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UC mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UC FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.10.2-12.18.3.2316.jar) UC Forge{12.18.3.2316} [Minecraft Forge] (forgeSrc-1.10.2-12.18.3.2316.jar) UE models{1.0} [Models] (minecraft_mod_main) Loaded coremods (and transformers): GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 384.76' Renderer: 'GeForce GTX 1070/PCIe/SSE2'
×
×
  • Create New...

Important Information

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