Jump to content

Zombie Damage modding


Beardedbob

Recommended Posts

Hello, sorry, wandered away for a bit.

 

What extends does is it basically copies all the properties of the block you extended into the new block. A block with just 'extends' will be an exact copy of the other block. You can then write in all your properties you want to have unique to this block. It is largely a way of saving having to write everything out over and over.

 

The reason your 'extended' Titanium wasn't appearing in your creative menu is that the 'Master' blocks have CreativeMode set to "none". Have to overwrite that in the individual bloc to "Player" or "Dev". Though wait, you are saying it -does- show up in your creative menu? Hmm. Idk, maybe the CreativeMode property isn't properly inherited?

 

The reason it would be invisible in your inventory is that a bunch of blocks that are never supposed to -be- in your inventory don't have proper inventory icons. This will happen a lot with new objects unless you give them a "CustomIcon" property. You can use any existing one, and you can modify it with "CustomIconTint", and an RGB color value in hex. Look that up on google if you want to play around with it, you can find sites that will give you hex values for any color you like.

 

And the reason something wouldn't show up in your workbench is you need to make a new recipe in recipes.xml for any new block you want to show up there.

 

Good on you for figuring out "CanPickUp". Sorry for my mistake with TakeDelay, I was just scanning the code for a property that looked right, as I didn't know it off the top of my head. And I am glad you worked out how to do the "Downgrade to itself" thing.

Link to comment
Share on other sites

Hello, sorry, wandered away for a bit.

 

What extends does is it basically copies all the properties of the block you extended into the new block. A block with just 'extends' will be an exact copy of the other block. You can then write in all your properties you want to have unique to this block. It is largely a way of saving having to write everything out over and over.

 

The reason your 'extended' Titanium wasn't appearing in your creative menu is that the 'Master' blocks have CreativeMode set to "none". Have to overwrite that in the individual bloc to "Player" or "Dev". Though wait, you are saying it -does- show up in your creative menu? Hmm. Idk, maybe the CreativeMode property isn't properly inherited?

 

The reason it would be invisible in your inventory is that a bunch of blocks that are never supposed to -be- in your inventory don't have proper inventory icons. This will happen a lot with new objects unless you give them a "CustomIcon" property. You can use any existing one, and you can modify it with "CustomIconTint", and an RGB color value in hex. Look that up on google if you want to play around with it, you can find sites that will give you hex values for any color you like.

 

And the reason something wouldn't show up in your workbench is you need to make a new recipe in recipes.xml for any new block you want to show up there.

 

Good on you for figuring out "CanPickUp". Sorry for my mistake with TakeDelay, I was just scanning the code for a property that looked right, as I didn't know it off the top of my head. And I am glad you worked out how to do the "Downgrade to itself" thing.

 

Hi dreamdancer. You've helped me more than you know. You gave me a good start and from there I just had to figure it out. It takes ages to smash down a missed pleased stainless steel block to nothing with a pick, so much better to pick up the block. although it does have a small downside. You can sometimes pick one up accidentally! lol Thanks again.

Link to comment
Share on other sites

Hi every one. I am an admin of my own server and in the past, have been looking at ways to make a block that cannot be broken by zombies or hackers alike. I have seen on you tube where hackers had completely destroyed a base. This concerns me greatly. I have manged with a lot of help from mod'ers on these pages in the past to make a stainless steel block that cannot be destroyed and so had to be picked up instead. This works grait but for one thing, it cannot be painted with the paint tool. Can someone here please help me again? I need a way to ether make the new block with a textured finish or a way to paint any textured finish.

Her is the code for the stainless steel block I'm using.

 

<block id="1776" name="stainlessSteelBlock">

<property name="Extends" value="stainlessSteelMaster"/>

<property name="DowngradeBlock" value="rConcreteBlock"/>

<property name="Collide" value="movement"/>

<property name="CanPickup" value="true"/>

</block>

 

In game this block works. But cannot be painted, nothing sticks to it. There must be a way to give this block a textured finish or a way to allow to be painted. Thank you for any advice.

