Let's say I have 100 entries in Start Points, so it will be 100 possible locations. And I choose to spawn in 50 locations.
Then the chests will pick 50 random Start Points from that 100.
This way I can have specific places for the chests to spawn, but not always the same. Each time they will be different.
LootChests
Moved
Total Downloads: 3,131 - First Release: Jan 29, 2016 - Last Update: Jul 17, 2017
- 5/5, 16 likes
-
je choose the exactly spawn and after use it random is the best way. at the moment it's impossibile to choose with precision the chest spawn
-
Code:{ "ChestSpawnCount": 1, "ItemsPerChest": 1, "MaximumRange": 1.0, "MessageDespawn": "<color=#ffa500>LootChests</color>: Loot Chests have been Despawned", "MessageSpawn": "<color=#ffa500>LootChests</color>: Loot Chests have Spawned", "MininumRange": 0.0, "SecondsForSpawn": 60, "SecondsTillDestroy": 1800, "ShowDespawnMessage": true, "ShowSpawnMessage": true, "StartPoints": [ "-3511, 450, -2185", "-3899, 450, -2035", "-3732, 450, -2007" ] }
-
Only use it as a reference for the way to set up the StartPoint locations, if you use that config with the new version you'll get errors.
-
One of the best plugins in my opinion!!
It would be really nice and helpful to implement a manual spawn and dispawn command.
Thanks alot in advance! -
Chest disappears when i take the last item out of it. can someone help pls
-
-
{
"ChestSpawnCount": 20,
"DestroyOnEmpty": false,
"ItemsPerChest": 1,
"MaximumRange": 3000.0,
"MininumRange": 0.0,
"SecondsForSpawn": 1800,
"SecondsTillDestroy": 600,
"ShowDespawnMessage": true,
"ShowSpawnMessage": true,
"StartPoints": [
"-3000, 450, -3000"
]
} -
-
ok it works but now i have the empty chests on the map.
-
btw plugin dont works well. chest doesen't spawn or when spawn 1 time doesnt disappear full or empty i dont know why
{
"ChestSpawnCount": 1,
"DestroyOnEmpty": true,
"ItemsPerChest": 1,
"MaximumRange": 150.0,
"MininumRange": 50.0,
"SecondsForSpawn": 3600,
"SecondsTillDestroy": 3550,
"ShowDespawnMessage": true,
"ShowSpawnMessage": true,
"StartPoints": [
"-3466.5, 201.0, -1568",
"-2473 , 195 , -1035.6",
"-1362, 172, 1063",
"1386, 192, -1919",
"-2629.8, 172, 1489"
]
} -
the empty chests wont despawn.
-
The despawn timer is started when the chests spawn. So if you are counting the secondss for the very start of the server initialized trigger (to spawn the chests). The chests will despawn after 2400 seconds, or 600 seconds after they spawn.
Then they will respawn 1200 seconds after they are despawned.
Hope that helps you understand how the timers work. -
-
plug spawns in a certain area chests or randomly all over the map?
-
By default they spawn on most of the map, but you can change the spawn range size and have as many spawn areas (StartPoints) as you like. -
-
So you could have for example 10 StartPoints, and have a config setting of (lets called it RandLocations for now) of 5. It would pick 5 locations out of the 10.
A quick and easy way to do this would be to just do a Rand.Range on the location array (The StartPoints list) but that would also make it possible to spawn at the same location multiple times, and I assume you don't want it to do that?
[DOUBLEPOST=1455067433][/DOUBLEPOST]Code:{ "ChestSpawnCount": 20, "DestroyOnEmpty": true, "ItemsPerChest": 1, "MaximumRange": 3000.0, <-- this one "MininumRange": 0.0, "SecondsForSpawn": 7200, "SecondsTillDestroy": 1800, "ShowDespawnMessage": true, "ShowSpawnMessage": true, "StartPoints": [ "-3000, 450, -3000" ] }
-
So if its possible to add a list with 100 locations (StartPoints) and a configuration to pick 50 of those locations, it would be perfect.
I want to hide the chests in bushes and corners, I don't want them to spawn on the middle of the fields. -
pls fix the despawn of chests that you empty even the one you crafted goes away after you take out the last item