- Dependencies
- Copy Paste (Required)
This plugin lets players throw special grenades that instantly spawn full prebuilt bases on impact, just like the Port-A-Fort from Fortnite. Using Copy Paste files, you can define multiple grenade types, each with their own builds and fuse times.
Commands
pf.givegrenade <playerNameOrId> <configIndex>
- Gives a fort grenade to the target player. You can enter either their full/partial name or their Steam id as the first argument, followed by the index of the grenade config from the plugin's config file.
This command is mainly for admins to give grenades manually for testing or integration with other plugins.
Configuration
JSON:
{
"Version": "1.2.0",
"Fort Grenades": [
{
"Grenade Skin Id": 1163186435,
"Grenade Display Name": "Port-A-Fort",
"Fuse Length Seconds": 10.0,
"Paste Files": [
"StarterBase",
"TrapBase",
"FurnaceBase"
],
"Override Building Grade": "None",
"Paste Options": {
"stability": "false",
"deployables": "true",
"entityowner": "false",
"auth": "false",
"blockcollision": "0",
"inventories": "false"
}
},
{
"Grenade Skin Id": 815252048,
"Grenade Display Name": "Port-A-Fort 2",
"Fuse Length Seconds": 5.0,
"Paste Files": [
"HeliTower",
"RaidCamp"
],
"Override Building Grade": "None",
"Paste Options": {
"stability": "true",
"deployables": "true",
"entityowner": "false",
"auth": "false",
"blockcollision": "0",
"inventories": "true"
}
}
]
}
Fort Grenades
- A list of grenade definitions that can spawn forts when thrown.Grenade Skin Id
- The skin id of the grenade item to match. If you want to use the default grenade (no skin), set this to 0.Grenade Display Name
- Optional custom name to further identify the grenade. Leave this empty to match any name (just relies on the skin id).Fuse Length Seconds
- Time in seconds before the fort spawns after the grenade lands.Paste Files
- A list of Copy Paste file names the plugin will randomly pick from when this grenade is used.Paste Options
- These control how the structure is pasted in. Note that some options are locked and will be forced no matter what you set:autoheight
is alwaysfalse
.blockcollision
is always0
.- Any other options (like
stability
,inventories
,auth
, etc.) will be passed through exactly as you set them.
Override Building Grade
- This lets you force all blocks in the pasted base to use a specific building grade, no matter what grade they originally had in the paste file.
Available values:None
- Keeps the original grade from the paste file.Twigs
Wood
Stone
Metal
TopTier
Localization
JSON:
{
"GiveGrenade.Usage": "Usage: pf.givegrenade <playerNameOrId> <configIndex>",
"GiveGrenade.IndexInvalid": "Invalid configIndex '{0}'. It must be a number.",
"GiveGrenade.NoConfigFound": "No grenade config found at index {0}.",
"GiveGrenade.NoPlayerFound": "No active player found matching '{0}'.",
"GiveGrenade.FailedCreate": "Failed to create grenade.f1 item!",
"GiveGrenade.Success": "Gave '{0}' grenade (index {1}) to player {2}."
}