Modding:Creating Recipes/es: Difference between revisions

From Vintage Story Wiki
Created page with "=== Copia de atributos === Algunas recetas pueden requerir copiar atributos. Esto se puede hacer añadiendo <code>copyAttributesFrom</code>. Esta es la receta para la caja etiquetada: <syntaxhighlight lang="json"> { ingredientPattern: "S,C", ingredients: { "S": { type: "item", code: "paper-parchment" }, "C": { type: "block", code: "crate" } }, shapeless: true, copyAttributesFrom: 'C', width: 1, height: 2, output: { type: "block", code: "crate", attributes:..."
(Created page with "=== Consumir más durabilidad por herramienta === Para equilibrar la durabilidad que consume, se puede hacer mediante la adición de <code>toolDurabilityCost</code> y <code>isTool</code>. Esta es la receta para el mazo de pulverizador: <syntaxhighlight lang="json"> { ingredientPattern: "HL_,CL_,_L_", ingredients: { "H": { type: "item", code: "hammer-*", isTool: true, toolDurabilityCost: 10 }, "C": { type: "item", code: "chisel-*", isTool: true, toolDurabilityCost:...")
(Created page with "=== Copia de atributos === Algunas recetas pueden requerir copiar atributos. Esto se puede hacer añadiendo <code>copyAttributesFrom</code>. Esta es la receta para la caja etiquetada: <syntaxhighlight lang="json"> { ingredientPattern: "S,C", ingredients: { "S": { type: "item", code: "paper-parchment" }, "C": { type: "block", code: "crate" } }, shapeless: true, copyAttributesFrom: 'C', width: 1, height: 2, output: { type: "block", code: "crate", attributes:...")
 
(2 intermediate revisions by the same user not shown)
Line 153: Line 153:
</syntaxhighlight>
</syntaxhighlight>


=== Separating recipes on the same handbook page ===
=== Separar recetas en la misma página del manual ===
Sometimes amount of recipes for one item can become overwhelming, to separate important ones, it can be done by adding <code>recipeGroup</code>. These are recipes for wooden ladder:
A veces la cantidad de recetas para un artículo puede llegar a ser abrumadora, para separar las importantes, se puede hacer mediante la adición de <code>recipeGroup</code>. Estas son las recetas para la escalera de madera:
<syntaxhighlight lang="json">
<syntaxhighlight lang="json">
{
{
Line 178: Line 178:
</syntaxhighlight>
</syntaxhighlight>


=== Restricting to a specific class ===
=== Restringir a una clase específica ===
The recipe can be limited to a specific [[Classes|class]]. This can be done by adding <code>requiresTrait</code>. This is recipe for sewing kit:
La receta puede limitarse a una [[Classes/es|clase]] específica. Esto se puede hacer añadiendo <code>requiresTrait</code>. Esta es la receta para el kit de costura:
<syntaxhighlight lang="json">
<syntaxhighlight lang="json">
{
{
Line 194: Line 194:
</syntaxhighlight>
</syntaxhighlight>


=== Copying attributes ===
=== Copia de atributos ===
Some recipes can require to copy attributes. This is can be done by adding <code>copyAttributesFrom</code>. This is recipe for labeled crate:
Algunas recetas pueden requerir copiar atributos. Esto se puede hacer añadiendo <code>copyAttributesFrom</code>. Esta es la receta para la caja etiquetada:  
<syntaxhighlight lang="json">
<syntaxhighlight lang="json">
{
{
Confirmedusers
9,523

edits