Link to comment
Share on other sites

In game this block works. But cannot be painted, nothing sticks to it. There must be a way to give this block a textured finish or a way to allow to be painted. Thank you for any advice.

 

Extend from a block that can be painted.

Link to comment
Share on other sites

Extend from a block that can be painted.

 

Hi xyth. Thanks for posting. This is wired. I took your advice and mad a block that can be painted, but still can't be destroyed.

Here is the code.

 

<block id="2043" name="Titanium">

<property name="Extends" value="rConcreteMaster"/>

<property name="Group" value="Building"/>

<property name="Material" value="Mbedrock"/>

<property name="Texture" value="315"/>

 

Whats wired about it is when hit with the pick it makes that sound when hitting something out or near the trader! lol Take a look at the code, is there any way I can improve it? I could not see the block until it's pleased on the ground. And please remember, I am very new at moding.

Link to comment
Share on other sites

Hi xyth. Thanks for posting. This is wired. I took your advice and mad a block that can be painted, but still can't be destroyed.

Here is the code.

 

<block id="2043" name="Titanium">

<property name="Extends" value="rConcreteMaster"/>

<property name="Group" value="Building"/>

<property name="Material" value="Mbedrock"/>

<property name="Texture" value="315"/>

 

Whats wired about it is when hit with the pick it makes that sound when hitting something out or near the trader! lol Take a look at the code, is there any way I can improve it? I could not see the block until it's pleased on the ground. And please remember, I am very new at moding.

 

It's ok I'v done it!

Code.

 

<block id="2043" name="Titanium">

<property name="Extends" value="rConcreteMaster"/>

<property name="CustomIcon" value="rConcreteMaster"/>

<property name="Group" value="Building"/>

<property name="Material" value="Mbedrock"/>

<property name="Texture" value="315"/>

<property name="PassThroughDamage" value="false"/>

</block>

 

Now, if I upbraid the block to stainless steel the block can be destroyed.

Link to comment
Share on other sites

It's ok I'v done it!

Code.

 

<block id="2043" name="Titanium">

<property name="Extends" value="rConcreteMaster"/>

<property name="CustomIcon" value="rConcreteMaster"/>

<property name="Group" value="Building"/>

<property name="Material" value="Mbedrock"/>

<property name="Texture" value="315"/>

<property name="PassThroughDamage" value="false"/>

</block>

 

Now, if I upbraid the block to stainless steel the block can be destroyed.

 

In the blocks XML there is free space between 2030 and 2041 so can numbers between 2031 and 2042 be used for new blocks?

Link to comment
Share on other sites

yes, you can use any numbers that aren't in use.

 

Hi dreamdancer. Thank you. I should have listened to you in the first place, it was a far better solution than the one i chose. Using Bedrock is a good idea. Just one thing though, is Mbedrock available in game to use in the work bench?

Link to comment
Share on other sites

Hmm? Like as a material to use in a recipe? No, there is no raw bedrock floating around. I mean, there is, kinda, but you can't break it or pick it up because it is bedrock, and you wouldn't want to because doing so would create a hole through the bottom of the world.

 

But your block doesn't need to be constructed out of bedrock. You can make a recipe for it out of anything. You could have a recipe of 2 plant fibers that made an indestructible block that happened to have the material quality Mbedrock if you wanted. You just have to add a new recipe to recipes.xml, with the name of the block you want to make, the ingredients, and the workstation it is made in.

Link to comment
Share on other sites

Hmm? Like as a material to use in a recipe? No, there is no raw bedrock floating around. I mean, there is, kinda, but you can't break it or pick it up because it is bedrock, and you wouldn't want to because doing so would create a hole through the bottom of the world.

 

But your block doesn't need to be constructed out of bedrock. You can make a recipe for it out of anything. You could have a recipe of 2 plant fibers that made an indestructible block that happened to have the material quality Mbedrock if you wanted. You just have to add a new recipe to recipes.xml, with the name of the block you want to make, the ingredients, and the workstation it is made in.

 

