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
  • [solved] Flamability
1.13 Update Notes for Mod Creators
Sign in to follow this  
Followers 0
WaitingToCompile

[solved] Flamability

By WaitingToCompile, October 10, 2012 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

WaitingToCompile    0

WaitingToCompile

WaitingToCompile    0

  • Tree Puncher
  • WaitingToCompile
  • Members
  • 0
  • 11 posts
Posted October 10, 2012

I was wondering how you make a block burn and control the fire spread rate of a block you have added. In modloader it was along the lines of

((int[]) (ModLoader.getPrivateValue(BlockFire.class, Block.fire, 0)))[500] = 70;

in the load method, but that doesn't work in forge for obvious reasons. Does anyone have any advice on how to do this in FML?

  • Quote

Share this post


Link to post
Share on other sites

atrain99    68

atrain99

atrain99    68

  • World Shaper
  • atrain99
  • Forge Modder
  • 68
  • 1502 posts
Posted October 10, 2012

Er, there may be a flag or something in the game registry.

  • Quote

Share this post


Link to post
Share on other sites

LexManos    1519

LexManos

LexManos    1519

  • Reality Controller
  • LexManos
  • Forge Code God
  • 1519
  • 8571 posts
Posted October 11, 2012

There are hooks in Forge for it and have been for quite a while, go take a look at BlockFire.. fairly logical place to start..

  • Quote

Share this post


Link to post
Share on other sites

WaitingToCompile    0

WaitingToCompile

WaitingToCompile    0

  • Tree Puncher
  • WaitingToCompile
  • Members
  • 0
  • 11 posts
Posted October 12, 2012

I was looking at blockfire late at night a while ago, must have missed something. I'm very new to forge and modding in general, and my java knowleadge isn't exacly as abundant as I'd like it to be.

 

EDIT: I've got it working, I was trying to make it part of public static final part of the block rather than putting it in the init section.

  • 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

    • diesieben07
      [1.12.2] How do i make it so my sword renders in my mobs hand?.

      By diesieben07 · Posted 4 minutes ago

      Post updated code, your entire mob class.
    • J0WAY
      [1.12.2] How do i make it so my sword renders in my mobs hand?.

      By J0WAY · Posted 6 minutes ago

      Well to be honest at this point i really don't know what i'm doing and it's not working still when i call those methods so if you could show me an example of what to do that would be amazing, Also are mobs suppose to have inventories because if they are then my doesn't have one and i think the main problem in this is it can't find which hand to set the sword to so that's why it isn't spawning with the mob and it just keeps denying it, Again i don't know how to fix because like i said before i'm only good at blocks and items and i just got into making mobs like 3 days ago.
    • Sfgg
      NO SE ME ABRE

      By Sfgg · Posted 11 minutes ago

      No lo entiendo
    • saxon564
      [1.14.4] [UNSOLVED] Server Thread Freezes After Entity Explodes

      By saxon564 · Posted 21 minutes ago

      I feel like I've done that before with no positive results, but that may have been for a different issue, so I will give it a shot tonight and see if that works.
    • diesieben07
      [1-14-newer] how to make a button with a specified texture ?

      By diesieben07 · Posted 30 minutes ago

  • Topics

    • J0WAY
      20
      [1.12.2] How do i make it so my sword renders in my mobs hand?.

      By J0WAY
      Started Thursday at 09:10 PM

    • Sfgg
      2
      NO SE ME ABRE

      By Sfgg
      Started 2 hours ago

    • saxon564
      8
      [1.14.4] [UNSOLVED] Server Thread Freezes After Entity Explodes

      By saxon564
      Started Yesterday at 05:11 AM

    • matt1999rd
      10
      [1-14-newer] how to make a button with a specified texture ?

      By matt1999rd
      Started 3 hours ago

    • juls07
      1
      help please

      By juls07
      Started 56 minutes ago

  • Who's Online (See full list)

    • Vorquel
    • DaemonUmbra
    • anothertime
    • diesieben07
    • zuckpad
    • TheKA3YC
    • juls07
    • Sfgg
    • gouldendorf
    • salvestrom
    • saxon564
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [solved] Flamability
  • Theme
  • Contact Us
  • Discord

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