Minecraft Mods

Defender Mod Version 5.1 for Minecraft 1.6-1.7.10 Forge

  • 58,098 views, 19 today
  • 9,537 downloads, 2 today
  • 34
  • 29
  • 117
Beardielover's Avatar Beardielover
Level 81 : Elite Programmer
496
In this mod, you can create defenders to help guard you from the dark creatures of the night.
Command your defenders, choose their name, and lead them into battle!

Important changes for people playing multiplayer
Now Defenders will attack other players and their defenders by default. Upon spawning your first Defender, shift-right click it. There is a new menu for setting friendly players. Right now, I'm not storing the friendly players in the best way, so if all your defenders die, you will need to set new friendly players for the new one. I plan to make this better ASAP. Currently, it will sync between newly added defenders as long as one of your defenders are alive though.

This hasn't been extensively tested, so I don't know if it works. Note that this is only for versions after 1.6.4


Wait what? You ACTUALLY updated this to 1.7? What about 1.8+?
I said I would never update any mods to 1.7. I said it's possible later versions, with the intention of never really getting to it. Well what changed? I started working on some other amazing ideas that for sure need to be AT LEAST 1.7 because 1.6 is so obsolete, sadly. This only took a day to update to 1.7 because it's a rather small mod.

Originally about 2 years ago I started to update this, and got scared off by all the errors. But today, I just went in and started updating. It went pretty well actually. It is planned for me to update it to 1.8 and eventually 1.9 soon as well, which shouldn't be as drastic as the jump between 1.6 and 1.7.

Will other mods be updated to 1.7?
Yes, especially the smaller mods. Next on the list to update is the Coffin Mod. RA mod? Not in the foreseeable future.
List of for sure mods:
-Coffin Mod
-HeraldryCompanion
-A yet unreleased mod for 1.6.4 that I made about a year ago.(It's called the Skeleton Reanimating Mod, killing a skeleton splits them into individual pieces. If you don't break the most important pieces, they will put themselves back together after a little while with the pieces still left on the ground. It is complete for the most part, tell me if I should bother releasing the 1.6 version or just release it for 1.7.)
-More Enderpearls Mod's Successor(Not a direct successor, read the More Enderpearls Mod page for more information)



What are the features of a Defender?:
Click Here
-Shift Right-Clicking Defenders will open up a gui where you can change their name, see their owner and health, and choose their ai.

-Defenders have their own(currently weapons and armor) inventory of items you can give them!

-You can get different Tiers of defender that have more health!

-If a Defender's name is the same as a player who exists and has a skin, the players skin will be applied to the Defender! You could have an army of you if you want!

-Your Defender will definitely take damage while fighting so you can heal him by right clicking him with some food! Otherwise they will regen by themselves, but very slowly.



Types of Defender AI
Click Here
-Wander: The Defender will walk around aimlessly.

-Defend Position: The Defender will stay in the spot it is in when you select defend position. If mobs come nbearny the Defender will kill the mob then come back to the position.

-Follow and attack nearby mobs: Does exactly what the title of this AI says.

-Wolf AI : Defender will act exactly like a wolf.

-Tell me any more ideas that you have for AI types! 4 is quite few....



How do I get a Defender?:
Click Here
To spawn a defender, you need to craft the spawn defender item. there are 4 different tiers of defenders, and 5 different types. The only differences between types is the sword they spawn with and the amount of health they have.

Recipe:
Sword + Dirt Block + Sword
The two swords must be the same, the defender spawns with the sword it was crafted with.

Tier I: Wood-20 Health
Tier II: Gold-40 Health + Speed & Stone-40 Health
Tier III: Iron-60 Health
Tier IV: Diamond-100 Health

Thought of a better idea for how they should be made? Tell me below!



Older Version Downloads:
Click Here
Latest version is 5.1 for 1.7.10. Link is to the right of the post, just under the picture


-Update 5.0 for 1.7.10 Link
-Update 4.7 for 1.6.4: Link


Planned Features:
Click Here
-A small inventory that can hold items like potions, so they can give themselves effects, and throw them at enemies!!

