HomeJavaModsSummon Friendly Mobs
ModsJava

Summon Friendly Mobs

by ArmyFury · on Modrinth

Allows you to summon mobs which do not attack the person who summoned them, but are hostile (if the mob is hostile) to other players and more!

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.20.3–1.21.5 · Bukkit⬇ Download for 1.20.3–1.21.5 · Paper⬇ Download for 1.20.3–1.21.5 · Purpur⬇ Download for 1.20.3–1.21.5 · Spigot
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

Summon Friendly Mobs

Allows you to summon hostile mobs which do not attack the player who summoned it.

Commands Usage:

/summonfriendlymob [ ] {NBT_data} : Summons a friendly mob

/givespawnegg [amount] : Gives special spwan egg to a player

/attack <target player name | target mob uuid> : Attacks given player or a mob

/mobs : Gives a list of friendly mobs of the player

/sfmreload : Reload the plugin

/mobsfollow : Makes mobs of a player follow the player for a set duration

Alias:

/sfm [for summonfriendlymob]

/gse [for givespawnegg]

only put mob NAME in .

Example:

   ✅ /summonfriendlymob blaze
   ✅ /sfm blaze
   ✅ /givespecialspawnegg @s blaze
   ✅ /gse @s blaze

   
   ❌ /summonfriendlymob minecraft:blaze
   ❌ /sfm minecraft:blaze
   ❌ /givespecialspawnegg minecraft:blaze
   ❌ /gse minecraft:blaze

Coordinates are optional, when none are given, it defaults to ~ ~ ~ Amount is also optional, defaults to 1 when not specified

Configurations

For versions below 1.19.x, if the config file is not properly generated the first time, restart the server.

The config file (config.yml) can be found in <server_folder>/plugins/SummonFriendlyMobs/ . You can change FriendlyWarden (MC 1.19+), UniversallyFriendly, SaveFriendliness, SaveWardenFriendliness, WardenCheckInterval (MC 1.19+), UpdateNotifier, AllowAttack and AllowCustomMobSettings in the config.

FriendlyWarden: false # Toggle whether wardens summoned by the plugin are friendly to the summoner.
WardenCheckInterval: 1 # Number of ticks between each check to clear Warden's anger to its summoner
UniversallyFriendly: false # Toggle whether mobs summoned by this plugin are Friendly to only the summoner or to all player
SaveFriendliness: false # Toggle whether to keep friendliness of the mobs even after the server restarts
SaveWardenFriendliness: false # Toggle whether to keep friendliness of the wardens even after the server restarts
UpdateNotifier: true # Toggle whether to notify for newer versions of the plugin
AllowAttack: true # Toggle whether to allow players to use /attack command or not
AllowCustomMobSettings: false # Toggle whether to use settings for mobs from mobs.yml or not
Taming: false # Toggle whether to allow Taming
bStats: true # Toggle whether to send bStats data
MobsFollowDuration: 30   # The duration for which mobs will follow their owner with /mobsfollow (in seconds, assuming game at 20tps)

WardenCheckInterval is the number of ticks after which anger of wardens is cleared, higher number will result in lower number of checks and the wardens may attack the summoners. This should not affect the performance a lot. This does not apply to any other mob. Wardens are pacified differently due to how they sense and attack players.

The file summonerMap.dat holds data for friendliness of mobs and warden_data.yml for friendliness of wardens. DO NOT change anything in them unless you are 100% sure what you are doing

Permissions

Issues

I know there are and will be some issues in this plugin as this is my first ever plugin that I have publically released

Some mobs are hostile even to the players who summoned them:

You can reach out to me in my discord server. [Discord ID - armyfury]

Data Collection

The plugin collects data through bStats and all data sent is anonymous. This has negligible impact on performance and helps me and other developers learn how their plugins are used and what is to be improved. All the data collected by the plugin can be viewed publically here.

Other projects:

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more