Page 1 of 1

Making a new category for my assembler?

Posted: Thu Apr 21, 2016 12:19 am
by YoloJoe
Hi! :D

I've got my new assembler working now, but I want it to only be able to assemble one thing. (I will only be able to select one thing from the list when I click on my assembler.) I guess I need to create a new category for it? However when I add something like:

Code: Select all

{
	type = "NewCategory",
	name = "NewItemName"
  }
into my categories.lua file, it just returns "no loader found for 'NewCategory' ".

I guess my custom item also needs to be set to 'type = "NewCategory" ' and my assembler to 'Crafting_categories = "NewItemName" '. right?

Re: Making a new category for my assembler?

Posted: Thu Apr 21, 2016 12:52 am
by Arch666Angel
category

Code: Select all

{
    type = "recipe-category",
    name = "newcraftingcategory",
  },
recipe

Code: Select all

 {
    type = "recipe",
    name = "blubb",
    category = "newcraftingcategory",
   ...
 }
assembler entity

Code: Select all

 { 
    type = "assembling-machine",
    name = "blubb-maker",
    crafting_categories = {"newcraftingcategory"},
   ...
 }

Re: Making a new category for my assembler?

Posted: Thu Apr 21, 2016 4:03 am
by JasonC
Also fwiw the Terraforming mod does this, so there's should be some example code there too.

Re: Making a new category for my assembler?

Posted: Thu Apr 21, 2016 8:43 am
by YoloJoe
Thanks a lot guys! I think I tried every combination but that one XD