Jump to content

Recommended Posts

Posted

I apologize for my bad English.

I've been programming for a long time © and decided to try to write something for MineCraft in Java (object-oriented programming  >)). I wanted to add your own bow. Using this one lesson (

), I did everything just like in the video.

However, no matter how I tried to model and texture did not want to appear. In their place appeared a cube with chess texture (purple and black).

As I watched the information here (http://www.minecraftforge.net/forum/index.php?topic=24263.0 and http://www.wuppy29.com/minecraft/1-8-tutorial/updating-1-7-to-1-8-part-2-basic-items/#sthash.scik3Pfo.5cTYZKPv.dpbs), but it also has not produced any result.

What am i doing wrong?

OverMod.java (the main class)

package com.quantum.overworld;

import com.quantum.overworld.proxy.Server;
import com.quantum.overworld.weapon.Bow;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
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 = ModInfo.MOD_ID, name = ModInfo.MOD_NAME, version = ModInfo.VERSION)

public class OverWorld 
{
    @SidedProxy(clientSide = ModInfo.CLIENT_PROXY_CLASS, serverSide = ModInfo.SERVER_PROXY_CLASS)
    public static Server proxy;
    @EventHandler
    public void preInit(FMLPreInitializationEvent event)
    {
        Bow.InitBow();
        Bow.RegisterBow();
    }
    @EventHandler
    public void init(FMLInitializationEvent event)
    {
    
    }
    @EventHandler
    public void postInit(FMLPostInitializationEvent event)
    {
        
    }
}

Bow.java

package com.quantum.overworld.weapon;

import com.quantum.overworld.ModInfo;
import net.minecraft.client.Minecraft;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.item.Item;

import net.minecraftforge.fml.common.registry.GameRegistry;

public class Bow 
{
    public static Item IronBow;
    public static Item GoldBow;
    public static Item DiamondBow;
    
    public static void InitBow()
    {
        IronBow = new Item().setUnlocalizedName("IronBow");
    }
    
    public static void RegisterBow()
    {
       GameRegistry.registerItem(IronBow, IronBow.getUnlocalizedName());
    }
    
    public static void RegisterRendersBow()
    {
       RegisterRenderBow(IronBow);
    }
    
     public static void RegisterRenderBow(Item item)
    {
       Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(ModInfo.MOD_ID + ":" + "IronBow","inventory"));
    }
}

Client.java:

package com.quantum.overworld.proxy;

import com.quantum.overworld.weapon.Bow;

public class Client extends Server
{
    public void Client()
    {
       
    }
    @Override
    public void RegisterRendersBow()
    {
        Bow.RegisterRendersBow();
    }
}

Server.java

package com.quantum.overworld.proxy;

public class Server 
{
    public void Server()
    {
        
    }
    public void RegisterRendersBow()
    {
        
    }
}

ModInfo.java

package com.quantum.overworld;

public class ModInfo 
{
    public static final String MOD_ID = "ow";
    public static final String MOD_NAME = "Over World";
    public static final String VERSION = "1.0";
    public static final String CLIENT_PROXY_CLASS = "com.quantum.overworld.proxy.Client";
    public static final String SERVER_PROXY_CLASS = "com.quantum.overworld.proxy.Server";
}

IronBow.json:

{
"parent": "builtin/generated",
"textures": {
	"layer0": "ow:items/IronBow"
},
"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]
	}
}
}

assets:

src/main/resources/assets/ow/models/item
src/main/resources/assets/ow/textures/items

 

Posted

I hate to put down Mr. Crayfish, but I would recommend a total restart here. I started out with Mr. Crayfish too and got no farther than you did - an untextured purple and black cube. Plus, his turoials stop abruptly. I would recommend going and checking out Bedrock_Miner here: http://bedrockminer.jimdo.com/modding-tutorials/basic-modding-1-8/

 

With his help, I now have a mod with many items, blocks, tools, armor sets, even a dimension and an entity (those last two needed some external research.)

Posted
  On 8/14/2015 at 1:37 AM, Yakman3 said:

I hate to put down Mr. Crayfish, but I would recommend a total restart here. I started out with Mr. Crayfish too and got no farther than you did - an untextured purple and black cube. Plus, his turoials stop abruptly. I would recommend going and checking out Bedrock_Miner here: http://bedrockminer.jimdo.com/modding-tutorials/basic-modding-1-8/

 

With his help, I now have a mod with many items, blocks, tools, armor sets, even a dimension and an entity (those last two needed some external research.)

