Shortnames for building parts?Solved

Can i use this to make whole buildings decay when no cupboard is present ? Honestly just foundations would work .

Would love for things without a cupboard to decay aftr 24 hours. I'll look at some thers that may do it . But love this one :)

Just wondering if it supports all shortnames or just the ones listed ?

You can indeed, what you're seeing in the configuration isn't actually items. It's prefab shortnames, which just happen to look like shortnames.

 

You can simply just add "foundation" as one of the prefabs in your configuration and it will remove them.

There is not mutch deployable it stops this plugin. i use 2 sec removeal. SHould be a text saying, you can not build this and give item back to inventory like:  https://umod.org/plugins/privilege-deploy - this one is not working well eighter. And is only for players. so admin can not test without a player.

 

{
  "BarricadePrefabs": [
 	"barricade.concrete",
    "barricade.metal",
    "barricade.sandbags",
    "barricade.stone",
    "barricade.wood",
    "barricade.woodwire",
    "gates.external.high.stone",
    "gates.external.high.wood",
    "wall.external.high",
    "wall.external.high.stone",
    "trap.landmine",
    "chair",
    "xmas.tree",
    "snowman",
    "bbq",
    "furnace",
    "furnace.large",
    "table",
    "small.oil.refinery",
    "jackolantern.angry",
    "sign.hanging.banner.large",
    "sign.hanging",
    "sign.hanging.ornate",
    "jackolantern.happy",
    "lantern",
    "sign.pole.banner.large",
    "sign.post.double",
    "sign.post.single",
    "sign.post.town",
    "sign.post.town.roof",
    "sign.wooden.huge",
    "sign.wooden.large",
    "sign.wooden.medium",
    "sign.wooden.small",
    "water.catcher.large",
    "water.catcher.small",
    "water.barrel",
    "mailbox",
    "spikes.floor",
    "trap.bear"
  ],
  "RemoveAfter": 2
}
In response to PlayerKnownAsRay ():
There is not mutch deployable it stops this plugin. i use 2 sec removeal. SHould be a text saying, y...
That would be because you're using item shortnames on a plugin that uses prefab shortnames.

You can use either prefab sniffer or set "DebugMode" to true in the configuration then place an item to get the prefab shortname.

Identify the shortname from the prefab like so:

assets/prefabs/deployable/bbq/bbq.deployed.prefab

I probably should have just required the full prefab name to avoid confusion.

The fact that prefabs exist at all in the configuration is so that if an update for some reason changes the prefab name and I'm inactive then users can simply update the prefab themselves. It wasn't really meant to be used as a plugin to remove everything (hence the name) though it will work.
but what is prefab for high stone wall - is it: assets/prefabs/building/wall.external.high.stone/wall.external.high.stone.prefab or assets/prefabs/building/wall.external.high.stone/wall.external.high.stone.item.prefab or assets/prefabs/building/wall.external.high.stone/effects/wall-external-stone-deploy.prefab - please help with this!

and i cant find prefab for landmine??
Look at the bold text above. It’s the prefab short name you put in the configuration, not the full prefab. 

Use prefab sniffer. If something has two or more words search only one of them. “Mine” etc instead of “landmine”.

Again alternatively you can just enable debug in your config, go in game and place down the item and the prefab shortname will be in the console.
ok. found this for landmine: "assets/prefabs/deployable/landmine/landmine.prefab", then shortname will be landmine ?

Thank you just wanted to confirm before i spent 3 hours building a config :)

I have a 0 decay server. But want to make it 0decay in cubboard . regular outside. I know there are a few that do this . But this seems very light weight and clean , 

Will post my config if i get it working in case anyone needs the same :)

Thanks again

Have made a deploy list: let me know if anything is wrong here.

{
  "deployables": [
    "bbq.deployed",
    "chair.deployed",
    "mailbox.deployed",
    "refinery_small_deployed",
    "planter.large.deployed",
    "planter.small.deployed",
    "large.rechargable.battery.deployed",
    "smallrechargablebattery.deployed",
    "solarpanel.large.deployed",
    "researchtable_deployed",
    "table.deployed",
    "xmas_tree.deployed",
	"sign.post.double",
	"furnace",
	"jackolantern.angry",
	"jackolantern.happy",
	"fogmachine",
	"furnace.large",
	"sign.post.town",
	"scarecrow.deployed",
	"searchlight.deployed",
	"sign.post.single",
	"skull_fire_pit",
	"snowman.deployed",
	"sign.post.town.roof",
	"vendingmachine.deployed",
	"waterbarrel",
	"water_catcher_small",
	"water_catcher_large",
	"autoturret_deployed",
	"flameturret.deployed",
	"landmine",
	"sam_site_turret_deployed",
	"guntrap.deployed",
	"beartrap",
	"spikes.floor",
	"cursedcauldron.deployed",
	"gravestone.stone.deployed",
	"graveyardfence",
	"smallcandleset",
	"largecandleset",
	"generator.small",
	"spookyspeaker",
	"strobelight",
	"gravestone.wood.deployed",
    "wall.external.high.stone",
    "wall.external.high.wood",
	"barricade.woodwire",
	"barricade.metal",
	"barricade.wood",
	"jackolantern.happy",
    "barricade.stone",
    "gates.external.high.stone",
    "gates.external.high.wood",
    "landmine",
    "barricade.sandbags",
    "barricade.concrete",
	"lantern.deployed",
  ]
}​

So besides the deployables. It would jsut be

foundation,

foundation.triangle,

Deployables, (each name)

Guess i can go test :) Ty again

 

lantern.deployed and snowmachine is making player force disconnect?!
In response to PlayerKnownAsRay ():
Have made a deploy list: let me know if anything is wrong here.

{ "deployables": [...

That doesn't look like json from my plugin.

 

Regardless I've tested this list and everything removes as it should, even with the fact you have 

jackolantern.happy

twice.

I'd ensure you're using the latest version of my plugin and your configuration is correct.

In response to PlayerKnownAsRay ():
lantern.deployed and snowmachine is making player force disconnect?!
Nope.
In response to Norn ():
That doesn't look like json from my plugin. Regardless I've tested this list and everything remove...
no im sorry, but i used your for detecting prefab. nice job with this. But i use the other old one due to you get wall back in inventory and a message saying why you cant place it! but i hope all like this list!
In response to PlayerKnownAsRay ():
no im sorry, but i used your for detecting prefab. nice job with this. But i use the other old one d...
What do you mean you use older one? This isn't meant to stop people placing walls it's meant to remove them after a designated time as they're still important for PVP.

If you're not using my plugin why are you posting here for support?
Locked automatically