-TONS more AI options, such as an option to attack any entity that is not an animal(because some mods have hostile mobs that do not extend EntityMob(Most hostile mobs extend this class), I believe Better Dungeons is like this, which would go great with this mod if the Defenders would attack them, so I must add that feature. Without this feature Defenders would be useless in Better Dungeons.

-Post your own ideas below!


Enjoy! ~~~

width=900

Terms of use:
I am the owner of this mod. You are not allowed to profit in this mod in any way. You may not reupload this mod. You may not have a link that leads to this page or the mods download that allows you to profit.(I.E. Through the use of adf.ly) You may, however, have this mod in a modpack as long as you are not profiting from it. If you do use this mod in a modpack, the page of the modpack MUST have a link to this page. Also you may do videos with this mod in it as long as you have a link to this page that does not cause you to profit.


undefined
Progress100% complete
Game VersionMinecraft 1.7.10
Tags

24 Update Logs

Update 5.1 : by Beardielover 07/11/2016 11:32:08 pmJul 11th, 2016

Bug Fix:
DM#14: Kicked from server upon interacting with Defender UI
LOAD MORE LOGS

Create an account or sign in to comment.

1
04/13/2019 9:45 am
Level 1 : New Miner
jprik
jprik's Avatar
Is this at all still active? The Defenders attack friendly players in my server (that is online uuid enabled) even though they are to stand guard and they have them in their friendly players slot.
1
04/13/2019 8:13 pm
Level 81 : Elite Programmer
Beardielover
Beardielover's Avatar
No, Defender Mod is like 6 years old now loool =P

I'd recommend checking out this, which I still do work on: https://www.planetminecraft.com/mod/call-to-battle-the-wwii-mod1710/#comments
1
05/02/2018 8:48 am
Level 46 : Master Skinner
WilliamJT
WilliamJT's Avatar
Cool Im going to have to try This mod
1
12/17/2017 12:22 am
Level 1 : New Miner
marcook
marcook's Avatar
Guys,I have a good idea,what about giving guns for the defender?Can they use it to shot?
1
07/10/2016 7:24 pm
Level 10 : Journeyman Architect
MediaMix1
MediaMix1's Avatar
People can make money outta Modpacks? Weird...
1
07/11/2016 12:09 pm
Level 81 : Elite Programmer
Beardielover
Beardielover's Avatar
Yeah with Adf.ly.
1
10/03/2015 9:36 am
Level 1 : New Miner
Solid Wires
Solid Wires's Avatar
Defenders crashes upon sight of any mob not a invader.

(BTW: are you still supporting this?)

---- Minecraft Crash Report ----
// Shall we play a game?

Time: 10/3/15 9:24 AM
Description: Ticking entity

cpw.mods.fml.relauncher.ReflectionHelper$UnableToFindFieldException: java.lang.NoSuchFieldException: timeSinceIgnited
    at cpw.mods.fml.relauncher.ReflectionHelper.findField(ReflectionHelper.java:87)
    at defender.entities.EntityDefender.func_70636_d(EntityDefender.java:596)
    at net.minecraft.entity.EntityLivingBase.func_70071_h_(EntityLivingBase.java:1826)
    at net.minecraft.entity.EntityLiving.func_70071_h_(EntityLiving.java:257)
    at net.minecraft.world.World.func_72866_a(World.java:2350)
    at net.minecraft.world.World.func_72870_g(World.java:2311)
    at net.minecraft.world.World.func_72939_s(World.java:2157)
    at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1921)
    at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:910)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:838)
    at net.minecraft.client.main.Main.main(SourceFile:101)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
Caused by: java.lang.NoSuchFieldException: timeSinceIgnited
    at java.lang.Class.getDeclaredField(Class.java:2062)
    at cpw.mods.fml.relauncher.ReflectionHelper.findField(ReflectionHelper.java:78)
    ... 16 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
    at cpw.mods.fml.relauncher.ReflectionHelper.findField(ReflectionHelper.java:87)
    at defender.entities.EntityDefender.func_70636_d(EntityDefender.java:596)
    at net.minecraft.entity.EntityLivingBase.func_70071_h_(EntityLivingBase.java:1826)
    at net.minecraft.entity.EntityLiving.func_70071_h_(EntityLiving.java:257)
    at net.minecraft.world.World.func_72866_a(World.java:2350)
    at net.minecraft.world.World.func_72870_g(World.java:2311)

-- Entity being ticked --
Details:
    Entity Type: Defender (defender.entities.EntityDefender)
    Entity ID: 3401
    Entity Name: Defender
    Entity's Exact location: -194.69, 65.00, 223.22
    Entity's Block location: World: (-195,65,223), Chunk: (at 13,4,15 in -13,13; contains blocks -208,0,208 to -193,255,223), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
    Entity's Momentum: 0.00, -0.08, 0.00
