Posted August 13, 201510 yr So what is UtilFatal you may be asking? UtilFatal allows the user to access a range of functions that can help enhance their mod development and also is required for mods that I develop. As this is only just the beginning there is only a handful of features right now with more in the works when I think of them. CurseForge can be found HERE ------------------------------------------------------------------------------------------------------------------------------------------------------- Features Get Mobs This feature gets all the mobs that have been registered from minecraft itself or from a forge mod and stores them in a list that then can be accessed by getMobClass() Render Entity To Screen The next feature allows you to render an entity to a gui or your choice. This is done by specifying drawEntityOnScreen(xPosition, yPosition, scale, rotateYaw, entity) and tada. The entity is rendered on the screen in a GUI for you. Render Text This feature allows you to render an string to a gui or your choice. This is done by specifying public static void addText(xPosition, yPosition, text, scale, colour, shadow, guiLeft, guiTop) where the colour is a decimal value and shadw allows you to choose if you want to render a black shodow below the text. GUIButton This feature allows you to render a button that can have a hover direction to show what the texture will change to when the user hovers over the button, a colour can be defined to overlay over the texture to tint it to your liking and also an icon that adds a bit of variety to the GUI . This is done by specifyingguiColourButton(ID, xPosition, yPosition, width, height, text, texture, xOffset, yOffset) ------------------------------------------------------------------------------------------------------------------------------------------------------- DOWNLOADS: This mod requires Forge! You need forge version 11.14.3.1450 at least! (This is the recommended version of forge). This mod requires Minecraft Version 1.8! Forge 11.14.3.1450 download link: - http://files.minecraftforge.net/ UtilFatal 1.8.0-1.1 download link: - Jar - 1.8.0-1.1 - Deobf - 1.8.0-1.1-Deobf UtilFatal MinecraftForum link ------------------------------------------------------------------------------------------------------------------------------------------------------- Change Log: 1.1 - Added addElement allowing to render textures with colour overlays applied - Added addText allowing to render text with colour overlays applied and scale text - Added guiButton allowing to render button in a gui 1.0 Release ------------------------------------------------------------------------------------------------------------------------------------------------------- If people have any ideas for any features that would like, I am more than happy to add them and get updates pushed out to everyone.
August 13, 201510 yr I am working on a mod that will allow the user to create a model in game, I know how to do the registration to allow this but I haven't worked out a good interface to allow it. Does the render entity work for any model (sword/machine/mob)?Does the model have to be registered to work, or can I just pass it a model as a param? Also I recommend adding this to curse forge, it will give it more visibility, unless you have an ad.fly link for the download. Current Project: Armerger Planned mods: Light Drafter | Ore Swords Looking for help getting a mod off the ground? Coding | Textures
August 13, 201510 yr Author I am working on a mod that will allow the user to create a model in game, I know how to do the registration to allow this but I haven't worked out a good interface to allow it. Does the render entity work for any model (sword/machine/mob)?Does the model have to be registered to work, or can I just pass it a model as a param? Hey UberAffe thanks for the feedback and as of right now it only handles EntityLivingBase entity such as sheep and cows not other entities but ill try and add the feature soon. Also I recommend adding this to curse forge, it will give it more visibility, unless you have an ad.fly link for the download. As I am very new to distributing mods and that how do I go about doing this. Edit: Never mind just been approved Curse
August 13, 201510 yr Yea, it is pretty easy to get set up there and it makes for a convenient repository of releases. I am following your project on curse so when you get an update out I can take a look at it. Side Note: the mod I am working on won't be done for quite a while but I'll make sure to send you link it and any others I make that use this. Current Project: Armerger Planned mods: Light Drafter | Ore Swords Looking for help getting a mod off the ground? Coding | Textures
August 13, 201510 yr Author Yea, it is pretty easy to get set up there and it makes for a convenient repository of releases. I am following your project on curse so when you get an update out I can take a look at it. Side Note: the mod I am working on won't be done for quite a while but I'll make sure to send you link it and any others I make that use this. Sounds good keep me posted or tweet me when you have done it Also on a side note I probably get version 1.1.5 out soon that added the render item and that in a gui as its almost done just a few little tweaks and cleaning up to do.
August 13, 201510 yr Will it be able to render items that have models? like the crossbows from some mods? And I like the rotating, it looks nice! Current Project: Armerger Planned mods: Light Drafter | Ore Swords Looking for help getting a mod off the ground? Coding | Textures
August 13, 201510 yr Author Will it be able to render items that have models? like the crossbows from some mods? And I like the rotating, it looks nice! I don't know if it will since I haven't tested it with other mod items. Also thanks it is one of the variables that can be stated when calling the function to set the rotation and I also did it with the mobs just didn't upload the right file.
August 14, 201510 yr Author Will it be able to render items that have models? like the crossbows from some mods? And I like the rotating, it looks nice! Just a quick update, it does seem to render blocks as they are so I would say that it is possible that it could do it for items as well if they have a render assigned to them
August 15, 201510 yr Author Hey everyone, just a quick update on the api. As of right now, I am working on version 1.3.2 which will allow for a string of text to render with items included; guiElement.addTextWithItem(guiLeft - 40, guiTop - 40, new Object[] { "This is an %# and this is a %?", '#', Items.apple, '?', Items.iron_axe });[/p] This allows the user to define what item or block they want to apply and where by using the '%' followed by any character they want. Because of this, most of the render methods for the guiElement has been re written so if you are using it, then expect it to break sorry
August 17, 201510 yr Will this be able to rotate on a non-standard axis or is that up to the renderer? For instance seeing the block rotate on a point so you can see all faces(top and bottom) Current Project: Armerger Planned mods: Light Drafter | Ore Swords Looking for help getting a mod off the ground? Coding | Textures
August 18, 201510 yr Author As of right now, if you where to call the my renderModel(xPosition, yPosition, zIndex, scale, Entity, rotateX, rotateY) You can specify the x and y rotation. But I will ass rotationZ later today. While, if you can specify x and y rotation but if you where to say addTextWithItem(xPosition, yPosition, scale, object); then it has already set rotations so it makes it easier to view items, blocks or entity.
August 19, 201510 yr Author Hey everyone, I'm also doing another mod on the side and even though its not relevant. I just wanted to show off the feature
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.