Real life? What is this "real life" you speak of?Yeh I messed with it some, and ended up not caring; I figure what does a high quality light do better? Thanks for the catch though.
At any rate, swapping things around a bit today; if I can get what I want done, I'll push another version.
Real life stuff pending.
Ah so that is what those sounds are....It's that crap you hear from outside your headphones...
Excellent. You'll have to let me know how you set the lights up in unity too please. :-DCanpickup doesn't work with the light class. Annoying as frack.
After holidays I'll revisit the mod some, though.
<configs>
<append xpath="/recipes">
<recipe name="lanternRed" count="1" craft_area="workbench" tags="learnable">
<ingredient name="resourceForgedIron" count="2"/>
<ingredient name="resourceScrapPolymers" count="2"/>
<ingredient name="resourceElectricParts" count="4"/>
<ingredient name="resourceHeadlight" count="1"/>
</recipe>
<recipe name="flashlightYellow" count="1" craft_area="workbench" tags="learnable">
<ingredient name="resourceForgedIron" count="2"/>
<ingredient name="resourceScrapPolymers" count="2"/>
<ingredient name="resourceElectricParts" count="4"/>
<ingredient name="resourceHeadlight" count="1">
</recipe>
<recipe name="lampTable" count="1" craft_area="workbench" tags="learnable">
<ingredient name="resourceForgedIron" count="2"/>
<ingredient name="resourceScrapPolymers" count="2"/>
<ingredient name="resourceElectricParts" count="5"/>
<ingredient name="resourceHeadlight" count="1"/>
</recipe>
<recipe name="lampDesk" count="1" craft_area="workbench" tags="learnable">
<ingredient name="resourceForgedIron" count="2"/>
<ingredient name="resourceScrapPolymers" count="2"/>
<ingredient name="resourceElectricParts" count="5"/>
<ingredient name="resourceHeadlight" count="1"/>
</recipe>
<recipe name="lightWork" count="1" craft_area="workbench" tags="learnable">
<ingredient name="resourceForgedIron" count="5"/>
<ingredient name="resourceDuctTape" count="2"/>
<ingredient name="resourceElectricParts" count="8"/>
<ingredient name="resourceHeadlight" count="1"/>
</recipe>
</append>
</configs>
<block name="lanternDecorLight">
<property name="Extends" value="porchLight01"/>
<property name="Model" value="Entities/Lighting/lanternDecorPrefab"/>
</block>
<block name="flashlightDecor">
<property name="Extends" value="porchLight01"/>
<property name="Model" value="Entities/Lighting/flashlightDecorPrefab"/> <property name="HandleFace" value="Bottom"/>
</block>
<block name="workLightPOI">
<property name="Extends" value="porchLight01" param1="HandleFace"/>
<property name="Model" value="Entities/Lighting/work_lightPrefab"/>
<property name="DisplayType" value="blockMulti" />
<property name="MultiBlockDim" value="1,2,1"/>
<property name="Collide" value="melee,bullet,arrow,rocket,movement"/>
</block>
I just added a recipe for the constructionlight in the mod, havent tried that on any other POI lights in the game. And I used the recipe for the spotlight as a base, so same ingredients..Quasimiyao, you had a working set of code that made the vanilla ones craftable, is it possible I could try out that code as well? That would be lovely to have a look at it.
<configs>
<append xpath="/recipes">
<recipe name="ConstructionLight" count="1" craft_area="workbench">
<ingredient name="resourceHeadlight" count="1"/>
<ingredient name="resourceElectricParts" count="8"/>
<ingredient name="resourceDuctTape" count="2"/>
<ingredient name="resourceScrapIron" count="50"/>
</recipe>
</append>
</configs>
I'm sorry that my answer was confusing!No worries, but I am a little confused about what you're asking for; you want the red lights and green lamps to drop and be placeable as well?
That will be an easy add-on, and I'll include it in the next update.
There is an inherent problem mixing a block with the class "light" and using "canpickup", so for now the blocks have to be destroyed to drop.
I hope that answers your questions.
<configs>
<append xpath="/recipes">
<recipe name="lanternDecorLightPlayer" count="1" craft_area="workbench">
<ingredient name="resourceForgedIron" count="2"/>
<ingredient name="resourceScrapPolymers" count="5"/>
<ingredient name="resourceElectricParts" count="4"/>
<ingredient name="resourceHeadlight" count="1"/>
</recipe>
<recipe name="flashlightDecorPlayer" count="1" craft_area="workbench">
<ingredient name="resourceForgedIron" count="2"/>
<ingredient name="resourceScrapPolymers" count="5"/>
<ingredient name="resourceElectricParts" count="4"/>
<ingredient name="resourceHeadlight" count="1">
</recipe>
<recipe name="worklightDecorPlayer" count="1" craft_area="workbench">
<ingredient name="resourceForgedIron" count="5"/>
<ingredient name="resourceDuctTape" count="2"/>
<ingredient name="resourceElectricParts" count="8"/>
<ingredient name="resourceHeadlight" count="1"/>
</recipe>
<recipe name="lampdeskDecorPlayer" count="1" craft_area="workbench">
<ingredient name="resourceForgedIron" count="2"/>
<ingredient name="resourceScrapPolymers" count="5"/>
<ingredient name="resourceElectricParts" count="5"/>
<ingredient name="resourceHeadlight" count="1"/>
</recipe>
<recipe name="lamptableDecorPlayer" count="1" craft_area="workbench">
<ingredient name="resourceForgedIron" count="2"/>
<ingredient name="resourceScrapPolymers" count="5"/>
<ingredient name="resourceElectricParts" count="5"/>
<ingredient name="resourceHeadlight" count="1"/>
</recipe>
</append>
</configs>
<configs>
<append xpath="/blocks">
<!-- Block Begin Here -->
<block name="lanternDecorLightPlayer">
<property name="Extends" value="lanternDecorLight"/>
<property name="Class" value="PlayerLight,mods"/>
<property name="CustomIcon" value="lanternDecorLight"/>
<property name="CreativeMode" value="Player"/>
<property name="TakeDelay" value="2"/>
<property name="RuntimeSwitch" value="true"/>
<property name="Model" value="Entities/Lighting/lanternDecorPrefab"/>
</block>
<block name="flashlightDecorPlayer">
<property name="Extends" value="flashlightDecor"/>
<property name="Class" value="PlayerLight,mods"/>
<property name="CustomIcon" value="flashlightDecor"/>
<property name="CreativeMode" value="Player"/>
<property name="TakeDelay" value="1"/>
<property name="RuntimeSwitch" value="true"/>
<property name="Model" value="Entities/Lighting/flashlightDecorPrefab"/> <property name="HandleFace" value="Bottom"/>
</block>
<block name="worklightDecorLightPlayer">
<property name="Extends" value="workLightPOI"/>
<property name="Class" value="PlayerLight,mods"/>
<property name="CustomIcon" value="workLightPOI"/>
<property name="CreativeMode" value="Player"/>
<property name="TakeDelay" value="2"/>
<property name="RuntimeSwitch" value="true"/>
<property name="Model" value="Entities/Lighting/work_lightPrefab"/>
</block>
<block name="lampdeskDecorPlayer">
<property name="Extends" value="deskLampLight"/>
<property name="Class" value="PlayerLight,mods"/>
<property name="CustomIcon" value="deskLampLight">
<property name="CreativeMode" value="Player"/>
<property name="TakeDelay" value="2"/>
<property name="RuntimeSwitch" value="true"/>
<property name="Model" value="Entities/Lighting/desk_lampPrefab"/>
</block>
<block name="lamptableDecorPlayer">
<property name="Extends" value="tableLampLight"/>
<property name="Class" value="PlayerLight,mods"/>
<property name="CustomIcon" value="deskLampLight">
<property name="CreativeMode" value="Player"/>
<property name="TakeDelay" value="2"/>
<property name="RuntimeSwitch" value="true"/>
<property name="Model" value="Entities/Lighting/table_lampPrefab"/>
</block>
<!-- Block End Here -->
</append>
</configs>
It's not? Ok, going to go beat up sphereii.Guppy, can you please talk to sphereii and get your modlets on the launcher, please!
If I remember correctly, Guppy or someone mentioned that they are decorations only at the moment so nothing can really be done with them at the moment. I don't know why decorations are limited but I think it may have even be earlier in this thread that it was mentioned.So I tried some coding and came up with this for the recipes.All I'm trying to do is make the lights able to be crafted, placed, turned on, and hopefully be able to be picked up at least in a claim block zone.