Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ant's Improved Timber Mod
- by AntOfThy (on MineCraft, Reddit, PasteBin, YouTube, and GMail)
- Comment in Reddit: http://redd.it/2opa3x
- Commands to Paste: http://pastebin.com/Wm3xC6BM
- Previous versions of the timber mod caused trees to instantly decapitate,
- if a log is thrown at a tree, or you grow a tree close to wood logs from
- a previous decapitation. That meant if you dropped or chopped a log, any wood
- logs near by would suddenly be harvested! That was bad news for players build
- wooden houses!
- This version does not have that problem, as the effect can only be initiated
- by using a special item, the 'Golden Timber Axe'. In other words this version
- will not effect normal game play. Just don't throw it at trees too close to
- your log cabin.
- How you use it is you are given (perhaps as a reward) a special
- ' Golden Timber Axe '
- This axe is quite OP in its own right as it insta-mines wood when used
- normally. In that case however it would wear out as even with strong
- unbreaking it will only get a few hundred uses.
- Now if you throw the special axe next to a tree, the tree will disintegrate
- into a shower of logs, harvesting it completely in moments. After a moment the
- axe and all the logs just harvested will become inert, and chain reaction
- stops. This does not effect the axes durability.
- Unfortunately Acacia and Dark Oak Tree logs are different to all other logs,
- and as such will not work (unless you double the number of command blocks
- used). Thanks a lot Mojang!
- Setup - Once only
- /scoreboard objectives add Timber dummy
- Give a special axe to a player (adjust to suit)
- # Golden 'Timber' Axe - Efficiency X Unbreaking X
- # The efficiency is important as it can not be enchanted in game
- /give @p minecraft:golden_axe 1 0 {display:{Name:Timber},ench:[0:{id:32s,lvl:10s},1:{id:34s,lvl:10s}]}
- # Unbreakable version (unbreakable state is hidden)
- /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}
- Fast Fill clock...
- # Identify Special Axe - make it a 'Timber Entity' (do not use 'Set')
- /scoreboard players add @e[type=Item] Timber 0 {Item:{id:"minecraft:golden_axe",tag:{display:{Name:"Timber"},ench:[0:{id:32s,lvl:10s}]}}}
- # Increment Timber count - so Timber effect will timeout (20 ticks)
- # NB: this timeout is also in all following commands.
- /scoreboard players add @e[score_Timber=20] Timber 1
- # Find Log Entities near 'Timber' entity and make them 'Timber' entities
- /execute @e[score_Timber=20] ~ ~ ~ /scoreboard players add @e[r=1,type=Item] Timber 0 {Item:{id:minecraft:log}}
- # Destroy any log block near a 'Timber' entity
- /execute @e[score_Timber=20] ~1 ~ ~ detect ~ ~ ~ log -1 /setblock ~ ~ ~ air 0 destroy
- /execute @e[score_Timber=20] ~-1 ~ ~ detect ~ ~ ~ log -1 /setblock ~ ~ ~ air 0 destroy
- /execute @e[score_Timber=20] ~ ~ ~1 detect ~ ~ ~ log -1 /setblock ~ ~ ~ air 0 destroy
- /execute @e[score_Timber=20] ~ ~ ~-1 detect ~ ~ ~ log -1 /setblock ~ ~ ~ air 0 destroy
- /execute @e[score_Timber=20] ~ ~1 ~ detect ~ ~ ~ log -1 /setblock ~ ~ ~ air 0 destroy
- Redstone Notes:
- * The Axe is very OP, and is only given to players who has harvested a full
- single chest of wood logs, or 1728 logs (via a 'Achievements Mod' ).
- * I generally expand the setblock tests to include ALL diagonally upward
- neighbours around the 'Timber' entity - total 9 testing command blocks
- * You can expand it further to detect/setblock all neighbours.
- That is 8 on same level and 9 in layer above.
- This allows it to handle the branches of Jungle and Large Oak trees.
- * The above can be made to work for Acacia and Dark Oak Trees
- by duplicating the 'Find Log Entities' and 'SetBlock Destory' commands to
- look for minecraft:log2 entities and blocks. I have also done this.
- * I do not include a test for any log block below the enity. I did not feel
- It was necessary, and actually can save you trouble if you drop the axe on
- a log floor.
- * It would have been better if all the setblock commands could be replaced by
- a single fill-destroy command. Unfortunately that command does not let you
- specify a 'replacement' block, so just destroys everything in the area,
- including leaves (which is not bad) but also stone, dirt and whatever else
- tree may be close to the tree, including a sloped ground. Arrgghhhh....
Advertisement
Add Comment
Please, Sign In to add comment