Um ... thanks for the link !

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

    • So, i'm hosting (or attempting to host) a port-forwarded modded server for 1.12.2. There's quite a few mods in this pack, but they all run and have no compatibility issues (besides something causing the game to crash if you go fullscreen, a problem ive given up trying to identify or fix). It can run on 6gb of ram or less, and works fine in singleplayer. All of my friends that want to join have the exact same mod/config/game setup as I do (I personally helped them set everything up). Just to be safe, we've all allocated 12 gigabytes of RAM to the installation, and I've also allocated 12GB to the server itself. I am able to join with no issue and it runs fine. However, when they try to join, it gets stuck in the 'logging in' screen before their game becomes unresponsive. When they close it, it gives them the exit code 805306369, which usually means not enough RAM, but this cant be the case. On my screen, in the server, it shows them joining, and then disconnecting, so I dont think its a port-forwarding issue. They can all run it just fine in singleplayer as well. The annoying bit about this particular issue is that it generates no crash log. Does anyone have any suggestions? Thanks! Here is my debug log, and his, starting from the same place. MINE: [132647] [Netty Client IO #5INFO] [FML] Attempting connection with missing mods [ctm, fusion] at SERVER 132653.817 [132653] [Client threadINFO] [minecraftGuiConnecting] Connecting to 0, 25565 132654.682 [132654] [Netty Client IO #9INFO] [STDOUT] [xaero.common.core.transformer.ClassNodeTransformertransform29] Transforming class brz net.minecraft.client.network.NetHandlerPlayClient 132654.684 [132654] [Netty Client IO #9INFO] [STDOUT] [xaero.map.core.transformer.ClassNodeTransformertransform29] Transforming class net.minecraft.client.network.NetHandlerPlayClient 132654.764 [132654] [Netty Client IO #9INFO] [FML] Server protocol version 2 132654.777 [132654] [Netty Client IO #9INFO] [FML] Attempting connection with missing mods [ctm, fusion] at SERVER 132656.193 [132656] [Client threadINFO] [FML] Injecting existing registry data into this client instance 132659.081 [132659] [Client threadINFO] [FML] Applying holder lookups 132659.082 [132659] [Client threadINFO] [FML] Holder lookups applied 132659.092 [132659] [Netty Client IO #9INFO] [FML] [Netty Client IO #9] Client side modded connection established HIS: [13:12:16] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [ctm, fusion] at SERVER 13:12:25.597 [13:12:25] [Client thread/INFO] [minecraft/GuiConnecting]: Connecting to (my IP address and the server port 25565) 13:12:26.805 [13:12:26] [Netty Client IO #1/INFO] [STDOUT]: [xaero.common.core.transformer.ClassNodeTransformer:transform:29]: Transforming class brz net.minecraft.client.network.NetHandlerPlayClient 13:12:26.808 [13:12:26] [Netty Client IO #1/INFO] [STDOUT]: [xaero.map.core.transformer.ClassNodeTransformer:transform:29]: Transforming class net.minecraft.client.network.NetHandlerPlayClient 13:12:26.936 [13:12:26] [Netty Client IO #1/INFO] [FML]: Server protocol version 2 13:12:27.114 [13:12:27] [Netty Client IO #1/INFO] [FML]: Attempting connection with missing mods [ctm, fusion] at SERVER 13:12:27.480 [13:12:27] [Client thread/INFO] [FML]: Injecting existing registry data into this client instance 13:12:30.669 [13:12:30] [Client thread/INFO] [FML]: Applying holder lookups 13:12:30.671 [13:12:30] [Client thread/INFO] [FML]: Holder lookups applied 13:13:04.700 Process crashed with exit code -805306369 P.S - Both mods "CTM" and "FUSION" are present in both our folders so idk what that's about.
    • Please read the FAQ (link is orange banner at top of page), and post logs as described there, to an external site such as https://mclo.gs  
    • Hi! I've got a modpack with about 56 mods that has, up until now, been running pretty well. Starting today, any world i try to open causes minecraft to crash. It isn't the game itself- the main menu opens up fine.  I tried changing the ram allocated with both the minecraft launcher, and the forge launcher. No success with either. I tried deleting the JEI folder and letting it remake itself. No success. I tried turning off multiple mods. No success. I tried turning off JEI incase that was the issue. No dice. If you need to know specifically which mods I have installed, let me know, and I'll send them all to you. I've included the very first crash log. Please let me know if there's anything I can do! https://pastebin.com/Zfv6gWN7 -- Crash log on Pastebin (if this doesnt work, let me know)
    • I had this issue on ftb-stoneblock-3-1.11.5 (most recent version right now, installed through CurseForge), but my friend didn't get it when installing the same pack in the same way. I tried reinstalling the modpack several times, didn't help. I later finally solved it by updating REI Plugin Compatibilities (REIPC) in my StoneBlock client from version 8.0.69 to 8.0.89 (the most recent one as of now).
    • Delete the personality-client.toml file in your config folder and add this mod: https://www.curseforge.com/minecraft/mc-mods/night-config-fixes  
  • Topics

×
×
  • Create New...

Important Information

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