Thank you dreamdancer. I will look at that very soon, sounds like a good idear. I am still learning to code and keep getting stuck. I'v got two blocks of code working in game. Here.

 

<block id="1779" name="Titanium">

<property name="Extends" value="rConcreteMaster"/>

<property name="CustomIcon" value="rConcreteMaster"/>

<property name="Group" value="Building"/>

<property name="Material" value="Mbedrock"/>

<property name="Texture" value="315"/>

<property name="PassThroughDamage" value="false"/>

</block>

 

<block id="1780" name="rConcreteBlock">

<property name="Extends" value="Titanium"/>

<property name="CustomIcon" value="rConcreteMaster"/>

<property name="Group" value="Building"/>

<property name="Material" value="Mbedrock"/>

<property name="Texture" value="315"/>

<property name="PassThroughDamage" value="false"/>

</block>

 

But the third one, this one here.

 

<block id="1781" name="rConcretePlate">

<property name="Extends" value="Titanium"/>

<property name="CustomIcon" value="rConcreteMaster"/>

<property name="Group" value="Building"/>

<property name="Material" value="Mbedrock"/>

<property name="Texture" value="315"/>

<property name="Model" value="rConcretePlate"/>

<property name="PassThroughDamage" value="false"/>

</block>

 

Don't show up in the game. I honestly can't see what is wrong. None of the block ID's I have picked are in use. I thought maybe you would help me just a little? Can you see where I'v gone wrong? Thanks again.

Link to comment
Share on other sites

Thank you dreamdancer. I will look at that very soon, sounds like a good idear. I am still learning to code and keep getting stuck. I'v got two blocks of code working in game. Here.

 

<block id="1779" name="Titanium">

<property name="Extends" value="rConcreteMaster"/>

<property name="CustomIcon" value="rConcreteMaster"/>

<property name="Group" value="Building"/>

<property name="Material" value="Mbedrock"/>

<property name="Texture" value="315"/>

<property name="PassThroughDamage" value="false"/>

</block>

 

<block id="1780" name="rConcreteBlock">

<property name="Extends" value="Titanium"/>

<property name="CustomIcon" value="rConcreteMaster"/>

<property name="Group" value="Building"/>

<property name="Material" value="Mbedrock"/>

<property name="Texture" value="315"/>

<property name="PassThroughDamage" value="false"/>

</block>

 

But the third one, this one here.

 

<block id="1781" name="rConcretePlate">

<property name="Extends" value="Titanium"/>

<property name="CustomIcon" value="rConcreteMaster"/>

<property name="Group" value="Building"/>

<property name="Material" value="Mbedrock"/>

<property name="Texture" value="315"/>

<property name="Model" value="rConcretePlate"/>

<property name="PassThroughDamage" value="false"/>

</block>

 

Don't show up in the game. I honestly can't see what is wrong. None of the block ID's I have picked are in use. I thought maybe you would help me just a little? Can you see where I'v gone wrong? Thanks again.

 

It's ok now I have done it. At long last. The penny drop't eventsjuly. There only one item i could not get to work anf that was the Concrete Stairs corner. I had 3 different errors on blocks when game was booting. Did not writ them down. But here is what ai have so far.

 

<block id="1781" name="Titanium">

<property name="Extends" value="rConcretePlate"/>

<property name="CustomIcon" value="rConcretePlate"/>

<property name="Group" value="Building"/>

<property name="Material" value="Mbedrock"/>

<property name="Texture" value="315"/>

<property name="Model" value="Plate"/>

<property name="PassThroughDamage" value="false"/>

</block>

 

<block id="1782" name="Titanium">

<property name="Extends" value="rConcreteWedge"/>

<property name="CustomIcon" value="rConcreteWedge"/>

<property name="Group" value="Building"/>

<property name="Material" value="Mbedrock"/>

<property name="Texture" value="315"/>

<property name="Model" value="wedge60"/> <property name="Place" value="TowardsPlacerInverted"/>

<property name="PassThroughDamage" value="false"/>

</block>

 

<block id="1783" name="Titanium">

<property name="Extends" value="rConcreteWedgeTip"/>

