Hi,
i have tryed to add the simple light, but it does not run: "Simplelight Config Settings": {
"craft": {
"items": [
{
"shortname": "metal.fragments",
"amount": 30,
"skin": 0
}
],
"enabled": true
},
"destroy": {
"effects": [
"assets/bundled/prefabs/fx/item_break.prefab",
"assets/bundled/prefabs/fx/impacts/stab/rock/stab_rock_01.prefab"
],
"give": true,
"ground": false
},
"pickup": {
"enabled": true,
"owner": true,
"privilege": true
},
"item": {
"shortname": "simplelight",
"amount": 1,
"skin": -282113991
},
"prefab": "assets/prefabs/misc/permstore/industriallight/industrial.wall.lamp.deployed.prefab",
"itemname": "Simplelight",
"command": "simplelight.craft",
"land": false,
"distance": 0.0
},
Was ist eigentlich dieser prefab pfad und wie finde ich diesen für das licht raus?
SimplelightSolved
the light already exists as
/whitelight.craft - White Industrial Wall Light
also your problem is this line
"skin": -282113991
should have the - removed like this
"skin": 282113991
also just so you know you shouldn't add duplicates of the same skin ID cause it tends to mess with the plugin i really should re-label that setting because i recently learned that its just the position ID of the item in the list
Thank you for the quick reply
but i mean this lamp here:
the identifier from this page here: https://rustlabs.com/item/simple-light
oh you need to get the prefab id from https://www.corrosionhour.com/rust-prefab-list/
im pretty sure what your looking for would be written like this though.
"Simplelight Config Settings": {
"craft": {
"items": [
{
"shortname": "metal.fragments",
"amount": 30,
"skin": 0
}
],
"enabled": true
},
"destroy": {
"effects": [
"assets/bundled/prefabs/fx/item_break.prefab",
"assets/bundled/prefabs/fx/impacts/stab/rock/stab_rock_01.prefab"
],
"give": true,
"ground": false
},
"pickup": {
"enabled": true,
"owner": true,
"privilege": true
},
"item": {
"shortname": "electric.simplelight",
"amount": 1,
"skin": 282113991
},
"prefab": "assets/prefabs/deployable/playerioents/lights/simplelight.prefab",
"itemname": "Simplelight",
"command": "simplelight.craft",
"land": false,
"distance": 0.0
},
great works now, thank you very much