I've been trying to get my feet wet in creating custom recipes and QoL changes.
Currently two projects are eluding me.
PROJECT ONE
Attempting to add a functioning flashlight to the compound bow.
This has resulted in being able to attach the light to the bow, I'm still too basic to worry about finding a place for the model to graphically appear. BUT it is non activateable, despite having the ActivateObject property. <---see? Basic
PROJECT TWO - Solved (Many thanks Guppy)
Any pointers?
Currently two projects are eluding me.
PROJECT ONE
Attempting to add a functioning flashlight to the compound bow.
Code:
<item id="147" name="compoundBow">
<property name="Meshfile" value="Items/Weapons/Ranged/Bows/CompoundBow/CompoundBowPrefab"/>
<property name="Material" value="Mplastics"/>
<property name="RepairTools" value="repairKit"/>
<property name="HoldType" value="53"/>
<property name="DegradationBreaksAfter" value="false"/>
<property name="Attachments" value="flashlight02"/>
<property name="SoundJammed" value="ItemNeedsRepair"/>
<property name="SoundDestroy" value="wooddestroy1"/>
<property name="CrosshairOnAim" value="false"/> <!-- aimTest -->
<property name="CrosshairUpAfterShot" value="false"/>
<property class="Parts">
<property name="Stock" value="partsCompoundBow_body"/>
<property name="Receiver" value="partsCompoundBow_grip"/>
<property name="Pump" value="partsCompoundBow_parts"/>
<property name="Barrel" value="partsCompoundBow_string"/>
</property>
<property class="Action0">
<property name="Class" value="Catapult"/>
<!-- Catapult might not be the best name for it but it can also be used for a slingshot -->
<property name="Hitmask_override" value="Arrow"/>
<property name="Delay" value="1"/>
<property name="Crosshair_min_distance" value="30"/> <!-- 30 -->
<property name="Crosshair_max_distance" value="30"/> <!-- 30 -->
<property name="Magazine_size" value="1"/>
<property name="Magazine_items" value="arrow,ironArrow,steelArrow,flamingArrow"/>
<property name="Rays_spread" value="0.011"/>
<property name="Reload_time" value="0.9"/>
<property name="Bullet_icon" value="uzi"/>
<property name="Sound_start" value="bow_fire"/>
<property name="Sound_repeat" value=""/>
<property name="Sound_end" value=""/>
<property name="Sound_empty" value="weapon_empty"/>
<property name="Sound_reload" value="bow_reload"/>
<property name="Sound_draw" value="bow_draw"/>
<property name="Sound_cancel" value="bow_fire_cancel"/>
<property name="Particles_muzzle_fire" value="nozzleflashuzi"/>
<property name="Particles_muzzle_smoke" value="nozzlesmokeuzi"/>
<property name="Max_strain_time" value="0.43"/>
<!-- ammunition can override Exp values
<property name="ActionExp" value="3"/>
<property name="ActionExpBonusMultiplier" value="3"/>-->
</property>
<property class="Action1">
<property name="Class" value="Zoom"/>
<property name="Zoom_max_out" value="38"/>
<property name="Zoom_max_in" value="38"/>
</property>
<property name="LightSource" value="lightSource"/> <!-- Start: Needed for the attachment flashlight -->
<property name="ActivateObject" value="Attachments/flashlight/lightSource"/>
<property name="AttachmentFlashlight" value="flashlight02"/> <!-- End: Needed for the attachment flashlight -->
<property name="Group" value="Ammo/Weapons"/>
<property name="ActionSkillGroup" value="Archery"/>
<property name="CraftingSkillGroup" value="craftSkillWeapons"/>
<property name="RepairExpMultiplier" value="5.5"/>
<property name="PickupJournalEntry" value="alternateAmmoTip"/>
</item>

PROJECT TWO - Solved (Many thanks Guppy)
Attempting to add a flashlight to the cowboy hat black
item
recipe
This results in all the recipes in the crafting list disappearing....
I did search for similar issues and found someone saying that all recipes after one of their entries were invisible, no matter where in the list they placed it. However my item is at the bottom of the list but one and all the recipes except those produced in the forge have gone.
item
Code:
<item id="1509" name="blackCowboyHatLamp">
<property name="Extends" value="cowboyHat"/>
<property name="CustomIcon" value="cowboyHat"/>
<property name="LightSource" value="Entities/Lighting/miningHelmetLightSource"/>
<property name="ActivateObject" value="miningHelmetLightSource(Clone)"/>
<property name="CustomIconTint" value="87,87,87"/>
<property name="HoldType" value="7"/>
<property name="Meshfile" value="Items/Clothing/Head/PrefabCowboyhat"/>
<property class="UMA">
<property name="Overlay0Tint" value="87,87,87"/>
</property>
<property name="LightValue" value="0.7"/>
</item>
Code:
<recipe name="cowboyHatLamp" count="1" craft_area="workbench">
<ingredient name="blackCowboyHat" count="1"/>
<ingredient name="flashlight02" count="1"/>
<ingredient name="electricParts" count="8"/>
<ingredient name="ductTape" count="5"/>
</recipe>
I did search for similar issues and found someone saying that all recipes after one of their entries were invisible, no matter where in the list they placed it. However my item is at the bottom of the list but one and all the recipes except those produced in the forge have gone.
Any pointers?
Last edited by a moderator: