- Dependencies
- Copy Paste (Required)
- Works With
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> [amount]
- Gives amount (default 1)of the selected fort‑grenade to the target player.playerNameOrId
- Full/partial name or Steam ID.configIndex
- Index of the grenade entry in the config.amount
(Optional) - Number of grenades to give.
Configuration
JSON:
{
"Version": "1.5.0",
"Ignore Water Shallower Than This Depth": 1.0,
"Return Grenade If Combat Blocked (Better No Escape)": false,
"Return Grenade If Raid Blocked (Better No Escape)": false,
"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"
}
}
]
}
Ignore Water Shallower Than This Depth
- Fort placement is blocked only if the water at the impact point is deeper than this value (in metres). Lets you allow building in puddles and shallow rivers while still preventing ocean drops.Return Grenade If Combat Blocked
- If Better No Escape says the thrower is combat-blocked, the fort won't spawn and the grenade is instantly given back to them.Return Grenade If Raid Blocked
- Same, but triggered when the thrower is raid-blocked instead of combat-blocked.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> [amount]",
"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}) x{2} to player {3}.",
"Grenade.Refund": "Couldn't place the fort: {0}\nYour grenade has been returned!"
}