Jump to content

Recommended Posts

Posted

so i started to make a minecraft mod...... again and it's on 1.10.2 but the textures that are bigger than 16x16 will not load, they are multiples of 16x16 , it worked in 1.7.10.

i feel like it's something simple i am missing

jason

{
    "parent": "builtin/generated",
    "textures": {
        "layer0": "mmfim:items/itemwood_pickaxe_basic"
    },
    "display": {
        "thirdperson": {
            "rotation": [ -90, 0, 0 ],
            "transition": [ 0, 1, -3 ],
            "scale": [ 0.55, 0.55, 0.55 ]
},
        "firstperson": {
            "rotation": [ 0, -135, 25 ],
            "transition": [ 0, 4, 2 ],
            "scale": [ 1.7, 1.7, 1.7 ]
        }
    }
}

 

Posted (edited)

1) You do not need the display tags if you use item/generated (or item/handheld for tools) instead of builtin/generated

2) Show your log

3) Show where you register your item models

Edited by Draco18s

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted
  On 6/29/2018 at 4:19 PM, Draco18s said:

1) You do not need the display tags if you use item/generated (or item/handheld for tools) instead of builtin/generated

2) Show your log

3) Show where you register your item models

Expand  
package mysticmyles.FortniteItemsMod.init;

import mysticmyles.FortniteItemsMod.Reference;
import mysticmyles.FortniteItemsMod.items.itemmedkit;
import mysticmyles.FortniteItemsMod.items.itemwood_pickaxe_basic;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.fml.common.registry.GameRegistry;

public class ModItems {
	
	public static Item wood_pickaxe_basic;
	public static Item medkit;

	public static void init() {
		
		wood_pickaxe_basic = new itemwood_pickaxe_basic();
		medkit = new itemmedkit();
	
	}
	
	public static void register() {
		GameRegistry.register(wood_pickaxe_basic);
		GameRegistry.register(medkit);
		
	}
	
	public static void registerRenders() {
		registerRender(wood_pickaxe_basic);
		registerRender(medkit);
	}
	
	private static void registerRender(Item item) {
		Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory"));
		
	}
}

 

Posted
  On 6/29/2018 at 4:46 PM, TheMysticMinecart Myles said:

getItemModelMesher

Expand  

Problematic Code #2

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

