wolverine576
Refugee
I want to add Nails to blocks when you break them down. Also add Nails to blocks and secured Chests recipes for example. Been awhile since i messed with modletts lol
Append them in to the destroy section of each block so when you break a bl9ck down it gives you the normal stuff plus nailsI want to add Nails to blocks when you break them down. Also add Nails to blocks and secured Chests recipes for example. Been awhile since i messed with modletts lol
Can you start me off with an example, or someones tutorial?Append them in to the destroy section of each block so when you break a bl9ck down it gives you the normal stuff plus nails
Let's find all the blocks made of wood and add some nails to harvest,
Also let's make sure you need nails to repair them as well.
Updated: Doors included
-->
<append xpath="/blocks/block
[
@name='woodWeakNoUpgradeMaster'
or @name='woodNoUpgradeMaster'
or @name='rWoodMaster'
or @name='whitePicketFenceSheet'
or @name='cntCabinetBottom'
or @name='cntCupboardCabinetRedTopClosed'
or @name='cntWoodDesk01Closed'
or @name='cntSecureStorageChest'
or @name='endTable'
or @name='ladderWood'
or @name='window03Wood'
or @name='secureDoorWooden'
or @name='houseFrontDoor1_v1'
or @name='houseFrontDoor2_v1'
]">
<drop event="Harvest" name="resourceNail" count="1,2" tag="nailsHarvest"/>
</append>
<append xpath="/blocks/block
[
@name='woodWeakNoUpgradeMaster'
or @name='woodNoUpgradeMaster'
or @name='rWoodMaster'
or @name='whitePicketFenceSheet'
or @name='cntCabinetBottom'
or @name='cntCupboardCabinetRedTopClosed'
or @name='cntWoodDesk01Closed'
or @name='cntSecureStorageChest'
or @name='endTable'
or @name='ladderWood'
or @name='window03Wood'
or @name='secureDoorWooden'
or @name='houseFrontDoor1_v1'
or @name='houseFrontDoor2_v1'
]
/property
[
@class='RepairItems'
]">
<property name="resourceNail" value="2"/>
</append>
thats awesome! How do i add Nails the the recipes of several Items? Like secured chests, claw hammer, chairs, in 1 Modlet like you did for blocks?here you go
Code:let's find all the blocks made of wood and add some nails to harvest, also let's make sure you need nails to repair them as well. Updated: Doors included --> <append xpath="/blocks/block [ @name='woodweaknoupgrademaster' or @name='woodnoupgrademaster' or @name='rwoodmaster' or @name='whitepicketfencesheet' or @name='cntcabinetbottom' or @name='cntcupboardcabinetredtopclosed' or @name='cntwooddesk01closed' or @name='cntsecurestoragechest' or @name='endtable' or @name='ladderwood' or @name='window03wood' or @name='securedoorwooden' or @name='housefrontdoor1_v1' or @name='housefrontdoor2_v1' ]"> <drop event="harvest" name="resourcenail" count="1,2" tag="nailsharvest"/> </append> <append xpath="/blocks/block [ @name='woodweaknoupgrademaster' or @name='woodnoupgrademaster' or @name='rwoodmaster' or @name='whitepicketfencesheet' or @name='cntcabinetbottom' or @name='cntcupboardcabinetredtopclosed' or @name='cntwooddesk01closed' or @name='cntsecurestoragechest' or @name='endtable' or @name='ladderwood' or @name='window03wood' or @name='securedoorwooden' or @name='housefrontdoor1_v1' or @name='housefrontdoor2_v1' ] /property [ @class='repairitems' ]"> <property name="resourcenail" value="2"/> </append>
<append xpath="/recipes/recipe
[
@name='------'
or @name='meleeToolClawHammer'
]
/property
[
@class='repairitems'
]">
<property name="resourcenail" value="2"/>
</append>
Close i think, but more like, i just want to add nails to the requirred list of materials need to craft.i think yoiu mean this, its only an idea. All Wood Things (chairs, secure chests) are in here) if i remember right. And for items play with this code around.
with the item names i thinkCode:<append xpath="/recipes/recipe [ @name='------' or @name='meleeToolClawHammer' ] /property [ @class='repairitems' ]"> <property name="resourcenail" value="2"/> </append>
[color=#DCDCD2]<recipe name="meleeToolSledgehammerStone" count="1" tags="perkSkullCrusher">[/color]
[color=#DCDCD2]<ingredient name="resourceRockSmall" count="10"/>[/color]
[color=#DCDCD2]<ingredient name="resourceYuccaFibers" count="10"/>[/color]
[color=#DCDCD2]<ingredient name="resourceWood" count="10"/>
[/color][color=#DCDCD2]<ingredient name="[/color]resourceNail[color=#DCDCD2]" count="?"/>[/color]
[color=#DCDCD2]</recipe>[/color]
I was hoping for an easy edit lol. Is it possible to "insert" Nails into a recipe?
Can we do something like this?
<append xpath="/blocks/block
[
@name='woodWeakNoUpgradeMaster'
or @name='woodNoUpgradeMaster'
or @name='rWoodMaster'
or @name='whitePicketFenceSheet'
or @name='cntCabinetBottom'
or @name='cntCupboardCabinetRedTopClosed'
or @name='cntWoodDesk01Closed'
or @name='cntSecureStorageChest'
or @name='endTable'
or @name='ladderWood'
or @name='window03Wood'
or @name='secureDoorWooden'
or @name='houseFrontDoor1_v1'
or @name='houseFrontDoor2_v1'
]">
<drop event="Harvest" name="resourceNail" count="1,2" tag="nailsHarvest"/>
</append>
But instead, use recipes, so we can insert nails into multiple recipes with 1 code?
<append xpath="/recipes/recipe
[
@name='workbench'
or @name='meleeToolShovelSteel'
or @name='meleeToolShovelIron'
or @name='meleeToolPickaxeSteel'
or @name='meleeToolPickaxeIron'
or @name='meleeToolFireaxeSteel'
]">
</append>
Try these, for Testing. 2 nails.Give me a list of Items (names) and amount of nails you want , and i try it to make it running
Getting a block error trying out this code.Here You Go
Code:Let's find all the blocks made of wood and add some nails to harvest, Also let's make sure you need nails to repair them as well. Updated: Doors included --> <append xpath="/blocks/block [ @name='woodWeakNoUpgradeMaster' or @name='woodNoUpgradeMaster' or @name='rWoodMaster' or @name='whitePicketFenceSheet' or @name='cntCabinetBottom' or @name='cntCupboardCabinetRedTopClosed' or @name='cntWoodDesk01Closed' or @name='cntSecureStorageChest' or @name='endTable' or @name='ladderWood' or @name='window03Wood' or @name='secureDoorWooden' or @name='houseFrontDoor1_v1' or @name='houseFrontDoor2_v1' ]"> <drop event="Harvest" name="resourceNail" count="1,2" tag="nailsHarvest"/> </append> <append xpath="/blocks/block [ @name='woodWeakNoUpgradeMaster' or @name='woodNoUpgradeMaster' or @name='rWoodMaster' or @name='whitePicketFenceSheet' or @name='cntCabinetBottom' or @name='cntCupboardCabinetRedTopClosed' or @name='cntWoodDesk01Closed' or @name='cntSecureStorageChest' or @name='endTable' or @name='ladderWood' or @name='window03Wood' or @name='secureDoorWooden' or @name='houseFrontDoor1_v1' or @name='houseFrontDoor2_v1' ] /property [ @class='RepairItems' ]"> <property name="resourceNail" value="2"/> </append>
Getting a block error trying out this code.
View attachment 30021
Heres the Modlet Download
Only mod installed for test
<configs>
Let's find all the blocks made of wood and add some nails to harvest,
Also let's make sure you need nails to repair them as well.
Updated: Doors included
-->
<append xpath="/blocks/block
[
@name='woodWeakNoUpgradeMaster'
or @name='woodNoUpgradeMaster'
or @name='rWoodMaster'
or @name='whitePicketFenceSheet'
or @name='cntCabinetBottom'
or @name='cntCupboardCabinetRedTopClosed'
or @name='cntWoodDesk01Closed'
or @name='cntSecureStorageChest'
or @name='endTable'
or @name='ladderWood'
or @name='window03Wood'
or @name='secureDoorWooden'
or @name='houseFrontDoor1_v1'
or @name='houseFrontDoor2_v1'
]">
<drop event="Harvest" name="resourceNail" count="1,2" tag="nailsHarvest"/>
</append>
<append xpath="/blocks/block
[
@name='woodWeakNoUpgradeMaster'
or @name='woodNoUpgradeMaster'
or @name='rWoodMaster'
or @name='whitePicketFenceSheet'
or @name='cntCabinetBottom'
or @name='cntCupboardCabinetRedTopClosed'
or @name='cntWoodDesk01Closed'
or @name='cntSecureStorageChest'
or @name='endTable'
or @name='ladderWood'
or @name='window03Wood'
or @name='secureDoorWooden'
or @name='houseFrontDoor1_v1'
or @name='houseFrontDoor2_v1'
]
/property
[
@class='RepairItems'
]">
<property name="resourceNail" value="2"/>
</append>
</configs>
Thats why i uloaded my Modlet cause the pics come out small lol. Cant find my error log either since a18