Cuberite Forum

Full Version: Monster Damage Customizable
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I'm new in the comunity, my nickname is OdnetninI.
Since some weeks, i was looking the code, and i see:

There is a monsters.ini file. It contains, health, attack range, attack rate, ...
Later, I saw the plugin Core/difficulties.lua and I see that it has monster difficulty damage.

Why don't we, put difficulty damage inside monsters.ini? If a user will want to change the damage of a mob, he could change it without edit lua code.

What do you think?

EDIT:
For example:

[Enderman]
AttackRange=2.0
AttackRate=1
AttackDamage_Easy=4.0
AttackDamage_Normal=7.0
AttackDamage_Hard=10.0
SightDistance=25.0
MaxHealth=40
Hi,

I'm new to the community and code too but I think this is more than possible although I don't know any lua Smile

The first thing I thought of was, of course, a c++ implementation of this but since there is already a plugin for this...
I think Vanilla does it different. In vanilla minecraft each difficulty has a number
Quote:Peacefull = 0.00
Easy = 0.75
Normal = 1.50
Hard = 2.25

I think we should do something as well with those numbers to get the right amount of damge.
This is a very good idea. STR_Warrior would you be so kind and open an issue for that. I think it's easy. Or you could just start codingBig Grin
(05-19-2014, 02:33 AM)STR_Warrior Wrote: [ -> ]I think Vanilla does it different. In vanilla minecraft each difficulty has a number
Quote:Peacefull = 0.00
Easy = 0.75
Normal = 1.50
Hard = 2.25

I think we should do something as well with those numbers to get the right amount of damge.

Better than mine, XD

And i think, in the API, must be added a fuction to add new difficulties from lua. It could be very good.
(05-19-2014, 02:40 AM)SphinxC0re Wrote: [ -> ]This is a very good idea. STR_Warrior would you be so kind and open an issue for that. I think it's easy. Or you could just start codingBig Grin

I quickly created this: https://github.com/mc-server/MCServer/issues/1006
Peaceful = 0
Easy = 1
Normal = 2
Hard = 3
See /difficulty command
http://minecraft.gamepedia.com/Difficulty
http://minecraft.gamepedia.com/Commands#...y_commands
Yea you use that to set the difficulty but if you use the debug screen in the latest snapshot you'll see that the numbers I mentioned: [Image: 8RkBT.jpg]
(05-19-2014, 02:57 AM)STR_Warrior Wrote: [ -> ]Yea you use that to set the difficulty but if you use the debug screen in the latest snapshot you'll see that the numbers I mentioned: [Image: 8RkBT.jpg]

But it is different. It is the Local difficulty. Local difficulty is the extra difficulty of a region. It's grow with the time you spend in that zone.

EDIT:

http://minecraft.gamepedia.com/Debug_scr..._.281.8.29
Local Difficulty Shows the difficulty of the chunk the player is in. See Difficulty on how this works. Followed by the amount of in-game days the player has been in the world, see Day-night cycle for more information.
(05-19-2014, 03:00 AM)OdnetninI Wrote: [ -> ]
(05-19-2014, 02:57 AM)STR_Warrior Wrote: [ -> ]Yea you use that to set the difficulty but if you use the debug screen in the latest snapshot you'll see that the numbers I mentioned: [Image: 8RkBT.jpg]

But it is different. It is the Local difficulty. Local difficulty is the extra difficulty of a region. It's grow with the time you spend in that zone.

EDIT:

http://minecraft.gamepedia.com/Debug_scr..._.281.8.29
Local Difficulty Shows the difficulty of the chunk the player is in. See Difficulty on how this works. Followed by the amount of in-game days the player has been in the world, see Day-night cycle for more information.
That is true. Smile
Local Difficulty is saved for each Chunk. When you spend time in an area, this area of the world become harder (more and stronger mobs)
http://minecraft.gamepedia.com/Difficult...difficulty