<property name="CustomIcon" value="rConcreteWedgeTip"/>

<property name="Group" value="Building"/>

<property name="Material" value="Mbedrock"/>

<property name="Texture" value="315"/>

<property name="Model" value="wedge60_tip"/> <property name="Place" value="TowardsPlacerInverted"/>

<property name="PassThroughDamage" value="false"/>

</block>

 

<block id="1784" name="Titanium">

<property name="Extends" value="rConcreteRamp"/>

<property name="CustomIcon" value="rConcreteRamp"/>

<property name="Group" value="Building"/>

<property name="Material" value="Mbedrock"/>

<property name="Texture" value="315"/>

<property name="Model" value="ramp"/> <property name="Place" value="TowardsPlacerInverted"/>

<property name="PassThroughDamage" value="false"/>

</block>

 

<block id="1785" name="Titanium">

<property name="Extends" value="rConcreteCNRFull"/>

<property name="CustomIcon" value="rConcreteCNRFull"/>

<property name="Group" value="Building"/>

<property name="Material" value="Mbedrock"/>

<property name="Texture" value="315"/>

<property name="Model" value="ramp_outside_corner"/>

<property name="PassThroughDamage" value="false"/>

</block>

 

<block id="1786" name="Titanium">

<property name="Extends" value="rConcreteStairs25"/>

<property name="CustomIcon" value="rConcreteStairs25"/>

<property name="Group" value="Building"/>

<property name="Material" value="Mbedrock"/>

<property name="Texture" value="315"/>

<property name="Model" value="StairsFilledVerticalUV"/> <property name="Place" value="TowardsPlacerInverted"/>

<property name="UseGlobalUV" value="Global"/>

<property name="Stairs"/> <!-- this tells the game to use special treatment for stairs so that textures render "sideways" along the steps and risers -->

<property name="ImposterExchange" value="imposterRamp" param1="91"/>

<property name="PassThroughDamage" value="false"/>

</block>

 

<block id="1787" name="Titanium">

<property name="Extends" value="rConcretePole"/>

<property name="CustomIcon" value="rConcretePole"/>

<property name="Group" value="Building"/>

<property name="Material" value="Mbedrock"/>

<property name="Texture" value="315"/>

<property name="LightOpacity" value="0"/>

<property name="Model" value="pole_square"/>

<property name="UseGlobalUV" value="Local"/>

<property name="PassThroughDamage" value="false"/>

</block>

 

And it's all working perfectly. I have been given some thought about what you said about making a recipe for it out of anything. Could I say Extends cobble stone and use Cobble stone and say cement? I think if that would work it would be more realistic. I would like to know your thoughts? Thanks again dreamdancer.

Link to comment
Share on other sites

It's ok now I have done it. At long last. The penny drop't eventsjuly. There only one item i could not get to work anf that was the Concrete Stairs corner. I had 3 different errors on blocks when game was booting. Did not writ them down. But here is what ai have so far.

 

<block id="1781" name="Titanium">

<property name="Extends" value="rConcretePlate"/>

<property name="CustomIcon" value="rConcretePlate"/>

<property name="Group" value="Building"/>

<property name="Material" value="Mbedrock"/>

<property name="Texture" value="315"/>

<property name="Model" value="Plate"/>

<property name="PassThroughDamage" value="false"/>

</block>

 

<block id="1782" name="Titanium">

<property name="Extends" value="rConcreteWedge"/>

<property name="CustomIcon" value="rConcreteWedge"/>

<property name="Group" value="Building"/>

<property name="Material" value="Mbedrock"/>

<property name="Texture" value="315"/>

<property name="Model" value="wedge60"/> <property name="Place" value="TowardsPlacerInverted"/>

<property name="PassThroughDamage" value="false"/>

</block>

 

<block id="1783" name="Titanium">

<property name="Extends" value="rConcreteWedgeTip"/>

<property name="CustomIcon" value="rConcreteWedgeTip"/>

<property name="Group" value="Building"/>

<property name="Material" value="Mbedrock"/>

<property name="Texture" value="315"/>