Stacktrace:
    at net.minecraft.world.World.func_72939_s(World.java:2157)

-- Affected level --
Details:
    Level name: MpServer
    All players: 1 total; [GCCorePlayerSP'Solid_Wires'/531, l='MpServer', x=-189.00, y=66.30, z=222.44]]
    Chunk stats: MultiplayerChunkCache: 441
    Level seed: 0
    Level generator: ID 00 - default, ver 1. Features enabled: false
    Level generator options:
    Level spawn location: World: (-268,64,243), Chunk: (at 4,4,3 in -17,15; contains blocks -272,0,240 to -257,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
    Level time: 3583 game time, 3583 day time
    Level dimension: 0
    Level storage version: 0x00000 - Unknown?
    Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
    Forced entities: 92 total; [EntitySkeleton'Skeleton'/6656, l='MpServer', x=-112.69, y=23.00, z=233.31], EntityCreeper['Creeper'/4362, l='MpServer', x=-238.50, y=29.00, z=287.50], EntityChicken['Chicken'/276, l='MpServer', x=-233.50, y=66.00, z=287.50], EntityItem['item.item.swordStone'/7446, l='MpServer', x=-192.28, y=63.13, z=221.69], EntityChicken['Chicken'/280, l='MpServer', x=-233.50, y=64.00, z=292.50], EntityCreeper['Creeper'/5912, l='MpServer', x=-222.50, y=36.00, z=182.50], EntityChicken['Chicken'/281, l='MpServer', x=-233.50, y=65.00, z=289.50], EntityCreeper['Creeper'/5913, l='MpServer', x=-224.50, y=36.00, z=184.50], EntityChicken['Chicken'/282, l='MpServer', x=-233.50, y=66.00, z=288.50], EntityCreeper['Creeper'/3872, l='MpServer', x=-259.56, y=25.00, z=163.03], EntityItem['item.item.swordStone'/3617, l='MpServer', x=-200.94, y=69.13, z=216.75], GCCorePlayerSP['Solid_Wires'/531, l='MpServer', x=-189.00, y=66.30, z=222.44], EntityZombie['Zombie'/4136, l='MpServer', x=-261.50, y=42.00, z=204.50], EntityIronGolem['Iron Golem'/303, l='MpServer', x=-227.97, y=68.00, z=204.97], EntityCreeper['Creeper'/4145, l='MpServer', x=-220.50, y=41.00, z=283.50], EntityZombie['Zombie'/3634, l='MpServer', x=-196.06, y=27.00, z=174.53], EntitySkeleton['Skeleton'/4919, l='MpServer', x=-111.50, y=19.00, z=149.50], EntitySquid['Squid'/3385, l='MpServer', x=-138.88, y=59.19, z=221.25], EntityItem['item.item.sulphur'/316, l='MpServer', x=-198.19, y=17.13, z=177.41], EntityItem['item.item.monsterPlacer'/317, l='MpServer', x=-207.56, y=69.13, z=210.19], EntityZombie['Zombie'/5442, l='MpServer', x=-223.50, y=25.00, z=241.50], EntityZombie['Zombie'/5190, l='MpServer', x=-231.50, y=36.00, z=214.50], EntityDefender['Defender'/3401, l='MpServer', x=-194.69, y=65.00, z=223.22], EntityChicken['Chicken'/344, l='MpServer', x=-178.44, y=62.63, z=261.56], EntityZombie['Zombie'/346, l='MpServer', x=-183.50, y=28.00, z=294.50], EntityZombie['Zombie'/5731, l='MpServer', x=-182.50, y=39.00, z=145.50], EntityBat['Bat'/2405, l='MpServer', x=-234.25, y=41.10, z=290.56], EntityZombie['Zombie'/7023, l='MpServer', x=-173.08, y=20.18, z=232.31], EntityChicken['Chicken'/378, l='MpServer', x=-169.50, y=63.00, z=264.50], EntitySquid['Squid'/379, l='MpServer', x=-167.50, y=57.22, z=259.69], EntityChicken['Chicken'/380, l='MpServer', x=-176.47, y=70.00, z=277.63], EntityChicken['Chicken'/381, l='MpServer', x=-168.50, y=67.00, z=271.50], EntityZombie['Zombie'/5517, l='MpServer', x=-222.50, y=17.00, z=195.50], EntityZombie['Zombie'/5518, l='MpServer', x=-221.50, y=17.00, z=194.50], EntityPage['entity.Slender.slender_page.name'/655, l='MpServer', x=-227.97, y=42.50, z=191.50], EntityCreeper['Creeper'/3986, l='MpServer', x=-115.50, y=27.00, z=229.50], EntityCreeper['Creeper'/3987, l='MpServer', x=-117.50, y=27.00, z=231.50], EntityItem['item.tile.gravel'/407, l='MpServer', x=-133.78, y=9.13, z=223.13], EntityItem['item.tile.gravel'/408, l='MpServer', x=-132.31, y=9.13, z=223.56], EntityItem['item.tile.rail'/410, l='MpServer', x=-140.31, y=22.13, z=232.63], EntityItem['item.tile.rail'/411, l='MpServer', x=-142.88, y=22.13, z=231.66], EntityItem['item.tile.rail'/412, l='MpServer', x=-134.03, y=22.13, z=230.13], EntitySkeleton['Skeleton'/6044, l='MpServer', x=-229.50, y=36.00, z=192.50], EntityItem['item.tile.rail'/413, l='MpServer', x=-134.06, y=22.13, z=231.72], EntityItem['item.tile.sapling.oak'/1954, l='MpServer', x=-246.94, y=65.13, z=253.19], EntityBat['Bat'/5794, l='MpServer', x=-110.25, y=24.09, z=266.88], EntityBat['Bat'/422, l='MpServer', x=-124.13, y=10.10, z=204.41], EntityMinecartChest['entity.MinecartChest.name'/423, l='MpServer', x=-127.50, y=9.50, z=232.50], EntityDefender['Defender'/5805, l='MpServer', x=-190.50, y=63.00, z=223.50], EntityWaypointContainer['unknown'/949, l='MpServer', x=0.00, y=0.00, z=0.00], EntityBat['Bat'/7357, l='MpServer', x=-114.56, y=30.25, z=143.56], EntityZombie['Zombie'/5325, l='MpServer', x=-144.50, y=10.00, z=238.50], EntityBat['Bat'/7374, l='MpServer', x=-242.20, y=16.23, z=301.13], EntityEnderman['Enderman'/3279, l='MpServer', x=-125.50, y=22.00, z=277.47], EntityBat['Bat'/7377, l='MpServer', x=-246.44, y=13.08, z=300.52], EntitySheep['Sheep'/212, l='MpServer', x=-257.53, y=64.00, z=183.53], EntityZombie['Zombie'/6100, l='MpServer', x=-218.50, y=19.00, z=191.50], EntitySheep['Sheep'/213, l='MpServer', x=-256.38, y=64.00, z=183.53], EntityDefender['Defender'/3543, l='MpServer', x=-196.47, y=69.00, z=223.44], EntitySkeleton['Skeleton'/3032, l='MpServer', x=-250.50, y=14.00, z=212.47], EntityItem['item.tile.sapling.oak'/1242, l='MpServer', x=-215.72, y=71.13, z=228.81], EntityInvader['Invader'/3035, l='MpServer', x=-114.06, y=25.00, z=160.44], EntityChicken['Chicken'/220, l='MpServer', x=-251.56, y=64.00, z=253.44], EntityChicken['Chicken'/221, l='MpServer', x=-261.53, y=68.00, z=242.53], EntitySkeleton['Skeleton'/5854, l='MpServer', x=-111.50, y=15.00, z=305.50], EntityBat['Bat'/7394, l='MpServer', x=-250.65, y=41.82, z=300.34], EntitySheep['Sheep'/231, l='MpServer', x=-259.88, y=64.00, z=180.81], EntitySheep['Sheep'/232, l='MpServer', x=-251.50, y=64.00, z=183.50], EntityZombie['Zombie'/235, l='MpServer', x=-242.50, y=25.00, z=221.50], EntityChicken['Chicken'/236, l='MpServer', x=-241.56, y=64.00, z=226.44], EntityChicken['Chicken'/237, l='MpServer', x=-246.44, y=64.00, z=230.44], EntitySkeleton['Skeleton'/7661, l='MpServer', x=-120.50, y=21.00, z=143.50], EntityChicken['Chicken'/238, l='MpServer', x=-242.50, y=64.00, z=229.50], EntityZombie['Zombie'/5870, l='MpServer', x=-247.50, y=14.00, z=216.50], EntityCreeper['Creeper'/6382, l='MpServer', x=-224.50, y=17.00, z=186.50], EntityCreeper['Creeper'/7662, l='MpServer', x=-189.50, y=63.00, z=220.50], EntityItem['item.tile.sapling.oak'/239, l='MpServer', x=-250.28, y=64.13, z=255.06], EntityChicken['Chicken'/240, l='MpServer', x=-246.47, y=67.00, z=244.31], EntityChicken['Chicken'/241, l='MpServer', x=-253.66, y=69.00, z=252.53], EntityItem['item.tile.sapling.oak'/242, l='MpServer', x=-248.44, y=64.13, z=255.59], EntityChicken['Chicken'/243, l='MpServer', x=-240.50, y=63.00, z=271.50], EntityChicken['Chicken'/244, l='MpServer', x=-241.44, y=64.00, z=268.69], EntityEnderman['Enderman'/7156, l='MpServer', x=-113.50, y=22.00, z=279.50], EntityChicken['Chicken'/245, l='MpServer', x=-241.63, y=64.00, z=268.16], EntityChicken['Chicken'/246, l='MpServer', x=-250.41, y=63.00, z=267.53], EntitySkeleton['Skeleton'/7158, l='MpServer', x=-118.84, y=22.00, z=279.50], EntityChicken['Chicken'/247, l='MpServer', x=-253.47, y=64.00, z=257.34], EntityCreeper['Creeper'/248, l='MpServer', x=-248.50, y=44.00, z=286.50], EntityZombie['Zombie'/5372, l='MpServer', x=-229.50, y=18.00, z=198.50], EntityZombie['Zombie'/6909, l='MpServer', x=-120.50, y=22.00, z=277.50], EntitySpider['Spider'/6653, l='MpServer', x=-111.09, y=23.00, z=234.91], EntitySkeleton['Skeleton'/6655, l='MpServer', x=-114.50, y=23.00, z=230.50]]
    Retry entities: 0 total; []
    Server brand: fml,forge
    Server type: Integrated singleplayer server