new ModelResourceLocation(item.getRegistryName(), ...

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted
  On 6/29/2018 at 6:47 PM, Draco18s said:

new ModelResourceLocation(item.getRegistryName(), ...

Expand  

and it's has a error can you fill in the ... please ?

private static void registerRender(Item item) {
		ModelLoader.setCustomModelResourceLocation ( item, 0, new ModelResourceLocation(item.getRegistryName("mysticmyles.FortniteItemsMod:item/itemmedkit"), "inventory"));

 

....PNG

Posted

Convert it to a string..toString()

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

Why are you giving an argument to getRegistryName() ?

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted
  On 6/29/2018 at 7:18 PM, DaemonUmbra said:

Why are you giving an argument to getRegistryName() ?

Expand  

That too.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

Hmm

args.png

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

Okay, so i'ma explain what you gotta do to register, because its a pain. (BTW its JSON not Jason)

 

You need a class annotated with EventBusSubscriber, and a static method annotated with SubscribeEvent. The arguments are a ModelRegistryEvent.

 In that method you have the ModelLoader#setCustomModelResourceLocation method. Also since i'm guessing you're newer to forge you should set up proxies (look up tutorials if you have not made a proxy before) and I think you'r supposed to annotate your registry methods with SideOnly(value = Side.CLIENT) as I think it crashes trying to load them server side.

Posted
  On 6/29/2018 at 7:52 PM, Big_Bad_E said:

Okay, so i'ma explain what you gotta do to register, because its a pain. (BTW its JSON not Jason)

 

You need a class annotated with EventBusSubscriber, and a static method annotated with SubscribeEvent. The arguments are a ModelRegistryEvent.

 In that method you have the ModelLoader#setCustomModelResourceLocation method. Also since i'm guessing you're newer to forge you should set up proxies (look up tutorials if you have not made a proxy before) and I think you'r supposed to annotate your registry methods with SideOnly(value = Side.CLIENT) as I think it crashes trying to load them server side.

Expand  

i have proxies set up the client proxy the server proxy and the common proxy interface it's just this i am stuck on

in what class do i put

@EventBussSubscriber 

and i think this is the second thing you said to do

@SubscribeEvent

public static ModelRegistryEvent

 

or is that not right

Posted (edited)
  On 6/29/2018 at 8:04 PM, TheMysticMinecart Myles said:

@EventBussSubscriber 

Expand  

The one with your event handlers.

 

Whatever calls this:

 

  On 6/29/2018 at 4:46 PM, TheMysticMinecart Myles said:

registerRenders() { ... }

Expand  

 

Edited by Draco18s

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted
  On 6/29/2018 at 8:48 PM, Draco18s said:

The one with your event handlers.

 

Whatever calls this:

 

 

Expand  

ok it's in with the event handlers but is says disallowed for this location

package mysticmyles.FortniteItemsMod;

import mysticmyles.FortniteItemsMod.init.ModItems;
import mysticmyles.FortniteItemsMod.proxy.CommonProxy;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.Mod.Instance;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;

@Mod(modid = Reference.MOD_ID, name = Reference.NAME, version = Reference.VERSION, acceptedMinecraftVersions = Reference.ACCEPTED_VERSIONS)
public class Fortnite {
	@EventBusSubscriber 
	

	@Instance
	public static Fortnite instance;
	
	@SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS)
	public static CommonProxy proxy;
	
	@EventHandler
	public void preInit(FMLPreInitializationEvent event)
	{
		System.out.println("Pre Init");
		
		ModItems.init();
		ModItems.register();
	}
	
	@EventHandler
	public void Init(FMLInitializationEvent event)
	{
		System.out.println("Init");
		proxy.init();
	}
	
	@EventHandler
	public void postInit(FMLPostInitializationEvent event)
	{
		System.out.println("Post Init");
	}
}

and where does the other one go 

Posted
  On 6/29/2018 at 9:22 PM, TheMysticMinecart Myles said:

ok it's in with the event handlers but is says disallowed for this location

package mysticmyles.FortniteItemsMod;

import mysticmyles.FortniteItemsMod.init.ModItems;
import mysticmyles.FortniteItemsMod.proxy.CommonProxy;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.Mod.Instance;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;

@Mod(modid = Reference.MOD_ID, name = Reference.NAME, version = Reference.VERSION, acceptedMinecraftVersions = Reference.ACCEPTED_VERSIONS)
public class Fortnite {
	@EventBusSubscriber 
	

	@Instance
	public static Fortnite instance;
	
	@SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS)
	public static CommonProxy proxy;
	
	@EventHandler
	public void preInit(FMLPreInitializationEvent event)
	{
		System.out.println("Pre Init");
		
		ModItems.init();
		ModItems.register();
	}
	
	@EventHandler
	public void Init(FMLInitializationEvent event)
	{
		System.out.println("Init");
		proxy.init();
	}
	
	@EventHandler
	public void postInit(FMLPostInitializationEvent event)
	{
		System.out.println("Post Init");
	}
}

and where does the other one go 

Expand  

No, EventBusSubscriber annotates the class you use to register your items, blocks, models, etc...

The SubscribeEvent annotation goes over the method in which you regiser your items, blocks, models, etc...

If you want to register models you have to make the arguments ModelRegistryEvent.

 

I think what you have to do before you get into modding is to go and learn Java on your own. I know it's a response everyone gives but you obviously don't understand what I'm saying, you will be a lot less frustrated if you go and work with other Java projects and learn a bit more. Maybe try Spigot if you want to MC related projects. 

  • Like 1
Posted
  On 6/29/2018 at 9:49 PM, Big_Bad_E said:

No, EventBusSubscriber annotates the class you use to register your items, blocks, models, etc...

The SubscribeEvent annotation goes over the method in which you regiser your items, blocks, models, etc...

If you want to register models you have to make the arguments ModelRegistryEvent.

 

I think what you have to do before you get into modding is to go and learn Java on your own. I know it's a response everyone gives but you obviously don't understand what I'm saying, you will be a lot less frustrated if you go and work with other Java projects and learn a bit more. Maybe try Spigot if you want to MC related projects. 

Expand  

Spigot the plugins for servers?, i guess i will look up how to make spigot plugins and continue working with 1.7.10 for now  

Posted

I don't know if there is an official Forge stance on this but I would recommend Sponge over Spiggot.

Also note that if you use 1.7.10 you will NOT receive any support on these forums, 1.7.10 is an ancient version.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

  • 4 weeks later...
Posted
  On 6/29/2018 at 10:37 PM, TheMysticMinecart Myles said:

yeah i know that found out a while back 

also thx for the suggestion will learn sponge over spiggot

Expand  

I've personally never used Sponge, and sorry this is so late, but I seriously suggest starting a LOT simpler and learning a lot more about Java. Forge is not something you can learn easily, I've been trying for months and have barely scratched the surface.

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



×
×
  • Create New...

Important Information

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