AntOfThy

Ant's Improved Timber Mod

Dec 7th, 2014
977
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.38 KB | None | 0 0
  1. Ant's Improved Timber Mod
  2. by AntOfThy (on MineCraft, Reddit, PasteBin, YouTube, and GMail)
  3. Comment in Reddit: http://redd.it/2opa3x
  4. Commands to Paste: http://pastebin.com/Wm3xC6BM
  5.  
  6. Previous versions of the timber mod caused trees to instantly decapitate,
  7. if a log is thrown at a tree, or you grow a tree close to wood logs from
  8. a previous decapitation. That meant if you dropped or chopped a log, any wood
  9. logs near by would suddenly be harvested! That was bad news for players build
  10. wooden houses!
  11.  
  12. This version does not have that problem, as the effect can only be initiated
  13. by using a special item, the 'Golden Timber Axe'. In other words this version
  14. will not effect normal game play. Just don't throw it at trees too close to
  15. your log cabin.
  16.  
  17. How you use it is you are given (perhaps as a reward) a special
  18. ' Golden Timber Axe '
  19. This axe is quite OP in its own right as it insta-mines wood when used
  20. normally. In that case however it would wear out as even with strong
  21. unbreaking it will only get a few hundred uses.
  22.  
  23. Now if you throw the special axe next to a tree, the tree will disintegrate
  24. into a shower of logs, harvesting it completely in moments. After a moment the
  25. axe and all the logs just harvested will become inert, and chain reaction
  26. stops. This does not effect the axes durability.
  27.  
  28. Unfortunately Acacia and Dark Oak Tree logs are different to all other logs,
  29. and as such will not work (unless you double the number of command blocks
  30. used). Thanks a lot Mojang!
  31.  
  32. Setup - Once only
  33. /scoreboard objectives add Timber dummy
  34.  
  35. Give a special axe to a player (adjust to suit)
  36.  
  37. # Golden 'Timber' Axe - Efficiency X Unbreaking X
  38. # The efficiency is important as it can not be enchanted in game
  39. /give @p minecraft:golden_axe 1 0 {display:{Name:Timber},ench:[0:{id:32s,lvl:10s},1:{id:34s,lvl:10s}]}
  40.  
  41. # Unbreakable version (unbreakable state is hidden)
  42. /give @p minecraft:golden_axe 1 0 {display:{Name:Timber},ench:[0:{id:32s,lvl:10s},1:{id:34s,lvl:10s}],Unbreakable:1,HideFlags:4}
  43.  
  44.  
  45. Fast Fill clock...
  46.  
  47. # Identify Special Axe - make it a 'Timber Entity' (do not use 'Set')
  48. /scoreboard players add @e[type=Item] Timber 0 {Item:{id:"minecraft:golden_axe",tag:{display:{Name:"Timber"},ench:[0:{id:32s,lvl:10s}]}}}
  49.  
  50. # Increment Timber count - so Timber effect will timeout (20 ticks)
  51. # NB: this timeout is also in all following commands.
  52. /scoreboard players add @e[score_Timber=20] Timber 1
  53.  
  54. # Find Log Entities near 'Timber' entity and make them 'Timber' entities
  55. /execute @e[score_Timber=20] ~ ~ ~ /scoreboard players add @e[r=1,type=Item] Timber 0 {Item:{id:minecraft:log}}
  56.  
  57. # Destroy any log block near a 'Timber' entity
  58. /execute @e[score_Timber=20] ~1 ~ ~ detect ~ ~ ~ log -1 /setblock ~ ~ ~ air 0 destroy
  59. /execute @e[score_Timber=20] ~-1 ~ ~ detect ~ ~ ~ log -1 /setblock ~ ~ ~ air 0 destroy
  60. /execute @e[score_Timber=20] ~ ~ ~1 detect ~ ~ ~ log -1 /setblock ~ ~ ~ air 0 destroy
  61. /execute @e[score_Timber=20] ~ ~ ~-1 detect ~ ~ ~ log -1 /setblock ~ ~ ~ air 0 destroy
  62. /execute @e[score_Timber=20] ~ ~1 ~ detect ~ ~ ~ log -1 /setblock ~ ~ ~ air 0 destroy
  63.  
  64. Redstone Notes:
  65.  
  66. * The Axe is very OP, and is only given to players who has harvested a full
  67. single chest of wood logs, or 1728 logs (via a 'Achievements Mod' ).
  68.  
  69. * I generally expand the setblock tests to include ALL diagonally upward
  70. neighbours around the 'Timber' entity - total 9 testing command blocks
  71.  
  72. * You can expand it further to detect/setblock all neighbours.
  73. That is 8 on same level and 9 in layer above.
  74. This allows it to handle the branches of Jungle and Large Oak trees.
  75.  
  76. * The above can be made to work for Acacia and Dark Oak Trees
  77. by duplicating the 'Find Log Entities' and 'SetBlock Destory' commands to
  78. look for minecraft:log2 entities and blocks. I have also done this.
  79.  
  80. * I do not include a test for any log block below the enity. I did not feel
  81. It was necessary, and actually can save you trouble if you drop the axe on
  82. a log floor.
  83.  
  84. * It would have been better if all the setblock commands could be replaced by
  85. a single fill-destroy command. Unfortunately that command does not let you
  86. specify a 'replacement' block, so just destroys everything in the area,
  87. including leaves (which is not bad) but also stone, dirt and whatever else
  88. tree may be close to the tree, including a sloped ground. Arrgghhhh....
Advertisement
Add Comment
Please, Sign In to add comment