Posted November 1, 20186 yr Hello Everyone i am trying to make an addon for projecte and i have it to where i think its good but for some reason i cannot get the blocks to open https://github.com/Colton-Slayden/ProjectE-Plus please take a look of where i am messing up and why the gui will not open up
November 1, 20186 yr Quote public static CommonProxy proxy; Common proxy makes no sense, proxies exist to separate sided-only code. If your code is common then it goes anywhere else but your proxy. Quote serverSide = Reference.COMMON_PROXY_CLASS This makes even less sense. A server proxy either contains noop implementation for client only stuff or references to server-only classes that would crash the client in a similar way how model registration crashes the server. A common proxy can't be your server proxy. Quote public static final Block collectorMK4 = new CollectorBase(4, cTab); Don't use static initializers ever. Instantinate your stuff directly in the appropriate registry event. Quote GameRegistry.registerTileEntity(CollectorMK4Tile.class, Reference.MOD_ID + ":collector_mk1"); Don't use this outdated method of registering your TEs. Use the overload that takes a ResourceLocation instead. Why are your blocks and items declared in two separate places(ObjectHandler and ModBlocks/ModItems)? This makes no sense because they are different objects/instances of the same class where only one is registered. Quote implements IHasModel IHasModel is stupid. All Items need models, no exceptions and nothing about model registration requires access to private/protected things. Register your models in the ModelRegistryEvent directly. You are registering your items/blocks twice. Once in the RegistryHandler, once in the ObjectHandler. You also have your Item/Block classes copied in two packages, the projecteplus one and the gameObjs one. Please structure your mod/repository correctly. 38 minutes ago, RoyalReject said: why the gui will not open up Maybe I am blind here but I can't see any class in your repository that would implement IGuiHandler. The GUI/Container pair won't magically open itself just becaue you've invoked EntityPlayer#openGui. You need a registered IGuiHandler implementation.
November 1, 20186 yr Author So I have moved some stuff around and now got the gui to open for a second then game crashes with crash log of https://pastebin.com/LY2pryFN Nevermind fixed it Edited November 1, 20186 yr by RoyalReject
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.