<property name="Model" value="wedge60_tip"/> <property name="Place" value="TowardsPlacerInverted"/>

<property name="PassThroughDamage" value="false"/>

</block>

 

<block id="1784" name="Titanium">

<property name="Extends" value="rConcreteRamp"/>

<property name="CustomIcon" value="rConcreteRamp"/>

<property name="Group" value="Building"/>

<property name="Material" value="Mbedrock"/>

<property name="Texture" value="315"/>

<property name="Model" value="ramp"/> <property name="Place" value="TowardsPlacerInverted"/>

<property name="PassThroughDamage" value="false"/>

</block>

 

<block id="1785" name="Titanium">

<property name="Extends" value="rConcreteCNRFull"/>

<property name="CustomIcon" value="rConcreteCNRFull"/>

<property name="Group" value="Building"/>

<property name="Material" value="Mbedrock"/>

<property name="Texture" value="315"/>

<property name="Model" value="ramp_outside_corner"/>

<property name="PassThroughDamage" value="false"/>

</block>

 

<block id="1786" name="Titanium">

<property name="Extends" value="rConcreteStairs25"/>

<property name="CustomIcon" value="rConcreteStairs25"/>

<property name="Group" value="Building"/>

<property name="Material" value="Mbedrock"/>

<property name="Texture" value="315"/>

<property name="Model" value="StairsFilledVerticalUV"/> <property name="Place" value="TowardsPlacerInverted"/>

<property name="UseGlobalUV" value="Global"/>

<property name="Stairs"/> <!-- this tells the game to use special treatment for stairs so that textures render "sideways" along the steps and risers -->

<property name="ImposterExchange" value="imposterRamp" param1="91"/>

<property name="PassThroughDamage" value="false"/>

</block>

 

<block id="1787" name="Titanium">

<property name="Extends" value="rConcretePole"/>

<property name="CustomIcon" value="rConcretePole"/>

<property name="Group" value="Building"/>

<property name="Material" value="Mbedrock"/>

<property name="Texture" value="315"/>

<property name="LightOpacity" value="0"/>

<property name="Model" value="pole_square"/>

<property name="UseGlobalUV" value="Local"/>

<property name="PassThroughDamage" value="false"/>

</block>

 

And it's all working perfectly. I have been given some thought about what you said about making a recipe for it out of anything. Could I say Extends cobble stone and use Cobble stone and say cement? I think if that would work it would be more realistic. I would like to know your thoughts? Thanks again dreamdancer.

 

OK I have looked at recipes and I have come up with this but don't know for sure it would work.

 

<recipe name="MbedrockMix" count="1" craft_area="cementMixer">

<ingredient name="crushedSand" count="1"/>

<ingredient name="cobblestones" count="4"/>

<ingredient name="cement" count="1"/>

</recipe>

 

Would this work by itself? When the block is dry would it be Mbedrock? And have the same beaver as my block in block xml? I just don't know without trying it.

Link to comment
Share on other sites

Hi dreamdancer. I need to tap into your infinite wisdom. I am at a dilemma. I have the Titanium Schematic, that's in game and works. I also have the Titanium mix for the cement Mixer. Both concrete mix and Titanium mix are in the cement Mixer and have the same icon. But to distinguish the difference between them I use small stone in the concrete mix and cobble stone in the Titanium mix. Now, that's fine and they both work has they should. That is until they both stack in the same pile and then the Titanium mix becomes plain old concrete! I just can't win. How can I fix this?

Here is my work so far.

 

 

<item id="1466" name="TitaniumSchematic">

<property name="Extends" value="schematicMaster" />

<property name="CustomIcon" value="BookMaster" />

<property class="Action1">

<property name="Recipes_to_learn" value="Titanium" />

</property>

</item>

 

<recipe name="concreteMix" count="1" craft_area="cementMixer">

<property name="Extends" value="Titanium" />

<ingredient name="crushedSand" count="1" />

<ingredient name="cobblestones" count="2" />

<ingredient name="cement" count="1" />

</recipe>

 

I hope you can help. Thanks again.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...