Stacktrace:
    at net.minecraft.client.multiplayer.WorldClient.func_72914_a(WorldClient.java:440)
    at net.minecraft.client.Minecraft.func_71396_d(Minecraft.java:2312)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:856)
    at net.minecraft.client.main.Main.main(SourceFile:101)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

-- System Details --
Details:
    Minecraft Version: 1.6.4
    Operating System: Windows 7 (amd64) version 6.1
    Java Version: 1.8.0_25, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 354823248 bytes (338 MB) / 735948800 bytes (701 MB) up to 1060372480 bytes (1011 MB)
    JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
    AABB Pool Size: 1126 (63056 bytes; 0 MB) allocated, 454 (25424 bytes; 0 MB) used
    Suspicious classes: FML and Forge are installed
    IntCache: cache: 0, tcache: 0, allocated: 6, tallocated: 62
    FML: MCP v8.11 FML v6.4.50.1,345 Minecraft Forge 9.11.1.1345 64 mods loaded, 64 mods active
    mcp{8.09}
1
10/03/2015 10:22 am
Level 81 : Elite Programmer
Beardielover
Beardielover's Avatar
Yes, I am still supporting this, just not my top priority right now. Will fix right now and release a small update. The update will contain that fix and something I added a few months ago put forgot to post: Item Locking. Because if you dont lock a defenders items you will likely accidently give them stuff. So after you give them their desired equipment, you can lock their items, and unlock them if you want to give more. 


Update coming in about 5 minutes. EDIT: Done. Tell me if it works now =)
1
10/20/2015 5:28 pm
Level 1 : New Miner
Solid Wires
Solid Wires's Avatar
Sorry for the long wait, but yeah, it works smoothly for me now. thanks. =)
It's a really great mod, my survival base feels safer now.

suggestion: AI option to allow defenders to go into a certain area (like a barracks) after a certain amount of time has passed while they were defending that the player set. This would sorta work like shifts for a real life guard, like a night guard or a day guard.

Another suggestion that makes the purpose for the previous suggestion: sword durability applies to defenders too, so after a certain amount of hits, their swords break, or even any other item. When it does, they fall back and they take a short break on replacing their broken items from a chest a player placed for them. For your potions feature your planning, you could even make the soldiers take the potions out of the chest and use them for battle later. However, the only time they would retreat would be if their sword breaks.
1
05/10/2015 10:41 am
Level 1 : New Explorer
Creeperking63x
Creeperking63x's Avatar
This mod i awesome
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome