Advertisement
Guest User

Can I simplify this?

a guest
Feb 17th, 2019
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.84 KB | None | 0 0
  1. import crafttweaker.block.IBlock;
  2. import crafttweaker.block.IBlockDefinition;
  3. import crafttweaker.block.IBlockProperties;
  4.  
  5. import crafttweaker.item.IItemStack;
  6. import crafttweaker.item.IItemDefinition;
  7.  
  8. //0.2
  9. val HB2 = [
  10.     <minecraft:tallgrass:*>,
  11.     <minecraft:deadbush>,
  12.     <minecraft:double_plant:*>
  13. ] as IItemStack[];
  14. //2
  15. val HB20 = [
  16.     <minecraft:grass>,
  17.     <minecraft:dirt>,
  18.     <minecraft:grass_path>,
  19.     <minecraft:farmland>//,
  20.     //<minecraft:double_plant:*>
  21. ] as IItemStack[];
  22. //3
  23. val HB30 = [
  24.     <minecraft:log:*>,
  25.     <minecraft:log2:*>
  26. ] as IItemStack[];
  27. val HB50 = [] as IItemStack[];
  28.  
  29.  
  30. //blocks harder to break
  31. for block in HB2{
  32.     block.hardness = 0.2;
  33. }
  34. for block in HB20{
  35.     block.hardness = 2.0;
  36. }
  37. for block in HB30{
  38.     block.hardness = 3.0;
  39. }
  40. for block in HB50{
  41.     block.hardness = 5.0;
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement