Jump to content

Open Community  ·  153 members

7 Days To Die

Recommended Posts

Posted (edited)

Hello newbie in modding here!

I'm trying to make a mod for 7 Days To Die v2.1. My goal is to have the player create a tombstone and that tombstone give the player a quest in which he has to kill 20 blood moon zombies, at the end if the player survives he is given 20,000 dukes and 5k experience. 

 

This is my code but it is not working, can you help me fix it? 

 

ModInfo.xml

Quote

<?xml version="1.0" encoding="UTF-8" ?>
<xml>
        <Name value="SilentaceFartsMode" />
        <DisplayName value="Silentace Farts Mode" />
        <Version value="1.0.0" />
        <Description value="A server-side mod that allows crafting a tombstone without a workbench. Interacting with the tombstone triggers a quest that plays screamer sounds and spawns 20 Blood Moon zombies." />
        <Author value="Silentace" />
        <Website value="" />
</xml>

Localization.txt

Quote

Key,Source,Context,English
tombstoneSilentaceDesc,items,Tombstone Description,A mysterious tombstone that can be crafted without a workbench. Interact with it to trigger a dangerous quest involving screamer calls and a zombie horde.
questSilentaceFarts_tip,quests,Quest Tip,The tombstone has been activated! Brace for three screamer calls and a horde of 20 Blood Moon zombies!

Blocks.xml

Quote

<configs>
    <append xpath="/blocks">
        <!-- Define the Tombstone Block -->
        <block name="cntTombstoneSilentace">
            <property name="Extends" value="cntTombstonePlayer"/>
            <property name="CustomIcon" value="cntTombstonePlayer"/>
            <property name="DescriptionKey" value="tombstoneSilentaceDesc"/>
            <property name="Class" value="CommandBlock"/>
            <property name="CreativeMode" value="None"/>
            <property name="Material" value="Mstone"/>
            <property name="Shape" value="ModelEntity"/>
            <property name="Model" value="#Entities/Decor?Tombstone01Prefab.prefab"/>
            <property name="Place" value="TowardsPlacer"/>
            <property name="IsTerrainDecoration" value="true"/>
            <property name="CanPickup" value="false"/>
            <property name="FilterTags" value="fdecor,fother"/>
            <property name="SortOrder1" value="a080"/>
            <property name="SortOrder2" value="0000"/>
            <property class="RepairItems">
                <property name="resourceStone" value="10"/>
            </property>
            <drop event="Destroy" count="0"/>
            <drop event="Fall" name="terrStone" count="1" prob="0.5"/>
            <property name="EconomicValue" value="50"/>
            <property class="Action0">
                <property name="Class" value="Activate"/>
                <property name="Delay" value="1"/>
                <property name="UseTime" value="2"/>
                <property name="Sound_start" value="open_trash_can"/>
                <property name="Command" value="givequest questSilentaceFarts"/>
            </property>
        </block>
    </append>
</configs>

items.xml

Quote

<configs>
    <append xpath="/items">
        <!-- Define the Tombstone Item -->
        <item name="Silentace's_Tombstone">
            <property name="HoldType" value="45"/>
            <property name="Meshfile" value="#Other/Items?Misc/sackPrefab.prefab"/>
            <property name="DropMeshfile" value="#Other/Items?Misc/sack_droppedPrefab.prefab"/>
            <property name="Material" value="Mstone"/>
            <property name="Weight" value="10"/>
            <property name="Stacknumber" value="1"/>
            <property name="EconomicValue" value="50"/>
            <property name="Group" value="Resources"/>
            <property name="CraftingSkillGroup" value="craftSkillMiscellaneous"/>
            <property name="CustomIcon" value="cntTombstonePlayer"/>
            <property name="DescriptionKey" value="tombstoneSilentaceDesc"/>
            <effect_group tiered="false">
                <triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="tombstoneSilentacePlaced" value="1"/>
            </effect_group>
            <property name="Place" value="cntTombstoneSilentace"/>
        </item>
    </append>
</configs>

quests.xml

Quote

<configs>
    <append xpath="/quests">
        <!-- Define the Silentace Farts Quest -->
        <quest id="questSilentaceFarts">
            <property name="group_name_key" value="Silentace Farts Quest"/>
            <property name="name_key" value="Silentace Farts Tombstone Quest"/>
            <property name="subtitle_key" value="Activate the tombstone to unleash the horde!"/>
            <property name="description_key" value="You have activated the Silentace Tombstone. Prepare for a horde of zombies as the screamer's call echoes three times!"/>
            <property name="icon" value="ui_game_symbol_zombie"/>
            <property name="category_key" value="quest"/>
            <property name="difficulty" value="hard"/>
            <property name="shareable" value="false"/>
            <action type="ShowTip" value="questSilentaceFarts_tip">
                <property name="message" value="The tombstone has been activated! Brace for three screamer calls and a horde of 20 Blood Moon zombies!"/>
            </action>
            <objective type="InteractWithNPC">
                <property name="phase" value="1"/>
                <property name="id" value="cntTombstoneSilentace"/>
            </objective>
            <action type="PlaySound" value="screamer_horde" phase="1">
                <property name="repeat" value="3"/>
                <property name="delay" value="5"/>
            </action>
            <action type="SpawnEnemy" id="zombieBoe,zombieJoe,zombieMoe,zombieArlene,zombieDarlene,zombieMarlene,zombieSteve,zombieYo,zombieBusinessMan,zombieBurnt" count="20" phase="1"/>
            <reward type="Exp" value="5000"/>
            <reward type="Item" id="casinoCoin" value="1000"/>
        </quest>
    </append>
</configs>

recipes.xml

Quote

<configs>
    <append xpath="/recipes">
        <!-- Recipe for crafting the Tombstone without a workbench -->
        <recipe name="tombstoneSilentace" count="1" craft_area="player" craft_time="10">
            <ingredient name="resourceStone" count="50"/>
            <ingredient name="resourceClayLump" count="10"/>
            <ingredient name="resourceWood" count="5"/>
        </recipe>
    </append>
</configs>

Localization.txt ModInfo.xml blocks.xml items.xml quests.xml recipes.xml

Edited by Silentace01
Added clarification
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...