Minecraftmodcustomstuff Wiki
Register
Advertisement
CS1 Custom Stuff 1

Information presented below this line is outdated syntax or information used for Custom Stuff 1. It will not work with Custom Stuff 2.

Resistance, in terms of Minecraft, is how well a block holds up against explosions. When creating Custom Stuff blocks, it's important to set the resistance at the correct level so that the block you create will hold up as well as players expect it to. Failing to do this will often result in a nasty shock the first time a creeper comes around.

The syntax for this is fairly straight forward. Add a line similar to the following to your .block file, changing the variable (number) to another valid integer to suit your creation.

resistance=2;

Resistances in the Vanilla Game[]

Because it's difficult to guess at resistances of existing blocks, the table below shows many of the common blocks in the game and their resistances.[1] You don't need to use these values, but may instead use them to gauge how resistant you want your block to be. For example, if you want it more blast resistant than stone, but less so than End Stone you will want to choose a number between 30 and 45. Naturally some testing will be required to find the balance you feel is perfect.

Air 0
Bed 1
Bedrock 18,000,000
Bookshelf 7.5
Brick 30
Cactus 2
Cake 2.5
Chest 12.5
Coal Ore 15
Cobblestone 30
Clay (block) 3
Crafting Table 12.5
Diamond Block 30
Diamond Ore 15
Dirt 2.5
Dispenser 17.5
Enchantment Table 6,000
End Stone 45
Farmland 3
Fence 15
Fire 0
Flowers 0
Furnace 17.5
Gold (block) 30
Gold Ore 15
Glass 1.5
Glowstone 1.5
Grass 2.5
Gravel 3
Ice 2.5
Iron Bars 30
Iron (block) 30
Iron Door 25
Iron Ore 15
Jack-O-Lantern 5
Jukebox 30
Ladder 2
Lapis Lazuli (block) 15
Lapis Lazuli Ore 15
Lava 500
Lava (flowing) 0
Leaves 1
Lever 2.5
Mellon (block) 5
Monster Spawner 25
Moss Stone 30
Mushrooms 0
Mycelium 2.5
Nether Brick 30
Nether Brick Fence 30
Nether Brick Stairs 30
Netherrack 2
Note Block 4
Obsidian 6,000
Pressure Plates 2.5
Pumpkin 5
Portal (block) 0
Redstone Ore 15
Redstone Repeater 0
Redstone Torch 0
Redstone (wire) 0
Sand 2.5
Sandstone 4
Sapling 0
Sign 5
Sponge 3
Slabs 30
Snow 0.5
Snow (block) 1
Soul Sand 2.5
Stone 30
Stone Brick 30
Stone Button 2.5
Stone Stairs 30
Sugar Cane 0
TNT 0
Torch 0
Vines[2] 1
Water 500
Water (flowing) 500
Wood 10
Wooden Plank 15
Wooden Stairs 15
Wheat 0
  1. Information for the table above was copied from the Explosion entry on minecraftwiki.net.
  2. http://www.minecraftwiki.net/wiki/Vines

IMPORTANT ISSUE: Each of these values has to be divided by 3 to work as intended. If anyone wants to check just look at the source code of the class net.minecraft.server.block and look for durability, you will find this: this.durability = (f * 3.0F); with f being the value you input.

Advertisement