Jump to content
  • Home
  • Files
  • Docs
  • Merch
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
  • Mod Developer Central
  • Modder Support
  • [1.14.4] Class Transformer
1.13 Update Notes for Mod Creators
Sign in to follow this  
Followers 0
wilpito

[1.14.4] Class Transformer

By wilpito, October 13 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

wilpito    0

wilpito

wilpito    0

  • Tree Puncher
  • wilpito
  • Members
  • 0
  • 4 posts
Posted October 13

I need to modify two original Minecraft-Classes for inserting special functionality. 

 

In Version 1.12 i've had a possibility to change original Minecraft classes by Classtransformer. Therfor i've had 2 CLasses: 

* public class CBClassTransformer implements IClassTransformer

* public class CBFMLLoadingPlugin implements IFMLLoadingPlugin

 

Is there any Possibility to do the same in 1.14.4.

Can somebody help me.   

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    6671

diesieben07

diesieben07    6671

  • Reality Controller
  • diesieben07
  • Forum Team
  • 6671
  • 45597 posts
Posted October 13

Coremods are written using Javascript now.

Why are you writing a coremod?

  • Quote

Share this post


Link to post
Share on other sites

wilpito    0

wilpito

wilpito    0

  • Tree Puncher
  • wilpito
  • Members
  • 0
  • 4 posts
Posted October 14

In this time i need to change the Fire Blocks. when burning on my oil block.  Oil is a Block with different Hight between 2 Pixel and 16 Pixel for a full block. When Oil is Burning on each Burn Step block will be reduced by 2 Pixles in High. I want that the fire Block begins just on top of the Oi and slide down when oil Leve is reduced. The second problem is, that oil is not a full Block. The standard mechanismen at Chatch Fire only works, when Block is Solid at Upside.

 

Ive tested with replacing fireBlock at BlockTick, but there is an small error in Fire Block. It might be possible that my Oil Block is replaced with Fire instead of starting Burn on Block above of my Block.

 

 

Do you have souch a Java Script for me, so i can test with replacing the Fire Block in my Mod.

 

 

 

 

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    6671

diesieben07

diesieben07    6671

  • Reality Controller
  • diesieben07
  • Forum Team
  • 6671
  • 45597 posts
Posted October 14

Neither of these require a coremod. If IForgeBlock#isFlammable returns true for your block, and it's below fire, it does not need to have a solid top side for it to support the fire.

As for the fire showing in your block space, you have to do that within your own block model.

  • Quote

Share this post


Link to post
Share on other sites

wilpito    0

wilpito

wilpito    0

  • Tree Puncher
  • wilpito
  • Members
  • 0
  • 4 posts
Posted October 17

I Think i need a Coremod, because Fire Block in Forge has an Error and my Block will be replaced with the fire Block instead of catching Fire. 

I Found a Possibility to do this:

   I Use original Class bow ( = FireBlock) and manipulate this class without obofuscuate the block. This is a little bit tricky.After manipulating the class i can replace te bow.class by programm in .Minecraft... 

  Is there an other way? Do somebody now an program to reobofuscuate the Class instead of programming obofuscuated code in 1.14.4.

 

Thanks for your help. 

 

  • Quote

Share this post


Link to post
Share on other sites

DaemonUmbra    356

DaemonUmbra

DaemonUmbra    356

  • Reality Controller
  • DaemonUmbra
  • Forum Team
  • 356
  • 6357 posts
Posted October 17

This is sounding like you want your block to sustain fire but not be consumed by fire.

  • 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

    • solitone
      Distinguish singleplayer vs. multiplayer

      By solitone · Posted 27 minutes ago

      Ok, although I can’t crash the server. I don’t even get an exception with my code. And when I get an exception (when I break a computer block and the breakBlock method is executed) the server does not crash.   I’m not objecting what you’re saying. I’m just confused. I’m trying to understand why I don’t crash the server. Is it because I’m testing it running both the server and the client through IntelliJ IDEA (i.e. via runServer and runClient Gradle tasks)? Still, I have also tried with client and server running on two different machines, and the breakBlock method does not crash the server, it just throw an uncaught exception. So perhaps does it depend on the java version?   Thanks
    • DaemonUmbra
      Forge 1.12.2 Installer Crash

      By DaemonUmbra · Posted 44 minutes ago

      Please read the Logs section of my signature below and provide the appropriate log in the appropriate manner.
    • Choonster
      [1.14.4] [Solved] Persisting player health on dimension change

      By Choonster · Posted 1 hour ago

      Yes. The client loses the attribute (which may be a Vanilla bug, I'm not sure), but the server retains the correct value and re-syncs it to the client.
    • DragonITA
      [1.14.4] Why minecraft with mod dont want start?

      By DragonITA · Posted 1 hour ago

      But who i make a misstake
    • DragonITA
      [1.14.4] Why minecraft with mod dont want start?

      By DragonITA · Posted 1 hour ago

      Yes   No, but is similar
  • Topics

    • solitone
      6
      Distinguish singleplayer vs. multiplayer

      By solitone
      Started Thursday at 08:20 PM

    • NoMercyPro
      1
      Forge 1.12.2 Installer Crash

      By NoMercyPro
      Started 2 hours ago

    • FireController1847
      6
      [1.14.4] [Solved] Persisting player health on dimension change

      By FireController1847
      Started 5 hours ago

    • DragonITA
      6
      [1.14.4] Why minecraft with mod dont want start?

      By DragonITA
      Started 14 hours ago

    • fump
      1
      Unstable ModPack 1.12.2

      By fump
      Started 9 hours ago

  • Who's Online (See full list)

    • plugsmustard
    • DavidM
    • loordgek
    • Ocelot
    • Choonster
    • ShetiPhian
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.14.4] Class Transformer
  • Theme
  • Contact Us
  • Discord

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