Simple snowmobile console command:
spawn snowmobile
(Its available without plugin)
What about Tomaha-variation of snowmobile? Can you add it?
SnowmobileSolved
i actually decided to just remove those altogether just cause my plugin doesn't handle returning items from fuel containers
my advice is to just use https://umod.org/plugins/vehicle-license its a much better plugin for vehicle spawning
but if you really want you can add whatever items you want onto the bottom of the extendedcrafting json config. its fully configurable, one of the previous versions should have the recipe i made for the snowmobile if thats what you were looking for, but yeaaa i don't really plan on adding drivable vehicles back into this plugin since there are much better choices for vehicle plugins.
also the reason why "spawn snowmobile" works to spawn a snowmobile is because thats a default console command that facepunch added to the game when they added snowmobiles
I said in the top that there is default command without any plugin, Im just watching the opportunity to spawn Tomaha vehicle. U'd call your plugin as "extended crafting and d...", but average user havent ability to spawn everything as it presents.
Nevermind.
So. Im not a programmer, sir, pls show the example of adding necessary code.
AshotOganesyanI said in the top that there is default command without any plugin, Im just watching the opportunity to spawn Tomaha vehicle. U'd call your plugin as "extended crafting and d...", but average user havent ability to spawn everything as it presents.
Nevermind.
So. Im not a programmer, sir, pls show the example of adding necessary code.
have you not read information on the plugin's page https://umod.org/plugins/extended-crafting-and-deployment#configuration
as far as adding new items just look at the already existing configuration theres over 200 examples
Merged post
the only things you need to understand about the config are these sections
"items" - the recipe
"item" - the crafted item
"prefab" - the prefab if the item has one
"itemname" & "command" - do i need to explain these?
"Tomaha_snowmobile Config Settings": {
"craft": {
"items": [
{
"shortname": "scrap",
"amount": 999999999,
"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.generator.small",
"amount": 1,
"skin": 1742652663
},
"prefab": "assets/content/vehicles/snowmobiles/tomahasnowmobile.prefab",
"itemname": "Tomaha Snowmobile",
"command": "tomaha.craft",
"land": false,
"distance": 0.0
},
I'd use sedan example. Is that correct? Why we need electric.generator.small ?
Merged post
I checked ingame that - still spawns sedan, but command "tomaha.craft" rly works. What I'm doing wrong?
i just use the small generator as a default cursor since its a basic rectangle, just looking at the json everything looks like its done correctly other then the "skin" section, you cant have duplicate skin id's in the same list, theres an easy way around that though because the icon technically is defined by the shortname as well, just start at 9999990001 and move up a digit every new item you add
though for the tomaha your gonna want to use 1768112091
the regular snowmobile is 1364246987 if you plan on adding that one as well.
Merged post
this plugin can spawn basically any item, as long as it has an entity, thats how i was able to add things like animals to the list and events that can be started by placing an item.
I changed numbers to 1768112091 and it now works, thx, but I still don't understand where I must find these numbers to the items I wanna add?
AshotOganesyanI changed numbers to 1768112091 and it now works, thx, but I still don't understand where I must find these numbers to the items I wanna add?
cause your literally creating a new item in the game when you add an item craft into this plugin, you don't necessarily need those numbers to add an item like i mentioned you can just start at 9999990001 and work your way up from there 9999 item slots should be enough space but your craft will then use the itemID's icon instead, the only value that can be left as null is the prefab id since the dropped items will revert to the item sack by default
Oh, okay, I think I get it. I'll try to add something later. Thx for your support!