Page 1 of 11 123 ... LastLast
Results 1 to 15 of 159

Thread: Working Ovens and Sinks

  1. #1
    Colony Founder Valmar's Avatar
    Join Date
    Jan 2015
    Posts
    4,121
    Rep Power
    1

    Working Ovens and Sinks

    I made some ovens and sinks you can craft that actually function. You can cook in the stove or fill your jar with clean water from the sink. Getting water from the sink uses the left mouse click.

    My mod modified the glassjar so you'll have to replace yours with mine or just add the change to your own. The rest can just be copy/pasted at the end of the corresponding file.

    Items:
    Spoiler: 

    Code:
    <item id="1368" name="emptyJar">
    	<property name="Meshfile" value="Items/Food/emptyJarPrefab" />
    	<property name="Material" value="glass" />
    	<property name="HoldType" value="3" />
    	<property name="Stacknumber" value="15" /> <!-- STK resource -->
    	<property name="Weight" value="10" />
    	<property name="CraftingIngredientTime" value="9" />
    		<property class="Action0">
    			<!-- UseAction -->
    			<property name="Class" value="ExchangeItem" />
    			<property name="Delay" value="1.0" />
    			<property name="Change_item_to" value="bottledWater" />
    			<property name="Focused_blockname_1" value="workingCabinetSink" />
    			<property name="Focused_blockname_2" value="workingGranitSink" />
    			<property name="Sound_start" value="bucketfill_water" />
    		</property>
    	<property class="Action1"> <!-- UseAction -->
    		<property name="Class" value="ExchangeItem" />
    		<property name="Delay" value="1.0" />
    		<property name="Change_item_to" value="bottledRiverWater" />
    		<property name="Do_block_action" value="deplete1" />
    		<property name="Focused_blockname_1" value="water" />
    		<property name="Focused_blockname_2" value="waterMoving" />
    		<property name="Focused_blockname_3" value="waterStaticBucket" />
    		<property name="Focused_blockname_4" value="waterMovingBucket" />
    		<property name="Focused_blockname_5" value="waterSource8" />
    		<property name="Sound_start" value="bucketfill_water" />
    	</property>
    	<property name="Group" value="Resources" />
    </item>


    Blocks:
    Spoiler: 

    Code:
    	   
    	<!-- Working Oven and Sink Mod -->
    	<block id="1748" name="workstationOven">
    		<property name="DescriptionKey" value="workstationOvenDesc"/>
    		<property name="Class" value="Campfire" />
    		<property name="CustomIcon" value="cntWallOven" />
    		<property name="Place" value="TowardsPlacerInverted" />
    		<property name="Stacknumber" value="1" />
    		<property name="Material" value="wood_weak" />
    		<property name="Texture" value="346,345,341,345,262,345" />
    		<property name="LootList" value="130" />
    		<drop event="Destroy" name="workstationOven" count="1" />
    		<drop event="Fall" name="woodDebris" count="1" prob="1.0"  stick_chance=".75" />
    		<property name="HeatMapStrength" value="1"/>
    		<property name="HeatMapTime" value="1200"/>
    		<property name="HeatMapFrequency" value="25"/>
    		<property name="Group" value="Food/Cooking,Decor" />
    		<property name="ActiveRadiusEffects" value="+heatSource(3)"/>
    		<property class="Workstation">
    			<property name="Modules" value="tools,output,input"/>
    			<property name="CraftingAreaRecipes" value="campfire" />
    		</property>
    	</block>
    	<block id="1749" name="workingGranitSink">
    		<property name="DescriptionKey" value="WorkingSinkDesc"/>
    		<property name="Extends" value="cntGraniteSink" />
    		<property name="CustomIcon" value="cntGraniteSink" />
    		<property name="Class" value="SecureLoot" />
    		<property name="LootList" value="130" />
    	</block>
    	<block id="1750" name="workingCabinetSink">
    		<property name="DescriptionKey" value="WorkingSinkDesc"/>
    		<property name="Extends" value="cntCabinetOldSink" />
    		<property name="CustomIcon" value="cntCabinetOldSink" />
    		<property name="Class" value="SecureLoot" />
    		<property name="LootList" value="130" />
    	</block>



    Loot:
    Spoiler: 

    Code:
    		    <!--Working Oven and Sink -->
        <lootcontainer id="130" size="10,9" sound_open="UseActions/open_cupboard" sound_close="UseActions/close_cupboard" >
    	</lootcontainer>


    xui.xml (be sure to keep </ruleset> AND </xui> at the bottom of the file)
    Spoiler: 
    Code:
    		<window_group name="workstation_workstationOven" controller="XUiC_WorkstationWindowGroup">
    			<window name="windowCraftingList"/>
    			<window name="craftingInfoPanel"/>
    			<window name="windowCraftingQueue"/>
    			<window name="windowToolsCampfire" />
    			<window name="windowOutput" />
    			<window name="windowNonPagingHeader" />
    		</window_group>



    recipes.xml
    Spoiler: 
    Code:
            <!--Working Ovens and Sinks Mod -->
        <recipe name="workstationOven" count="1" scrapable="False" >
            <ingredient name="forgedIron" count="20" />
            <ingredient name="cookingGrill" count="2" />
        </recipe>
        <recipe name="workingCabinetSink" count="1" scrapable="False" >
            <ingredient name="wood" count="15" />
            <ingredient name="forgedIron" count="10"/>
            <ingredient name="shortMetalPipe" count="5"/>
        </recipe>
        <recipe name="workingGranitSink" count="1" scrapable="False" >
            <ingredient name="wood" count="15" />
            <ingredient name="cobblestones" count="5" />
            <ingredient name="forgedIron" count="10"/>
            <ingredient name="shortMetalPipe" count="5"/>
        </recipe>


    Optional:
    Add this to the Localization file located in the config folder
    Spoiler: 

    workstationOven,blocks,Block Building,,Working Oven,,
    workstationOvenDesc,blocks,Block Building,,This working oven can be used to cook many different recipes without using a fuel source.,,
    WorkingSinkDesc,blocks,Block Building,,This working can be used as a source of clean water. Fill your jars with water by left-clicking with them.,,
    workingGranitSink,blocks,Block Building,,Granite Sink,,
    workingCabinetSink,blocks,Block Building,,Cabinet Sink,,
    Last edited by Valmar; 09-22-2017 at 11:34 PM. Reason: minor adjustment

  2. #2
    Community Moderator SylenThunder's Avatar
    Join Date
    Oct 2014
    Location
    SE Michigan, out in the sticks.
    Posts
    8,030
    Rep Power
    1
    Curious, why didn't you just modify the existing item 1076 wallOven?

    I've been using the mod from this thread for forever.
    Code:
    <block id="1076" name="wallOven">    <property name="Class" value="Campfire" />
        <property name="Material" value="wood" />
        <property name="Texture" value="346,345,341,345,262,345" />
        <property name="IsTerrainDecoration" value="true" />
        <property name="ParticleName" value="campfire" />
        <property name="ParticleOffset" value="0.5,0,0.5" />
    	<property name="HeatMapStrength" value="2"/>
    	<property name="HeatMapTime" value="1200"/>
    	<property name="HeatMapFrequency" value="25"/>
        <drop event="Destroy" name="wallOven" count="1" />
        <property name="Group" value="Food/Cooking" />
      </block>

  3. #3
    Community Moderator SylenThunder's Avatar
    Join Date
    Oct 2014
    Location
    SE Michigan, out in the sticks.
    Posts
    8,030
    Rep Power
    1
    Ok, tried this out. Noticed that the granite sink is a duplicate also.
    Also, the sink works as storage, but you cannot get water from it.


    It's because your ExchangeItem action is being over-written by the default when it's reading the file. Not sure how you can work around that to get fresh water out of the sink, but for now, should likely just get the murky water using this code.


    Spoiler: 

    <item id="227" name="emptyJar">
    <property name="Meshfile" value="Items/Food/mason_jarPrefab" />
    <property name="Material" value="glass" />
    <property name="HoldType" value="3" />
    <property name="Stacknumber" value="64" />
    <property name="Weight" value="12" />
    <property class="Action1">
    <!-- UseAction -->
    <property name="Class" value="ExchangeItem" />
    <property name="Delay" value="1.0" />
    <property name="Change_item_to" value="bottledRiverWater" />
    <property name="Focused_blockname_1" value="water" />
    <property name="Focused_blockname_2" value="waterMoving" />
    <property name="Focused_blockname_3" value="waterStaticBucket" />
    <property name="Focused_blockname_4" value="waterMovingBucket" />
    <property name="Focused_blockname_5" value="toilet01" />
    <property name="Focused_blockname_6" value="toilet02" />
    <property name="Focused_blockname_7" value="toilet03" />
    <property name="Focused_blockname_8" value="Cabinet Sink" />
    <property name="Focused_blockname_9" value="Granite Sink" />
    <property name="Sound_start" value="UseActions/bucketfill_water" />
    </property>
    <property name="Group" value="Resources" />
    <property class="Preview">
    <property name="Zoom" value="28" />
    <property name="Pos" value="0,-0.05" />
    <property name="Rot" value="90,45,0" />
    </property>
    </item>

  4. #4
    Colony Founder Valmar's Avatar
    Join Date
    Jan 2015
    Posts
    4,121
    Rep Power
    1
    1. I added a new oven and sinks because I wanted this to only effect ones the user crafts and places. Not the ones found in the world. They're duplicates for that specific reason.

    2. I'm not sure what you're on about. It works fine for me. You have to left click to get clean water in my code, not right click, and it only works on sinks the user has crafted - not ones in the world.

    Edit: Tried it again. Still works fine. Even on a server. Other players could use it aswell. I'm not sure what your problem is, maybe you're entering it wrong? I can look at your XML if you'd like, see if I can detect a problem.
    Last edited by Valmar; 07-20-2015 at 03:57 AM.

  5. #5
    Community Moderator SylenThunder's Avatar
    Join Date
    Oct 2014
    Location
    SE Michigan, out in the sticks.
    Posts
    8,030
    Rep Power
    1
    Ok, not sure why it wasn't working on clicking for me then. I'll have to poke at that some more.

  6. #6
    Colony Founder Valmar's Avatar
    Join Date
    Jan 2015
    Posts
    4,121
    Rep Power
    1
    Let me know if it works out. If not, send me your code and I'll peek at it.

  7. #7
    Leader
    Join Date
    Mar 2014
    Location
    Brisbane, Australia
    Posts
    6,219
    Rep Power
    1
    The sinks etc dont show up unfort. put them all in & nothing in game

  8. #8
    Colony Founder Valmar's Avatar
    Join Date
    Jan 2015
    Posts
    4,121
    Rep Power
    1
    Are you sure you've put them in correctly? How did you look for them, the creative menu or crafting table?

    At anyrate if you need help you can share your xmls and I'll fix it. All it takes is one misplaced line and the whole thing can break.

  9. #9
    Leader
    Join Date
    Mar 2014
    Location
    Brisbane, Australia
    Posts
    6,219
    Rep Power
    1
    oh i only used your sinks. I looked for them in the creative menu

  10. #10
    Colony Founder Valmar's Avatar
    Join Date
    Jan 2015
    Posts
    4,121
    Rep Power
    1
    Did you search for them or scroll through the whole page? There are more blocks in the creative menu than just the 9 tabs show you. Have you tried manually searching for "sink" to see if it comes up? If it doesn't then you've done something wrong. In which case just send me your blocks.xml file and I'll see if I can't fix it.

  11. #11
    Leader
    Join Date
    Mar 2014
    Location
    Brisbane, Australia
    Posts
    6,219
    Rep Power
    1
    yeh i know there more then 9 lol went to the end nothing.
    will upload

  12. #12
    Survivor Kadera's Avatar
    Join Date
    Jul 2015
    Location
    New Mexico
    Posts
    90
    Rep Power
    0
    I just loaded this mod, and both the oven and the sink seem to work as intended. Only potential issue I've noticed is it might be confusing if pulling them off the creative menu, because the names are the same as the non-working versions; I ID'd the correct ones via the item numbers.

    I also noticed you boosted the stack size on empty jars to 64. Good idea, actually -- I've gone ahead and increased the stack size on filled jars as well as goldenrod tea jars in my configs to match.

    Anyway, thanks Valmar -- your mods have been an absolute joy to enhance the game. I love the idea of being able to set up a place with a proper working kitchen.

  13. #13
    Colony Founder Valmar's Avatar
    Join Date
    Jan 2015
    Posts
    4,121
    Rep Power
    1
    Ah actually I forgot about the stack size. The server I play on has increased the stack size of a lot of items to make storage less like tetris. I guess I had that left-over when i shared. I'll change that back for those who prefer vanilla values but I'm glad you enjoyed it nevertheless.

  14. #14
    Community Moderator SylenThunder's Avatar
    Join Date
    Oct 2014
    Location
    SE Michigan, out in the sticks.
    Posts
    8,030
    Rep Power
    1
    Stack size is mostly irrelevant atm with the "default" being 500 in vanilla now. I wouldn't worry about it much.

    Modified the sinks so that you can repair the damaged versions.

    Spoiler: 


    <block id="1553" name="Granite Sink Damaged">
    <property name="CustomIcon" value="graniteSink" />
    <property name="Stacknumber" value="1" />
    <property name="Class" value="Loot" />
    <property name="Material" value="wood" />
    <property name="Place" value="TowardsPlacerInverted" />
    <property name="Texture" value="373,228,262,228,228,228" />
    <property name="LootList" value="130" />
    <property class="UpgradeBlock">
    <property name="ToBlock" value="Granite Sink" />
    <property name="Item" value="woodPlank" />
    <property name="ItemCount" value="4" />
    <property name="UpgradeHitCount" value="4" />
    </property>
    <drop event="Destroy" name="Granite Sink Damaged" count="1" />
    <drop event="Fall" name="woodDebris" count="1" prob="1.0" stick_chance=".75" />
    </block>


    <block id="1555" name="Cabinet Sink Damaged">
    <property name="Class" value="Loot" />
    <property name="Stacknumber" value="1" />
    <property name="CustomIcon" value="cabinetOldSink" />
    <property name="Place" value="TowardsPlacerInverted" />
    <property name="Material" value="wood" />
    <property name="Texture" value="374,84,79,80,80,80" />
    <property name="LootList" value="130" />
    <drop event="Destroy" name="Cabinet Sink Damaged" count="1" />
    <drop event="Fall" name="woodDebris" count="1" prob="1.0" stick_chance=".75" />
    <property class="UpgradeBlock">
    <property name="ToBlock" value="Cabinet Sink" />
    <property name="Item" value="woodPlank" />
    <property name="ItemCount" value="4" />
    <property name="UpgradeHitCount" value="4" />
    </property>
    </block>


  15. #15
    Colony Founder Valmar's Avatar
    Join Date
    Jan 2015
    Posts
    4,121
    Rep Power
    1
    You already could repair them, just not with an item. Your way is more elegant though. Lol.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •