About
After seeing this post on reddit: http://www.reddit.com/r/Minecraft/comments/knc0b/suggestion_craft_pistons_and_a_suit_of_armor_to/
I have begun learning how to mod in order to make it so!
Currently I've got the golem and a battery craftable, when you right click the ground it spawns the golem. when you right click the golem it brings up a menu where you can give him a small set of equipment, the item on the far left is equiped in his hand. When a golem dies, it drops a depleted battery which can be recharged, and 1-5 pieces of coal.
Download
Click this link to download version 2.0 from mediafire :biggrin.gif:
Note: Requires modloader and audiomod to function (link in the installation instructions)
Installation Instructions
1) Download modloader from one of the links found here
2) Download audiomod from one of the links found here
3) Navigate to your .minecraft\bin folder (click the start menu, type %appdata%, hit enter)
4) Open minecraft.jar using a rar program (winrar, winzip, or 7zip should all work fine)
5) Install modloader by copying the files from ModLoader.zip into minecraft.jar
6) Install audiomod by copying the files from AudioMod.zip into minecraft.jar
7) Install the Golem Mod by copying all the files found in the "jar files" folder in GolemModX_X.zip to minecraft.jar
8) Delete the META-INF folder from minecraft.jar
9) Copy the files in the "resources folder" in GolemModX_X.zip to the "resources" folder in your .minecraft folder
10) Run Minecraft and make a Golem
11) Make sure to post or pm any crashes, bugs, or thoughts
Plans
Better redstone pathing (move up and down blocks)
Different types of golems made from other armor/materials:
Wood/stone golem: used for harvesting trees or ore
Gold golem: returns to a recharging station when low on power, no more reliance on coal!
Leather golem: kills friendly mobs?
Diamond golem: stands there like a boss, possibly collects your items when you die
Add strafing to his bow fighting abilities
An smp version that will be able to attack players who didn't craft it (will have to have a marker to designate who the owner is)
Hitting it with a repair hammer heals it
particle effects when in action (smoke/fire for the coal fueled ones and redstone for the golden ones)
Ideas (not officially planned)
A "backpack" where he can hold miscelaneous items that you give/throw to him (like a pack mule)
Possibly a way to give him a pick and he will mine with/for you (ideas include: he mines whatever ore you are mining, you give him an ore and he mines that ore)
Possibility for incorrect behavior when low on energy/fuel (attacks you if you hurt it, picks up/places blocks as per enderman)
Status
A golem is craftable, first crafting a battery then the golem.
Right clicking with the golem item uses it up and spawns a golem.
Right clicking on a golem opens up a menu where you can equip 3 items, coal, a repair hammer, and give him commands.
While not in his "stand" state, the golem will use coal like a furnace but at a much slower pace. Currently 64 coal gives about 55 minutes of golem use. When he runs out of coal, he behaves the same as his "stand" state.
If there is a repair hammer in his inventory, he will automatically heal. Better materials have more uses (same as other tools of the same material) and heal quicker, wood is the slowest followed by stone, then iron, diamond, and gold.
Follow means the Golem will follow you and protect you.
Guard means the Golem will stand still and attack enemies that get too close to him.
Patrol means the Golem will follow a redstone path and attack enemies that get too close to him.
Stand means the Golem will stand still, doing nothing, and using no power.
The golem can attack with a sword or bow (provided he has at least 1 arrow), using the weapon farthest to the right in his inventory (ie: he will switch to the next weapon when his current breaks)
Recipes
Golem Battery:
OR
Golem:
Repair Hammer:
Note: wood can be replaced with cobblestone, iron, diamond, and gold. Also the recipe is reversible like the one for axes and hoes.
Youtube user TakeshirenDH made a mod spotlight, and will be using this in upcoming let's play's :biggrin.gif:
Basic video:
Menu and that he can hold items:
Coal usage and the state change button
Repair hammers!
We have movement!
Update Log
And here is 2.0, with a new video :biggrin.gif: Keep in mind, he will not follow paths up and down blocks reliably.
Still having trouble moving up and down blocks while following redstone, but I'll post 2.0 in a bit then update it once I can figure that part out.
10/6/11 Figured out my issues! Apparently the mod gets confused if you run it on a world which was made with a previous version of it, not sure if it likes a world which was made before installing the mod. What this means is, in order to have him correctly follow redstone when I upload 2.0, you will have to make a new world. What this also means is I can upload 2.0 tonight!
10/5/11 GameChap made a video of my mod :biggrin.gif:, also if I can figure out the issues I'm having with redstone paths, I will post 2.0 tomorrow which will include the better gui, sounds, and redstone pathfinding for the patrol command
I think I've taken care of them spawning, and I also did a lot of work on the gui interface! Shift-clicking now works much better, shift click coal and it goes into the coal slot if it can, same with repair hammers to the repair hammer slot. Anything else goes into the inventory slots. The coal and repair hammer slots only let you put coal and hammers into them, I might change the inventory slots to only accept weapons but I like the idea of being able to give him your goal ingots to hold onto, like a pack mule.
While messing around with the sounds, I discovered I hadn't prevented golems from naturally spawning. Whoops, time to fix that!
10/2/11 Golem now follows a redstone path, but I'm having trouble getting him to go up and down blocks. Also started adding in custom sounds provided by youtube user 3daysAnd2nights
9/30/11 Started working on redstone boundaries for the patrol state. It works ok, but if the area he patrols is too small he can glitch through it. Also if he gets hit over the redstone dust he'll run off into nowhereland
9/29/11 Did a bit of optimization work, I know myself and at least one other minecrafter had the game crash when there were many golems in the loaded chunks, hopefully what I did either fixes that or increases the number your computer can handle.
9/28/11 First build is now available for download, 1.1 fixed a glitch in 1.0 where the golem wouldn't correctly run toward mobs it was supposed to attack sometimes
Lots of work on making the golem behave correctly, he's almost ready for release! Sadly, if more than one creeper gangs up on him, he's almost certain to die.
As it is, the golem (no matter the state except for standing) will seek out the closest mob to him. Soon he will prioritize He now prioritizes mobs as thus: attacking the golem > attacking the player > not hostile
In guard mode, he will not venture beyond a set radius, even if he really wants a mob that's over there.
Patroling is still random, in the future I'll implement boundaries for that.
When using a sword, he will run right up to the mob and attack it, when using a bow he will keep a set distance to the mob. I might add in strafing before releasing the first build, I definitely want to add it for the next build.
I made it so now the golem picks his equiped item from left to right, so if you have a sword then a bow he'll use the sword first. He'll only use a bow if he has arrows, and if he doesnt have a sword or bow he'll use his fists. What this means is, you can have him use a bow primarily and switch to a sword when he runs out of arrows, or vice versa. He'll also go to the next sword if his current one breaks.
9/27/11 The golem can now attack using an item, tool, or bow :biggrin.gif:, just have to write the code so he knows what to attack
In follow mode, the golem won't get too close and inadvertently push you off a ledge and he will teleport beside you if you go too far away (this might change if I get around to deconstructing the code behind it)
In guard mode, he will seek out any mob in a specific radius and if there are none to attack he returns to the spot where you set him to his guard state.
In patrol mode, he randomly wanders and attacks mobs in the same radius as his guard mode.
9/26/11 The golem now follows you like a wolf does if he is in his follow state :biggrin.gif:
And now the repair hammers cause the golem to heal automatically. Each tool use heals half a heart, the tool is only used if it is equiped to the golem and he is missing health, each tool heals at a different speed (wood<stone<iron<diamond<gold) but each tool has the same uses as a pickaxe/sword/etc of the same material (gold<wood<stone<iron<diamond). So gold heals the quickest, but is used up the quickest, while diamond heals the second quickest but is used up the slowest.
Fixed some issues, he now doesn't revert to the stand state but will behave as if he did until more fuel is given. Also I added a real health bar to his menu so you can view it instead of just the 10 blank hearts I tuck in the image to help place everything visually.
9/25/11 The golem now uses coal like a furnace :biggrin.gif: currently a stack of 64 gives you about an hour of use, but I think I'll mess around with balancing that laters
Somehow, in the process of adding the button, I messed up the inventory D: gonna take some time to fix Fixed it :biggrin.gif:
9/24/11 I think the out of memory was because I had too many golems at once, will have to test more but that's the only time I've managed to recreate it.
In other news, I got the golems inventory and all to save when you quit the game, and added a button that sets his state (follow, patrol, guard, stand). Now I just have to code what he does for each state and we should be all set :biggrin.gif:
9/23/11 While testing, I left the window open for a while and then java ran out of memory D:
No idea why that happened but hopefully I can track it down.
Support
Feel free to leave comments, suggestions, possible art assets, or offers to help :biggrin.gif:
Like the reddit post here to show your support :biggrin.gif:
The mortal language doesn't allow me to properly explain this mod's awesomeness.
However, I do have two questions:
Will you be adding more types of Golems?
If this is a WIP, why isn't it in the WIP section?
Thanks :biggrin.gif:
I plan to either add golems made of different armors, or have the golem wear armor that you can change out.
I didn't realize there was a WIP section, if I get around to it I may ask to move to there but there is a download link to a version that fully works so it's not just starting out or anything
Hey you want a installation video for the mod? just reply to me in the comments for your thoughts.
It couldn't hurt, personally I think installation is straightforward but I have seen comments all over the place asking how to properly install modloader so I'm sure at least someone would benefit from it. And it is going to get more complex when I upload the next build which has sounds.
It couldn't hurt, personally I think installation is straightforward but I have seen comments all over the place asking how to properly install modloader so I'm sure at least someone would benefit from it. And it is going to get more complex when I upload the next build which has sounds.
Alright then should I wait until you update or should i just make the video?
This is an epic mod. I love the idea of having a personal Servant/Defender. My only suggestions:
1) You should totally make a server version (if that's needed to run it on a server, i'm not sure.)It could be really useful for defending your home from griefers who want to steal your stuff! But that would also mean it would have to be hostile towards any players attacking it (or those that aren't the player who created it).
2) Golems should drop experience orbs when they die! Then you could have a battle experience in fully lit chambers. This is one problem I have. I usually make dungeons, just a string of rooms with puzzles, etc. And I'd love for there to be a battle aspect to these but I can't take the chance that a creeper will blow the room to high heaven. So if you made the golems programmable to attack all non-creator players, it could be like an Arena.
3) I like the idea of different golems doing different things. like if you gave them a different item they did different things. If they have an ax, they get wood, a sword they defend/kill mobs, and a pick they mine a designated area, etc.
I understand this might be a bit of a challenge, so if you need modding help, I would be happy to learn modding and lend a hand if needed.
Rollback Post to RevisionRollBack
Life's a journey. I don't wanna go through it following a roadmap.
This is an epic mod. I love the idea of having a personal Servant/Defender. My only suggestions:
1) You should totally make a server version (if that's needed to run it on a server, i'm not sure.)It could be really useful for defending your home from griefers who want to steal your stuff! But that would also mean it would have to be hostile towards any players attacking it (or those that aren't the player who created it).
2) Golems should drop experience orbs when they die! Then you could have a battle experience in fully lit chambers. This is one problem I have. I usually make dungeons, just a string of rooms with puzzles, etc. And I'd love for there to be a battle aspect to these but I can't take the chance that a creeper will blow the room to high heaven. So if you made the golems programmable to attack all non-creator players, it could be like an Arena.
3) I like the idea of different golems doing different things. like if you gave them a different item they did different things. If they have an ax, they get wood, a sword they defend/kill mobs, and a pick they mine a designated area, etc.
I understand this might be a bit of a challenge, so if you need modding help, I would be happy to learn modding and lend a hand if needed.
Once I get around to learning smp modding I plan to have them behave similar to wolves, where they'll attack if they have been attacked. Though I do like the idea of having them have at least 1 state where they will attack anyone on sight that isn't the creator, though it would be hard to implement without adding several new states (unless I were to just add an attack-players button/checkbox)
I'm not sure how I feel about making them harvest stuff for you, it would require a lot more calculations per tick than the current iteration (finding the nearest harvestable block in a certain radius gets exponentially larger as said radius increases). But it does fit the feel of a golem (he is basically a slave/robot)
Looks awesome. Definitely downloading. And I doubt it, but do the hammers stack? I could imagine balancing issues with that, I just don't like the idea of having to go back and keep giving them to him.
Looks awesome. Definitely downloading. And I doubt it, but do the hammers stack? I could imagine balancing issues with that, I just don't like the idea of having to go back and keep giving them to him.
At the moment they do not stack, though I might add a feature where he will automatically equip one from his inventory if the current one runs out.
Version 2.0
About the mod
Download
Installation Instructions
Plans
Ideas
Status
Recipes
Videos
Update Log
About
After seeing this post on reddit:
http://www.reddit.com/r/Minecraft/comments/knc0b/suggestion_craft_pistons_and_a_suit_of_armor_to/
I have begun learning how to mod in order to make it so!
Currently I've got the golem and a battery craftable, when you right click the ground it spawns the golem. when you right click the golem it brings up a menu where you can give him a small set of equipment, the item on the far left is equiped in his hand. When a golem dies, it drops a depleted battery which can be recharged, and 1-5 pieces of coal.
Download
Click this link to download version 2.0 from mediafire :biggrin.gif:
Note: Requires modloader and audiomod to function (link in the installation instructions)
Installation Instructions
1) Download modloader from one of the links found here
2) Download audiomod from one of the links found here
3) Navigate to your .minecraft\bin folder (click the start menu, type %appdata%, hit enter)
4) Open minecraft.jar using a rar program (winrar, winzip, or 7zip should all work fine)
5) Install modloader by copying the files from ModLoader.zip into minecraft.jar
6) Install audiomod by copying the files from AudioMod.zip into minecraft.jar
7) Install the Golem Mod by copying all the files found in the "jar files" folder in GolemModX_X.zip to minecraft.jar
8) Delete the META-INF folder from minecraft.jar
9) Copy the files in the "resources folder" in GolemModX_X.zip to the "resources" folder in your .minecraft folder
10) Run Minecraft and make a Golem
11) Make sure to post or pm any crashes, bugs, or thoughts
Plans
Better redstone pathing (move up and down blocks)
Different types of golems made from other armor/materials:
Wood/stone golem: used for harvesting trees or ore
Gold golem: returns to a recharging station when low on power, no more reliance on coal!
Leather golem: kills friendly mobs?
Diamond golem: stands there like a boss, possibly collects your items when you die
Add strafing to his bow fighting abilities
An smp version that will be able to attack players who didn't craft it (will have to have a marker to designate who the owner is)
Hitting it with a repair hammer heals it
particle effects when in action (smoke/fire for the coal fueled ones and redstone for the golden ones)
Ideas (not officially planned)
A "backpack" where he can hold miscelaneous items that you give/throw to him (like a pack mule)
Possibly a way to give him a pick and he will mine with/for you (ideas include: he mines whatever ore you are mining, you give him an ore and he mines that ore)
Possibility for incorrect behavior when low on energy/fuel (attacks you if you hurt it, picks up/places blocks as per enderman)
Status
A golem is craftable, first crafting a battery then the golem.
Right clicking with the golem item uses it up and spawns a golem.
Right clicking on a golem opens up a menu where you can equip 3 items, coal, a repair hammer, and give him commands.
While not in his "stand" state, the golem will use coal like a furnace but at a much slower pace. Currently 64 coal gives about 55 minutes of golem use. When he runs out of coal, he behaves the same as his "stand" state.
If there is a repair hammer in his inventory, he will automatically heal. Better materials have more uses (same as other tools of the same material) and heal quicker, wood is the slowest followed by stone, then iron, diamond, and gold.
Follow means the Golem will follow you and protect you.
Guard means the Golem will stand still and attack enemies that get too close to him.
Patrol means the Golem will follow a redstone path and attack enemies that get too close to him.
Stand means the Golem will stand still, doing nothing, and using no power.
The golem can attack with a sword or bow (provided he has at least 1 arrow), using the weapon farthest to the right in his inventory (ie: he will switch to the next weapon when his current breaks)
Recipes
Golem Battery:
OR
Golem:
Repair Hammer:
Note: wood can be replaced with cobblestone, iron, diamond, and gold. Also the recipe is reversible like the one for axes and hoes.
Videos
Installation
Mac Installation (made by Gopheraids)
Redstone Patroling
GameChap!
Youtube user TakeshirenDH made a mod spotlight, and will be using this in upcoming let's play's :biggrin.gif:
Basic video:
Menu and that he can hold items:
Coal usage and the state change button
Repair hammers!
We have movement!
Update Log
And here is 2.0, with a new video :biggrin.gif: Keep in mind, he will not follow paths up and down blocks reliably.
Still having trouble moving up and down blocks while following redstone, but I'll post 2.0 in a bit then update it once I can figure that part out.
10/6/11 Figured out my issues! Apparently the mod gets confused if you run it on a world which was made with a previous version of it, not sure if it likes a world which was made before installing the mod. What this means is, in order to have him correctly follow redstone when I upload 2.0, you will have to make a new world. What this also means is I can upload 2.0 tonight!
10/5/11 GameChap made a video of my mod :biggrin.gif:, also if I can figure out the issues I'm having with redstone paths, I will post 2.0 tomorrow which will include the better gui, sounds, and redstone pathfinding for the patrol command
I think I've taken care of them spawning, and I also did a lot of work on the gui interface! Shift-clicking now works much better, shift click coal and it goes into the coal slot if it can, same with repair hammers to the repair hammer slot. Anything else goes into the inventory slots. The coal and repair hammer slots only let you put coal and hammers into them, I might change the inventory slots to only accept weapons but I like the idea of being able to give him your goal ingots to hold onto, like a pack mule.
While messing around with the sounds, I discovered I hadn't prevented golems from naturally spawning. Whoops, time to fix that!
10/2/11 Golem now follows a redstone path, but I'm having trouble getting him to go up and down blocks. Also started adding in custom sounds provided by youtube user 3daysAnd2nights
9/30/11 Started working on redstone boundaries for the patrol state. It works ok, but if the area he patrols is too small he can glitch through it. Also if he gets hit over the redstone dust he'll run off into nowhereland
9/29/11 Did a bit of optimization work, I know myself and at least one other minecrafter had the game crash when there were many golems in the loaded chunks, hopefully what I did either fixes that or increases the number your computer can handle.
9/28/11 First build is now available for download, 1.1 fixed a glitch in 1.0 where the golem wouldn't correctly run toward mobs it was supposed to attack sometimes
Lots of work on making the golem behave correctly, he's almost ready for release! Sadly, if more than one creeper gangs up on him, he's almost certain to die.
As it is, the golem (no matter the state except for standing) will seek out the closest mob to him.
Soon he will prioritizeHe now prioritizes mobs as thus: attacking the golem > attacking the player > not hostileIn guard mode, he will not venture beyond a set radius, even if he really wants a mob that's over there.
Patroling is still random, in the future I'll implement boundaries for that.
When using a sword, he will run right up to the mob and attack it, when using a bow he will keep a set distance to the mob. I might add in strafing before releasing the first build, I definitely want to add it for the next build.
I made it so now the golem picks his equiped item from left to right, so if you have a sword then a bow he'll use the sword first. He'll only use a bow if he has arrows, and if he doesnt have a sword or bow he'll use his fists. What this means is, you can have him use a bow primarily and switch to a sword when he runs out of arrows, or vice versa. He'll also go to the next sword if his current one breaks.
9/27/11 The golem can now attack using an item, tool, or bow :biggrin.gif:, just have to write the code so he knows what to attack
In follow mode, the golem won't get too close and inadvertently push you off a ledge and he will teleport beside you if you go too far away (this might change if I get around to deconstructing the code behind it)
In guard mode, he will seek out any mob in a specific radius and if there are none to attack he returns to the spot where you set him to his guard state.
In patrol mode, he randomly wanders and attacks mobs in the same radius as his guard mode.
9/26/11 The golem now follows you like a wolf does if he is in his follow state :biggrin.gif:
And now the repair hammers cause the golem to heal automatically. Each tool use heals half a heart, the tool is only used if it is equiped to the golem and he is missing health, each tool heals at a different speed (wood<stone<iron<diamond<gold) but each tool has the same uses as a pickaxe/sword/etc of the same material (gold<wood<stone<iron<diamond). So gold heals the quickest, but is used up the quickest, while diamond heals the second quickest but is used up the slowest.
Fixed some issues, he now doesn't revert to the stand state but will behave as if he did until more fuel is given. Also I added a real health bar to his menu so you can view it instead of just the 10 blank hearts I tuck in the image to help place everything visually.
9/25/11 The golem now uses coal like a furnace :biggrin.gif: currently a stack of 64 gives you about an hour of use, but I think I'll mess around with balancing that laters
Somehow, in the process of adding the button, I messed up the inventory D: gonna take some time to fixFixed it :biggrin.gif:9/24/11 I think the out of memory was because I had too many golems at once, will have to test more but that's the only time I've managed to recreate it.
In other news, I got the golems inventory and all to save when you quit the game, and added a button that sets his state (follow, patrol, guard, stand). Now I just have to code what he does for each state and we should be all set :biggrin.gif:
9/23/11 While testing, I left the window open for a while and then java ran out of memory D:
No idea why that happened but hopefully I can track it down.
Support
Feel free to leave comments, suggestions, possible art assets, or offers to help :biggrin.gif:
Like the reddit post here to show your support :biggrin.gif:
Thanks :biggrin.gif:
However, I do have two questions:
Thanks :biggrin.gif:
I plan to either add golems made of different armors, or have the golem wear armor that you can change out.
I didn't realize there was a WIP section, if I get around to it I may ask to move to there but there is a download link to a version that fully works so it's not just starting out or anything
You know what would be really great!? When it could help you dig or look for stuff you show it or collect your stuff when you die.
Good work!
Good work!
It couldn't hurt, personally I think installation is straightforward but I have seen comments all over the place asking how to properly install modloader so I'm sure at least someone would benefit from it. And it is going to get more complex when I upload the next build which has sounds.
Alright then should I wait until you update or should i just make the video?
1) You should totally make a server version (if that's needed to run it on a server, i'm not sure.)It could be really useful for defending your home from griefers who want to steal your stuff! But that would also mean it would have to be hostile towards any players attacking it (or those that aren't the player who created it).
2) Golems should drop experience orbs when they die! Then you could have a battle experience in fully lit chambers. This is one problem I have. I usually make dungeons, just a string of rooms with puzzles, etc. And I'd love for there to be a battle aspect to these but I can't take the chance that a creeper will blow the room to high heaven. So if you made the golems programmable to attack all non-creator players, it could be like an Arena.
3) I like the idea of different golems doing different things. like if you gave them a different item they did different things. If they have an ax, they get wood, a sword they defend/kill mobs, and a pick they mine a designated area, etc.
I understand this might be a bit of a challenge, so if you need modding help, I would be happy to learn modding and lend a hand if needed.
Once I get around to learning smp modding I plan to have them behave similar to wolves, where they'll attack if they have been attacked. Though I do like the idea of having them have at least 1 state where they will attack anyone on sight that isn't the creator, though it would be hard to implement without adding several new states (unless I were to just add an attack-players button/checkbox)
I'm not sure how I feel about making them harvest stuff for you, it would require a lot more calculations per tick than the current iteration (finding the nearest harvestable block in a certain radius gets exponentially larger as said radius increases). But it does fit the feel of a golem (he is basically a slave/robot)
I'd say wait till the next update, since it will hopefully be tomorrow and any video you make for the current version will be outdated
At the moment they do not stack, though I might add a feature where he will automatically equip one from his inventory if the current one runs out.