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

Modded Block not showing up in game

Zolokhan

Refugee
I have been modding for years but I have no clue why this block is not showing up ...

The other blocks in the blocks.xml mod folder work and show up but these do not. I copy and pasted them straight from the config blocks file ... all i did was rename them and change "shapes=ALL to shapes='Basic"

I am making a mod that requires me to remove all block shapes except squares and ramps and I cannot change the vanilla shapes:varient helper since it kills all the POIs from loading so I need to make a dummy block that works exactly like the variant helpers but restricts the shapes you can make with them ...

This is what ond of the block entries looks like :

<block name="zolokhanwoodShapes" shapes="Basic">
<property name="DescriptionKey" value="woodGroupDesc"/>
<property name="Material" value="Mwood_shapes"/>
<property name="Shape" value="New"/>
<property name="DisplayType" value="blockHardened"/>
<property name="Texture" value="241"/>
<property name="UiBackgroundTexture" value="241"/>
<property name="FuelValue" value="500"/>
<property name="EconomicValue" value="10"/>
<property name="EconomicBundleSize" value="20"/>
<property class="RepairItems">
<property name="resourceWood" value="3"/>
</property>
<drop event="Harvest" name="resourceWood" count="2" tag="allHarvest,lumberjackHarvest,perkJunkMiner"/>
<drop event="Destroy" count="0"/>
<drop event="Fall" name="terrDestroyedWoodDebris" count="1" prob="0.75" stick_chance="1"/>
<property class="UpgradeBlock">
<property name="ToBlock" value="zolokhancobblestoneShapes"/>
<property name="Item" value="resourceCobblestones"/>
<property name="ItemCount" value="10"/>
<property name="UpgradeHitCount" value="4"/>
</property>
<property name="UpgradeSound" value="place_block_wood"/>
<property name="SoundPickup" value="woodblock_grab"/>
<property name="SoundPlace" value="woodblock_place"/>
<property name="SortOrder1" value="S000"/>
<!-- SortOrder2 is assigned in code to keep all of the shapes in the same order for each material -->
<property name="Group" value="Building,advBuilding"/>
<property name="Tags" value="wood"/>
<property name="FilterTags" value="MC_Shapes"/>
</block>

The blocks above this work using the append path but this one is not showing up in creative and the recipe list is giving an error that this block does not exist. Usually the initilization would give me back errors but it loads block.xml fine and only gives me the error when it loads recipes because it cannot find this block . But the block is there .... i do not get it.

Thank you for anyone who can help with this ...
 
Hi Zolokhan

You can add this to your block so you can see it in Creative. If it doesn't show the icon, just add it.
<property name="CreativeMode" value="Player"/>

Have you checked the recipe code carefully, in case there are any extra letters or characters?

Regards
Gouki
 
Thanks for the reply ... I have no idea what is wrong this time, I have made new blocks before but this time I am stuck .

the recipe is this

<recipe name="zolokhanwoodShapes:VariantHelper" count="1">

<ingredient name="resourceWood" count="10"/>


</recipe>

it is all very basic

It is still not showing up in creative
 
I ran a test and the error in the recipes is due to the block, since I changed shapes: All to Basic.
I changed it to All and it loads recipes.xml without a problem.
It must be linked to everything or it could be hardcoded, I don't know.

Regards
Gouki
 
I notcied that Bulletrpoof Glass has a master that can only be shaped into a few blocks ... I am tryingto duplicate that limited shape menu for other blocks but not having luck.

The main goal of this is to increase game difficulty by limiting block choices because after so many years of playing this I found too many cheezy block combos ... also my mod re-introduces corpse blocks and they can be mitigated by using plates and poles to not allow corpse blocks to spawn in . .. this made the game too easy. Only allowing myself to use the most basic shapes would allow corpse blocks to appear again normally.
I know I could just play the game and "choose" not to use them but I want to publich this mod and make eveyone suffer . . .lol
 
i got it working but it was a pain in the 🤬🤬🤬 ... i could not find a way to make the variant helpers NOT use all the blocks so I had to make a new version of each block ANd all the shapes i wanted to use so they upgrade correctly. Seems a long dumb way ... limiting block shapes is very time consuming.
 
Back
Top