Content: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Background: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Pattern: Blank Waves Notes Sharp Wood Rockface Leather Honey Vertical Triangles
Welcome to TerraFirmaCraft Forums

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • Announcements

    • Dries007

      ATTENTION Forum Database Breach   03/04/2019

      There has been a breach of our database. Please make sure you change your password (use a password manager, like Lastpass).
      If you used this password anywhere else, change that too! The passwords themselves are stored hashed, but may old accounts still had old, insecure (by today's standards) hashes from back when they where created. This means they can be "cracked" more easily. Other leaked information includes: email, IP, account name.
      I'm trying my best to find out more and keep everyone up to date. Discord (http://invite.gg/TerraFirmaCraft) is the best option for up to date news and questions. I'm sorry for this, but the damage has been done. All I can do is try to make sure it doesn't happen again.
    • Claycorp

      This forum is now READ ONLY!   01/20/2020

      As of this post and forever into the future this forum has been put into READ ONLY MODE. There will be no new posts! A replacement is coming SoonTM . If you wish to stay up-to-date on whats going on or post your content. Please use the Discord or Sub-Reddit until the new forums are running.

      Any questions or comments can be directed to Claycorp on either platform.
Liukaner

How to edit mobs HP and damage?

10 posts in this topic

Hello,

I want edit monsters from this mod but I have problem.

I go to https://github.com/Deadrik/TFCraft/blob/master/src/Common/com/bioxx/tfc/Core/TFC_MobData.java

Copy all and edit  public static final int ZOMBIE_HEALTH = 450;  to  public static final int ZOMBIE_HEALTH = 50; 

And save as TFC_MobData.java and compile to TFC_MobData.class and replace in terrafirmacraft.jar but Zombie have still 450 hp ;/

0

Share this post


Link to post
Share on other sites

I don't think you can just replace the single class file in the .jar file. I'm fairly certain you have to recompile the mod as a whole again using gradle.

1

Share this post


Link to post
Share on other sites

If you are wanting to adjust properties of mobs in a manner that is acceptable to the modded community, a good mod to use is Mob Properties by Father Toast. Directly editing a mod is not the direction you will want to take.

1

Share this post


Link to post
Share on other sites
12 minutes ago, JAWolfe said:

If you are wanting to adjust properties of mobs in a manner that is acceptable to the modded community, a good mod to use is Mob Properties by Father Toast. Directly editing a mod is not the direction you will want to take.

I make server with Terrafirmacraft, witchery, thaumcraft and mobs from witchery and thaumcraft are usless ;/ I want make it usefull back :)

0

Share this post


Link to post
Share on other sites

You're going the wrong direction then. You need to increase the health of other mobs, not decrease the health of TFC mobs. Otherwise you're just going to be able to kill everything with your fists in one hit and all the mobs will barely do any damage to you.

1

Share this post


Link to post
Share on other sites
7 minutes ago, Kittychanley said:

You're going the wrong direction then. You need to increase the health of other mobs, not decrease the health of TFC mobs. Otherwise you're just going to be able to kill everything with your fists in one hit and all the mobs will barely do any damage to you.

But I want use mod: mobstats and increase all mobs damage and HP.And then the monsters from TFC become too strong.

Edited by Liukaner
0

Share this post


Link to post
Share on other sites

Use Mob Properties to increase the health and damage of specific mobs rather than using an out-dated mod.

1

Share this post


Link to post
Share on other sites
12 minutes ago, JAWolfe said:

Use Mob Properties to increase the health and damage of specific mobs rather than using an out-dated mod.

Can You help mi with only one? And then I can edit all :P

I mean, I need example.

This is raw file for vampire:

{
  "_name": "witchery.vampire",
  "drops": [],
  "pre_stats": [],
  "stats": []
}

Normal vampire have 10HP/2-5dmg attack and I want vampire have 500HP and 50 dmg attack.

I will be grateful 

Edited by Liukaner
0

Share this post


Link to post
Share on other sites

You can look at the modpack Terrafirmapunk on the FTB third party packs for examples of Mob Properties and JAS. Here is an example of a Redcap mob from the Twilight Forest mod being adjusted to TFC levels.

{
  "_name": "TwilightForest.Redcap",
  "drops": [],
  "pre_stats":[],
  "stats": 
  [
	{ "function": "name", "value": "Redcap Scavenger"},
	{ "function": "equip", "id": "terrafirmacraft:item.Stone Knife", "slot": 0, "override": true },
	{ "function": "equip", "id": "terrafirmacraft:item.bootsCloth", "slot": 1, "override": true },
	{ "function": "modifier", "attribute": "generic.maxHealth", "value": 600, "override": true },
	{ "function": "modifier", "attribute": "generic.attackDamage", "value": 150~250 },
	{ "function": "potion", "id": 6, "amplifier": 2000, "duration": 1, "override": true, "ambient": true }
  ]
}

To do what you are wanting, use the following:

{
  "_name": "witchery.vampire",
  "drops": [],
  "pre_stats": [],
  "stats": 
  [
	{ "function": "modifier", "attribute": "generic.maxHealth", "value": 500, "override": true },
	{ "function": "modifier", "attribute": "generic.attackDamage", "value": 40~60 }
  ]
}

Father Toast has a wiki page for Mob Properties. MOB PROPERTIES WIKI

Hopefully with the wikis that I have suggested and examples from the Terrafirmapunk pack you will be able to figure out how to do everything you are wanting.

1

Share this post


Link to post
Share on other sites
3 minutes ago, JAWolfe said:

You can look at the modpack Terrafirmapunk on the FTB third party packs for examples of Mob Properties and JAS. Here is an example of a Redcap mob from the Twilight Forest mod being adjusted to TFC levels.


{
  "_name": "TwilightForest.Redcap",
  "drops": [],
  "pre_stats":[],
  "stats": 
  [
	{ "function": "name", "value": "Redcap Scavenger"},
	{ "function": "equip", "id": "terrafirmacraft:item.Stone Knife", "slot": 0, "override": true },
	{ "function": "equip", "id": "terrafirmacraft:item.bootsCloth", "slot": 1, "override": true },
	{ "function": "modifier", "attribute": "generic.maxHealth", "value": 600, "override": true },
	{ "function": "modifier", "attribute": "generic.attackDamage", "value": 150~250 },
	{ "function": "potion", "id": 6, "amplifier": 2000, "duration": 1, "override": true, "ambient": true }
  ]
}

To do what you are wanting, use the following:


{
  "_name": "witchery.vampire",
  "drops": [],
  "pre_stats": [],
  "stats": 
  [
	{ "function": "modifier", "attribute": "generic.maxHealth", "value": 500, "override": true },
	{ "function": "modifier", "attribute": "generic.attackDamage", "value": 40~60 }
  ]
}

Father Toast has a wiki page for Mob Properties. MOB PROPERTIES WIKI

Hopefully with the wikis that I have suggested and examples from the Terrafirmapunk pack you will be able to figure out how to do everything you are wanting.

Thanks, I love You!

0

Share this post


Link to post
Share on other sites