John Black
Refugee
Hi
Years ago I used to generate wrappers to mod 7d2d xmls. It allowed me to create recipes and blocks and re-apply changes after game updates. I'm now trying to accomplish the same as below by using modlets but am already running into issues.
I started out with the stop sign, trying to allow player to pick it up but ... yeah, can't even get that to work.
The modlet seems to load just fine so I guess the culprit is my blocks.xml. Is there any way, in-game, to look at the current attributes of items?
...\7 Days To Die\Mods\TJL\Config\blocks.xml
Years ago I used to generate wrappers to mod 7d2d xmls. It allowed me to create recipes and blocks and re-apply changes after game updates. I'm now trying to accomplish the same as below by using modlets but am already running into issues.
public static void CreateRecipeAndAllowPickup()
{
/* donotuse */
var doNotUseSign = new RecipeWrapper(Item.doNotUse, false);
doNotUseSign.ClearComponents();
doNotUseSign.AddDistributed(Item.plantChrysanthemum, 1, Item.leather, 3, Item.leather, 3, Item.leather, 3);
doNotUseSign.Count = 9;
doNotUseSign.CraftTime = 9;
doNotUseSign.Clone("doNotUse"); // clone + remove to get in same place in xml
doNotUseSign.Remove();
var doNotUseSignBlock = new BlockWrapper(Block.doNotUse);
doNotUseSignBlock.CanPickup = true;
}
{
/* donotuse */
var doNotUseSign = new RecipeWrapper(Item.doNotUse, false);
doNotUseSign.ClearComponents();
doNotUseSign.AddDistributed(Item.plantChrysanthemum, 1, Item.leather, 3, Item.leather, 3, Item.leather, 3);
doNotUseSign.Count = 9;
doNotUseSign.CraftTime = 9;
doNotUseSign.Clone("doNotUse"); // clone + remove to get in same place in xml
doNotUseSign.Remove();
var doNotUseSignBlock = new BlockWrapper(Block.doNotUse);
doNotUseSignBlock.CanPickup = true;
}
I started out with the stop sign, trying to allow player to pick it up but ... yeah, can't even get that to work.

The modlet seems to load just fine so I guess the culprit is my blocks.xml. Is there any way, in-game, to look at the current attributes of items?
...\7 Days To Die\Mods\TJL\Config\blocks.xml
Code:
<configs>
<setattribute xpath="/blocks/block[@name='signRoadStop']" name="CanPickup">true</setattribute>
</configs>