• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Can't pick / damage custom Item

Headquake

New member
So i made a 3d object in blender , transfer it unity and try to turn it in asset library .unity3d , so i can import it in came and make it a custom paint that can be craft etc.. So far my only problem is it can't be pick or damage and im not sure why . If anyone could help me figure out what wrong ( i got a feeling it's the unity part and not my xml. files ) . I use unity version 2022.3.50f1 ( i'm on stable 1.3 ) . Would really appreciate if someone can help me figure out what wrong .

Block.xml 

<configs>
    
        <append xpath="/blocks">


        <block name="Cyburn_1">
            <property name="CustomIcon" value="Cyburn_1" />
            <property name="Material" value="Mglass" />
            <property name="Shape" value="ModelEntity" />
            <property name="MultiBlockDim" value="1,1,1"/>
            <property name="Model" value="#@modfolder:Resources/Cyburn_1.unity3d?Cyburn_1.prefab" />
            <property name="Place" value="TowardsPlacerInverted"/>
            <property name="CanPickup" value="true" />
            <property name="Collide" value="sight,movement,melee,bullet,arrow,rocket" />
            <property name="DescriptionKey" value="Pinups" />
            <drop event="Destroy" count="0" />
            <drop event="Destroy" name="paper" count="1" prob="1" />
            <drop event="Fall" name="paper" count="0" prob="1" stick_chance="1" />
            <drop event="Fall" name="paper" count="1" prob=".75" stick_chance="1" />
        </block>
        </append>
</configs>

 

recipes xml

<configs>
        <append xpath="/recipes" >
        <!-- 2x3 -->
            <recipe name="Cyburn_1" count="1" craft_area="workbench">
                <ingredient name="resourceWood" count="40"/>
                <ingredient name="resourceNail" count="16"/>
                <ingredient name="resourceBrokenGlass" count="25"/>
            </recipe>            
        </append> 
</configs>

ebXTLaY.png
KUAJEUk.png
i8MpTsq.png
OIcLsrg.png


 
Last edited by a moderator:
Looks like you don't have it tagged. Best way to do it is only use a collider on the top parent, and tag it T_Block. And I would just use a box collider instead of a mesh collider for a simple block like that.

You can find Xyth's post in the Tutorial section I think and download his sample Unity project. There is a TagManager asset you can copy to your project to give you most the tags needed.

image.png

 
Last edited by a moderator:
So i did as you say and change to a box collider and fix the tag . But sadly it didn't seem to change anything in game , same result and i can't see a difference . Still can't pick it or interact. 
tSubXaf.png


 
Back
Top