So, as many of you probably know, minecraft mobs are, well, Dumb. They're complete idiots. And it's fun and all putting them in traps, but honestly, they're not that big of a challenge. (I'm talking about enemy mobs, btw)
(Not that our blocky pigs are all too intelligent either)
So, what i propose is a new mod, which changes the AI of mobs. I think a pathfinder would do the trick, but i am not a coder (Not a good one, at least) so i don't know how simple or tough this will be. Here is what we already have:
-3 DIFFICULTY levels (We exclude peaceful from this entire post)
-Each level changes damage, health, and spawn rate (I think?)
-Mobs are "dumb"
Here is what a propose will be made:
-3 new difficulty levels, only thing changed is that with each one the mobs will also be smarter(Better pathfinder(Not just charging at the player)).
-They would be called:
-Easy++
-Medium++
-Hard++
++ stands for the enhanced AI(Artificial Intelligence, for all who don't know)
-It would toggle like this: Peaceful, Easy, Easy++, Medium, Medium++, Hard, Hard++
-On any ++, the spawn rate would increase by a certain amount.
-On medium++, arrows will travel faster than the current speed.
I think this would be great, and would easily be the greatest mod ever. Yes, it might be hard to program, but it will be a HUGE advancement, and maybe even Notch will use that code for the future.
(I used the search feature, and something like this didn't show up)
(Please don't comment about the nightmare mod, that mod only increases spawn rates, which is not what this is all about)
dude make it yourself, this would take several hours to process and would need to be updated atleast once a week
my point is that nobody wants to spend their time to do this no matter how amazing it would be
How would you know that someone doesn't want to make this mod? And I did mention i am not a good coder/programmer, and there would be no reason to update it "At least once a week".
Please, troll, be quiet.
LOL im not a troll
nobody would want to spend time making something that needs to be updated once a week BECAUSE OF MINECRAFT UPDATES RETARD!
for one if you know anything about programming AI, this would take alot of time to code. Making AI able to think in any way possible other than just making them charge at you is hard, making them avoid attacks like that is sort of hard, sure i would like them to be able to walk around a maze to get to me, but that is pretty hard to do dude! im not a troll im just someone who is smart enough to know that people probably wont spend time doing this
Making a mob go through a maze wouldn't be too hard.
An iterative version of Flood Fill until it hits the desired location would solve it easily (but it would have to be restricted to a certain area; otherwise you could box yourself in and make it flood fill the entire world.
Maybe you could make some kind of modified version in 3D that accounts for the ability to move up indefinitely, and down enough to... maybe take only half a heart of health off max?
LOL im not a troll
nobody would want to spend time making something that needs to be updated once a week BECAUSE OF MINECRAFT UPDATES RETARD!
for one if you know anything about programming AI, this would take alot of time to code. Making AI able to think in any way possible other than just making them charge at you is hard, making them avoid attacks like that is sort of hard, sure i would like them to be able to walk around a maze to get to me, but that is pretty hard to do dude! im not a troll im just someone who is smart enough to know that people probably wont spend time doing this
People make plenty of other mods despite needing to be updated, why don't you go get mad at them instead.
Yes, updates only change certain pieces of the code. There are only a few mods that need to be updated with every update, and the people who make them know how much work they must put into them.
I think that some things could easily make mobs smarter, simple(er) things that wouldn't be as hard to code as other things. like, making mobs have an 80% rate of jumping over 2 blocks of air(or lava), and, if its more then that, they have an 80% chance of stopping before and looking for another way to reach their destination.
I don't think this would be as hard to code as say the flood-maze thing, so it should be in minecraft eventually.
Also, timeroot, that certain area you are thinking about is the max distance in which mobs can see you, which i think is 16 blocks, not sure though.
Most of the code that controls mobs isn't that complicated, I'm still playing around with it for the moment, but when I have something more solid I'll get it posted.
Did you decompile minecraft by yourself, or did you use Minecraft Coder Pack? Admittedly, this is one area I'm a little lacking in.
Quote from papareborn »
I think this would be great, and would easily be the greatest mod ever. Yes, it might be hard to program, but it will be a HUGE advancement, and maybe even Notch will use that code for the future.
(I used the search feature, and something like this didn't show up)
(Please don't comment about the nightmare mod, that mod only increases spawn rates, which is not what this is all about)
I agree, and would love to start working on it, as I find artificial intelligence to be the most interesting aspect of programming. Once I get my hands on the code, it's really a matter of learning all the different variables and the different data structures that all the information is stored in. Then the code wouldn't be that difficult. It depends how they're coded. If there were ways for mobs to communicate with each other, then we're in like flint.
I know you mentioned a few ideas, but how about more specifically? How hard do you want to make this? I'm pretty sure I could push it to the point where the player is never safe. Pathfinding isn't a bad idea, but would have to be worked so mobs don't try to circle entire mountains to get to you.
+Creepers, when encountering a wall and within a certain distance of the player, will explode to destroy the wall. It will communicate this to other mobs (so they back off and are not damaged by the explosion).
+Skeletons will try to maintain a certain distance from the player.
+When one mob visually sees the player, they will alert all mobs in a fifty block radius to this.
+Wolfendale has a good suggestion with having zombies go beserk during the daytime. Not sure to what extent.
+Perhaps make it when Skeletons get within a five block range of Spiders, they both are removed and replaced by a mounted spider.
EDITS:
+Re-implement giants. Perhaps as generals where other mobs will follow behind them, and have creepers march in front.
*Also there has been some talk about Creepers having a different path finding, an actually ambushing the player. If this is true, there might be the possibility of doing some embellishment of this code.
Before I start going into detail, I would like to reply to the video that has been posted.
First of all, love the textures =P
k, it seems you have done a excellent job in changing the mob AI to make mobs kill each other in day. Really, I just have a couple questions:
1. Do enemy mobs attack friendly mobs during the day?
2. Is it possible to make them team up with fellow species?
3. Is it possible to change their stats during certain times of the day?
I think it would be great to be able to do that (3) because maybe during the day all mobs would walk slower, due to them being necro-creatures (necro as in nighttime).
Ok, a list of ideas tha thave to do with AI:
-When a mob has visual sight of the player, a sound is made (scream?)
-mobs can see to a distance of 32 blocks(more with every increase in difficulty)
-mobs have a chance to avoid arrows (generate random # 1-100, if above 95, distance from arrow to mob = 1 block)(Or something like that)
-mob's pathfinder can have 15 turns(More with increase of difficulty). This means that like, if you place a mob in a maze, it could make 15 turns until it found it's target. if it doesn't find it, it would simply go in a random direction, or, if it's daytime, it would find the closest mob to kill. otherwise it would just wander around aimlessly.
-when there are over X arrows in a block, it gets destroyed (different for different blocks)
-When there are 3+ mobs in an area(9x9, center is mob), they become a team, meaning they stick together(More) and if one sees you they all begin to chase you down.
-In a team, max turns available is 35
-make friendly mobs run away from enemy mobs
-if enemy mobs are near an item, they will equip the best possible(iron>gold armor, stone>wood sword. damage/protection goes towards stats)
-mobs prefer to team up on you then kill other mobs in the area.
I think this is it, of course i am not asking you for all of them, as a matter of fact, i am not asking for any. But if you are kind enough to take this into consideration, I think this mod will go a long way to make minecraft a whole lot more interesting.
LOL im not a troll
nobody would want to spend time making something that needs to be updated once a week BECAUSE OF MINECRAFT UPDATES RETARD!
for one if you know anything about programming AI, this would take alot of time to code. Making AI able to think in any way possible other than just making them charge at you is hard, making them avoid attacks like that is sort of hard, sure i would like them to be able to walk around a maze to get to me, but that is pretty hard to do dude! im not a troll im just someone who is smart enough to know that people probably wont spend time doing this
You're dumb.
It's not that hard to give them better AI.
If you want to know any of my other findings just email me or something. I do find this all really interesting and have ideas of my own that I'm working on with the AI. Currently, zombies and skeletons seeking out light and destroying torches. Woop
Email'd
Destroying torches is a pretty cool idea.
Quote from papareborn »
Ok, a list of ideas tha thave to do with AI:
-When a mob has visual sight of the player, a sound is made (scream?)
-mobs can see to a distance of 32 blocks(more with every increase in difficulty)
-mobs have a chance to avoid arrows (generate random # 1-100, if above 95, distance from arrow to mob = 1 block)(Or something like that)
-mob's pathfinder can have 15 turns(More with increase of difficulty). This means that like, if you place a mob in a maze, it could make 15 turns until it found it's target. if it doesn't find it, it would simply go in a random direction, or, if it's daytime, it would find the closest mob to kill. otherwise it would just wander around aimlessly.
-when there are over X arrows in a block, it gets destroyed (different for different blocks)
-When there are 3+ mobs in an area(9x9, center is mob), they become a team, meaning they stick together(More) and if one sees you they all begin to chase you down.
-In a team, max turns available is 35
-make friendly mobs run away from enemy mobs
-if enemy mobs are near an item, they will equip the best possible(iron>gold armor, stone>wood sword. damage/protection goes towards stats)
-mobs prefer to team up on you then kill other mobs in the area.
I think this is it, of course i am not asking you for all of them, as a matter of fact, i am not asking for any. But if you are kind enough to take this into consideration, I think this mod will go a long way to make minecraft a whole lot more interesting.
Some them are probably really difficult, but I have no idea at this point. Once I decipher the code, it shouldn't be too hard to say what's going on.
Yes, i just brought up everything i talked about with some other guys. Really the main ones are the 15 turns, the changing of line of sight, and overall movement capabilities.
I'm glad to hear that the AI code is simple. Maybe this mod will be possible =D
Yes, i just brought up everything i talked about with some other guys. Really the main ones are the 15 turns, the changing of line of sight, and overall movement capabilities.
I'm glad to hear that the AI code is simple. Maybe this mod will be possible =D
As Wolfendale said, pathfinding is already there, which is good.
The only change to line of sight is increasing it from 16 to 32? Or would 64 be better? (Not sure how high it should go). Or maybe change with difficulty?
A cool addition to the pathfinding is perhaps after fifteen turns the creeper explodes if within certain distance from the player, say 8?
EDIT: Yeaaaaaaaaaaaaah, no. =[ Still working on it.
Also, after tonight progress might be slow because I'm coming down with a cold, and I have finals in a week.
(Not that our blocky pigs are all too intelligent either)
So, what i propose is a new mod, which changes the AI of mobs. I think a pathfinder would do the trick, but i am not a coder (Not a good one, at least) so i don't know how simple or tough this will be. Here is what we already have:
-3 DIFFICULTY levels (We exclude peaceful from this entire post)
-Each level changes damage, health, and spawn rate (I think?)
-Mobs are "dumb"
Here is what a propose will be made:
-3 new difficulty levels, only thing changed is that with each one the mobs will also be smarter(Better pathfinder(Not just charging at the player)).
-They would be called:
-Easy++
-Medium++
-Hard++
++ stands for the enhanced AI(Artificial Intelligence, for all who don't know)
-It would toggle like this: Peaceful, Easy, Easy++, Medium, Medium++, Hard, Hard++
-On any ++, the spawn rate would increase by a certain amount.
-On medium++, arrows will travel faster than the current speed.
I think this would be great, and would easily be the greatest mod ever. Yes, it might be hard to program, but it will be a HUGE advancement, and maybe even Notch will use that code for the future.
(I used the search feature, and something like this didn't show up)
(Please don't comment about the nightmare mod, that mod only increases spawn rates, which is not what this is all about)
my point is that nobody wants to spend their time to do this no matter how amazing it would be
Please, troll, be quiet.
nobody would want to spend time making something that needs to be updated once a week BECAUSE OF MINECRAFT UPDATES RETARD!
for one if you know anything about programming AI, this would take alot of time to code. Making AI able to think in any way possible other than just making them charge at you is hard, making them avoid attacks like that is sort of hard, sure i would like them to be able to walk around a maze to get to me, but that is pretty hard to do dude! im not a troll im just someone who is smart enough to know that people probably wont spend time doing this
An iterative version of Flood Fill until it hits the desired location would solve it easily (but it would have to be restricted to a certain area; otherwise you could box yourself in and make it flood fill the entire world.
Maybe you could make some kind of modified version in 3D that accounts for the ability to move up indefinitely, and down enough to... maybe take only half a heart of health off max?
It would be feasible fo sho...
My website: http://timeroot.zxq.net/
...I have nothing else to put here, sadly. :-(
People make plenty of other mods despite needing to be updated, why don't you go get mad at them instead.
I think that some things could easily make mobs smarter, simple(er) things that wouldn't be as hard to code as other things. like, making mobs have an 80% rate of jumping over 2 blocks of air(or lava), and, if its more then that, they have an 80% chance of stopping before and looking for another way to reach their destination.
I don't think this would be as hard to code as say the flood-maze thing, so it should be in minecraft eventually.
Also, timeroot, that certain area you are thinking about is the max distance in which mobs can see you, which i think is 16 blocks, not sure though.
Did you decompile minecraft by yourself, or did you use Minecraft Coder Pack? Admittedly, this is one area I'm a little lacking in.
I agree, and would love to start working on it, as I find artificial intelligence to be the most interesting aspect of programming. Once I get my hands on the code, it's really a matter of learning all the different variables and the different data structures that all the information is stored in. Then the code wouldn't be that difficult. It depends how they're coded. If there were ways for mobs to communicate with each other, then we're in like flint.
I know you mentioned a few ideas, but how about more specifically? How hard do you want to make this? I'm pretty sure I could push it to the point where the player is never safe. Pathfinding isn't a bad idea, but would have to be worked so mobs don't try to circle entire mountains to get to you.
+Creepers, when encountering a wall and within a certain distance of the player, will explode to destroy the wall. It will communicate this to other mobs (so they back off and are not damaged by the explosion).
+Skeletons will try to maintain a certain distance from the player.
+When one mob visually sees the player, they will alert all mobs in a fifty block radius to this.
+Wolfendale has a good suggestion with having zombies go beserk during the daytime. Not sure to what extent.
+Perhaps make it when Skeletons get within a five block range of Spiders, they both are removed and replaced by a mounted spider.
EDITS:
+Re-implement giants. Perhaps as generals where other mobs will follow behind them, and have creepers march in front.
*Also there has been some talk about Creepers having a different path finding, an actually ambushing the player. If this is true, there might be the possibility of doing some embellishment of this code.
!Any other ideas?
First of all, love the textures =P
k, it seems you have done a excellent job in changing the mob AI to make mobs kill each other in day. Really, I just have a couple questions:
1. Do enemy mobs attack friendly mobs during the day?
2. Is it possible to make them team up with fellow species?
3. Is it possible to change their stats during certain times of the day?
I think it would be great to be able to do that (3) because maybe during the day all mobs would walk slower, due to them being necro-creatures (necro as in nighttime).
Ok, a list of ideas tha thave to do with AI:
-When a mob has visual sight of the player, a sound is made (scream?)
-mobs can see to a distance of 32 blocks(more with every increase in difficulty)
-mobs have a chance to avoid arrows (generate random # 1-100, if above 95, distance from arrow to mob = 1 block)(Or something like that)
-mob's pathfinder can have 15 turns(More with increase of difficulty). This means that like, if you place a mob in a maze, it could make 15 turns until it found it's target. if it doesn't find it, it would simply go in a random direction, or, if it's daytime, it would find the closest mob to kill. otherwise it would just wander around aimlessly.
-when there are over X arrows in a block, it gets destroyed (different for different blocks)
-When there are 3+ mobs in an area(9x9, center is mob), they become a team, meaning they stick together(More) and if one sees you they all begin to chase you down.
-In a team, max turns available is 35
-make friendly mobs run away from enemy mobs
-if enemy mobs are near an item, they will equip the best possible(iron>gold armor, stone>wood sword. damage/protection goes towards stats)
-mobs prefer to team up on you then kill other mobs in the area.
I think this is it, of course i am not asking you for all of them, as a matter of fact, i am not asking for any. But if you are kind enough to take this into consideration, I think this mod will go a long way to make minecraft a whole lot more interesting.
You're dumb.
It's not that hard to give them better AI.
http://notch.tumblr.com/post/123343045/my-vision-for-survival (follow this link if you need proof)
Email'd
Destroying torches is a pretty cool idea.
Some them are probably really difficult, but I have no idea at this point. Once I decipher the code, it shouldn't be too hard to say what's going on.
I'm glad to hear that the AI code is simple. Maybe this mod will be possible =D
As Wolfendale said, pathfinding is already there, which is good.
The only change to line of sight is increasing it from 16 to 32? Or would 64 be better? (Not sure how high it should go). Or maybe change with difficulty?
A cool addition to the pathfinding is perhaps after fifteen turns the creeper explodes if within certain distance from the player, say 8?
EDIT: Yeaaaaaaaaaaaaah, no. =[ Still working on it.
Also, after tonight progress might be slow because I'm coming down with a cold, and I have finals in a week.