Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Forge Mods
  • Mods
  • [WIP] [1.8] [API] [Forge] UtilityFatal (1.1)
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
Fatalitiii

[WIP] [1.8] [API] [Forge] UtilityFatal (1.1)

By Fatalitiii, August 13, 2015 in Mods

  • Reply to this topic
  • Start new topic

Recommended Posts

Fatalitiii    0

Fatalitiii

Fatalitiii    0

  • Tree Puncher
  • Fatalitiii
  • Members
  • 0
  • 17 posts
Posted August 13, 2015

T3BVCKx.png

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()

 

 

XW5ni8i.png

 

 

 

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.

 

 

dO6WlCv.gif

 

 

 

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.

 

 

Dy5FfOx.png

 

 

 

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)

 

 

GdL7UZe.png

 

 

 

-------------------------------------------------------------------------------------------------------------------------------------------------------

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.

 

  • Quote

Share this post


Link to post
Share on other sites

UberAffe    27

UberAffe

UberAffe    27

  • Diamond Finder
  • UberAffe
  • Forge Modder
  • 27
  • 316 posts
Posted August 13, 2015

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.

 

  • Quote

Current Project: Armerger 

Planned mods: Light Drafter  | Ore Swords

Looking for help getting a mod off the ground? Coding  | Textures

Share this post


Link to post
Share on other sites

Fatalitiii    0

Fatalitiii

Fatalitiii    0

  • Tree Puncher
  • Fatalitiii
  • Members
  • 0
  • 17 posts
Posted August 13, 2015

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

  • Quote

Share this post


Link to post
Share on other sites

UberAffe    27

UberAffe

UberAffe    27

  • Diamond Finder
  • UberAffe
  • Forge Modder
  • 27
  • 316 posts
Posted August 13, 2015

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.

  • Quote

Current Project: Armerger 

Planned mods: Light Drafter  | Ore Swords

Looking for help getting a mod off the ground? Coding  | Textures

Share this post


Link to post
Share on other sites

Fatalitiii    0

Fatalitiii

Fatalitiii    0

  • Tree Puncher
  • Fatalitiii
  • Members
  • 0
  • 17 posts
Posted August 13, 2015

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. :D

 

iAqAizo.gif

  • Quote

Share this post


Link to post
Share on other sites

UberAffe    27

UberAffe

UberAffe    27

  • Diamond Finder
  • UberAffe
  • Forge Modder
  • 27
  • 316 posts
Posted August 13, 2015

Will it be able to render items that have models? like the crossbows from some mods?

 

And I like the rotating, it looks nice!

  • Quote

Current Project: Armerger 

Planned mods: Light Drafter  | Ore Swords

Looking for help getting a mod off the ground? Coding  | Textures

Share this post


Link to post
Share on other sites

Fatalitiii    0

Fatalitiii

Fatalitiii    0

  • Tree Puncher
  • Fatalitiii
  • Members
  • 0
  • 17 posts
Posted August 13, 2015

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.

dO6WlCv.gif

  • Quote

Share this post


Link to post
Share on other sites

Fatalitiii    0

Fatalitiii

Fatalitiii    0

  • Tree Puncher
  • Fatalitiii
  • Members
  • 0
  • 17 posts
Posted August 14, 2015

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 :)

EvGLa2H.gif

  • Quote

Share this post


Link to post
Share on other sites

Fatalitiii    0

Fatalitiii

Fatalitiii    0

  • Tree Puncher
  • Fatalitiii
  • Members
  • 0
  • 17 posts
Posted August 15, 2015

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;

7NAFsxV.gif

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 :(

  • Quote

Share this post


Link to post
Share on other sites

UberAffe    27

UberAffe

UberAffe    27

  • Diamond Finder
  • UberAffe
  • Forge Modder
  • 27
  • 316 posts
Posted August 17, 2015

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)

  • Quote

Current Project: Armerger 

Planned mods: Light Drafter  | Ore Swords

Looking for help getting a mod off the ground? Coding  | Textures

Share this post


Link to post
Share on other sites

Fatalitiii    0

Fatalitiii

Fatalitiii    0

  • Tree Puncher
  • Fatalitiii
  • Members
  • 0
  • 17 posts
Posted August 18, 2015

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.

  • Quote

Share this post


Link to post
Share on other sites

Fatalitiii    0

Fatalitiii

Fatalitiii    0

  • Tree Puncher
  • Fatalitiii
  • Members
  • 0
  • 17 posts
Posted August 19, 2015

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

CMu4db6VEAAOIhs.png

  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Klarks
      [1.16.4] How i can open a container by clicking on my mob

      By Klarks · Posted 2 minutes ago

      I get it but my container have a data parametr now   protected MyModContainer(int id, PlayerInventory playerInventory,World world,PacketBuffer data) { super(RegObj.MOD_CONTAINER.get(), id); this.playerInventory = new InvWrapper(playerInventory); world.getEntityByID( data.readInt()).getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY).ifPresent(h -> { addSlot(new SlotItemHandler(h,0,79,18)); }); layoutPlayerInventory(7,54); }   and my anonymous inner class asks for data parametr  too. if i'll leave it null container wont work INamedContainerProvider iNamedContainerProvider = new INamedContainerProvider() { @Override public ITextComponent getDisplayName() { return new StringTextComponent("loh"); } @Nullable @Override public Container createMenu(int id, PlayerInventory playerInventory, PlayerEntity playerEntity) { return new MyModContainer(id,playerInventory, world,extraDataWriter); } };
    • diesieben07
      Use ${} in mods.toml

      By diesieben07 · Posted 10 minutes ago

      Correct.
    • diesieben07
      [1.16.*] Run Client/Server error

      By diesieben07 · Posted 11 minutes ago

      If you get that error you are using Java 15 still. However Forge has a recent update that should fix this.
    • diesieben07
      Party System

      By diesieben07 · Posted 12 minutes ago

      1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
    • diesieben07
      [1.16.4] How i can open a container by clicking on my mob

      By diesieben07 · Posted 12 minutes ago

      Here you write the entity ID. Now you need to read it in your IContainerFactory.   That extraDataWriter stuff doesn't work and makes no sense.
  • Topics

    • Klarks
      36
      [1.16.4] How i can open a container by clicking on my mob

      By Klarks
      Started Saturday at 09:56 PM

    • DoctorC
      7
      Use ${} in mods.toml

      By DoctorC
      Started 2 hours ago

    • Luis_ST
      1
      [1.16.*] Run Client/Server error

      By Luis_ST
      Started 1 hour ago

    • Discult
      1
      Party System

      By Discult
      Started 54 minutes ago

    • Luis_ST
      19
      [1.16.4] Edit Conversion Progress of Zombie Villager (Help with Java Reflection)

      By Luis_ST
      Started 5 hours ago

  • Who's Online (See full list)

    • diesieben07
    • Choonster
    • _HungTeen_
    • Klarks
    • Luis_ST
    • Thorius
    • Pl00py_R
    • Dragrise96
    • S-Spirit
    • loordgek
  • All Activity
  • Home
  • Forge Mods
  • Mods
  • [WIP] [1.8] [API] [Forge] UtilityFatal (1.1)
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community