Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ::section config
- name: Enhanced Hoes
- enable-math:true
- shape: wall
- max-height: 6
- import:
- #Relative Blocks (BETA TEST)
- yLuBwShx
- include-success:false
- ::section settings
- # Edit the duplication chances per hoe tier (0-100%):
- #
- $shortcut chanceWood 5
- $shortcut chanceStone 10
- $shortcut chanceIron 20
- $shortcut chanceGold 30
- $shortcut chanceDiamond 55
- #
- #
- #
- #
- #
- #
- #
- #
- #
- #
- #
- #
- #
- #
- #
- #
- #
- #
- #
- #
- ::section main
- $shortcut obj_count eh_count
- $shortcut obj_tier eh_hoeTier
- $shortcut obj_crowd eh_crowd
- $newline
- :R!: execute @e[type=Item] ~ ~ ~ scoreboard players tag @e[type=Item,r=0,c=1] add crop {Item:{id:minecraft:wheat},Age:0s,PickupDelay:10s}
- #Fully Grown Items
- :MULTI:
- iterations: 1
- !i';beetroot
- execute @e[type=Item] ~ ~ ~ scoreboard players tag @e[type=Item,r=0,c=1] add crop {Item:{id:minecraft:%i},Age:0s,PickupDelay:10s}
- #"Self" crop items (Dropped by partially-grown crops)
- :MULTI:
- iterations: 7
- !i';wheat_seeds,melon_seeds,pumpkin_seeds,beetroot_seeds,carrot,potato,nether_wart
- execute @e[type=Item] ~ ~ ~ scoreboard players tag @e[type=Item,r=0,c=1] add self_crop {Item:{id:minecraft:%i},Age:0s,PickupDelay:10s}
- scoreboard players tag @e[type=Item,tag=self_crop] add crop
- execute @e[type=ItemFrame] ~ ~ ~ scoreboard players tag @e[type=Item,tag=crop,r=1] remove crop
- ::section anti_dupe_and_tiers
- :R!: execute @e[type=Item,tag=self_crop] ~ ~ ~ scoreboard players add @e[type=Item,tag=self_crop,dx=0] $s obj_crowd; 1
- entitydata @e[type=Item,tag=self_crop,score_$s obj_crowd;==1] {Tags:[]}
- scoreboard players reset @e[type=Item,score_$s obj_crowd;_min=1] $s obj_crowd;
- scoreboard players set @a $s obj_tier; 0
- :MULTI:
- iterations: 5
- !h';wooden,stone,iron,golden,diamond
- !v';1,2,3,4,5
- scoreboard players set @a $s obj_tier; %v {SelectedItem:{id:minecraft:%h_hoe}}
- ::section tagging
- :R!:
- :MULTI:
- iterations:5
- !t';1,2,3,4,5
- !s';Wood,Stone,Iron,Gold,Diamond
- execute @a[score_$s obj_tier;==%t] ~ ~ ~ scoreboard players tag @e[tag=!noDuplicate,r=7,rym=0,ry=round(multiply(divide($s chance%s;,100),360))] add duplicate {Tags:["crop"]}
- ::section duplicating
- :R!: scoreboard players set @e[type=Item,tag=duplicate] $s obj_count; 1 {Item:{Count:1b}}
- execute @e[type=Item,tag=duplicate] ~ ~ ~ particle happyVillager ~ ~ ~ 0.25 0.25 0.25 0 5
- entitydata @e[type=Item,tag=duplicate,score_$s obj_count;==1] {Item:{Count:2}}
- scoreboard players reset @e[type=Item,tag=duplicate] $s obj_count;
- entitydata @e[type=Item,tag=duplicate] {Tags:["noDuplicate"]}
- scoreboard players tag @e[type=Item,tag=crop] remove crop
- $newline
- ::section uninstall
- :I: setblock ~ ~ ~ minecraft:sea_lantern
- :I!: scoreboard objectives remove $s obj_tier;
- scoreboard objectives remove $s obj_count;
- scoreboard objectives remove $s obj_crowd;
- tellraw @a ["\n\n",{"text":" Enhanced Hoes ","color":"red","bold":true},{"text":"by Energyxxer","color":"red","italic":true},{"text":"\n has been successfully uninstalled.","color":"dark_red","italic":true},"\n\n"]
- fill ~-7 ~-6 ~-1 ~1 ~1 ~3 air
- ::section install
- :I!: $pos a set; tellraw @a ["\n\n",{"text":" Enhanced Hoes ","color":"aqua","bold":true},{"text":"by Energyxxer","color":"aqua","italic":true},{"text":"\n has been successfully installed.","color":"dark_aqua","italic":true},"\n\n"]
- scoreboard objectives add eh_count dummy Enhanced Hoes Item Count
- scoreboard objectives add eh_hoeTier dummy Enhanced Hoes Selected Hoe Tier
- scoreboard objectives add eh_crowd dummy Enhanced Hoes Item Crowd
- fill $pos a get; ~ ~1 ~ minecraft:quartz_block
- :I!: blockdata $pos a get; {auto:1b}
- ::section after
- clone ~3 ~-2 ~ ~9 ~4 ~1 ~3 ~-1 ~-1 replace move
- fill ~3 ~-1 ~-1 ~8 ~4 ~1 minecraft:sea_lantern 0 replace minecraft:air
- fill ~2 ~-2 ~-1 ~9 ~5 ~1 minecraft:quartz_block 0 replace minecraft:air
- fill ~2 ~-2 ~ ~9 ~5 ~ minecraft:stained_hardened_clay 9 replace minecraft:quartz_block
- fill ~3 ~-1 ~-2 ~8 ~4 ~2 minecraft:stained_glass 9 replace minecraft:air
- fill ~3 ~-2 ~-2 ~8 ~5 ~2 minecraft:quartz_block 0 replace minecraft:air
- fill ~3 ~-1 ~ ~8 ~-1 ~ minecraft:redstone_block 0 replace minecraft:sea_lantern
- setblock ~6 ~ ~ minecraft:redstone_block 0 replace minecraft:sea_lantern
- setblock ~7 ~ ~ minecraft:wool 14
- fill ~3 ~-1 ~1 ~8 ~-1 ~1 minecraft:redstone_lamp 0 replace minecraft:sea_lantern
- #ON
- setblock ~6 ~1 ~ minecraft:command_block 0 _ {Command:blockdata ~ ~ ~ {Command:tellraw @a [{"text":" Enhanced Hoes have been ","color":"gold"},{"text":"ENABLED","color":"green","bold":true}]}}
- #OFF
- setblock ~7 ~1 ~ minecraft:command_block 0 _ {Command:tellraw @a [{"text":" Enhanced Hoes have been ","color":"gold"},{"text":"DISABLED","color":"red","bold":true}]}
- setblock ~5 ~2 ~ minecraft:repeating_command_block 0 _ {auto:1b,Command:"setblock ~-4 ~1 ~ minecraft:wall_sign 4 _ {Text1:\"{\\\"text\\\":\\\"\\\"}\",Text2:\"{\\\"text\\\":\\\"Enhanced Hoes\\\",\\\"color\\\":\\\"dark_blue\\\",\\\"bold\\\":true}\",Text3:\"{\\\"text\\\":\\\"by Energyxxer\\\",\\\"color\\\":\\\"blue\\\",\\\"italic\\\":true,\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/tellraw @p [\\\\\\\" \\\\\\\",{\\\\\\\"text\\\\\\\":\\\\\\\"[Link to YouTube channel]\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"red\\\\\\\",\\\\\\\"hoverEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"show_text\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"Click to open\\\\\\\"},\\\\\\\"clickEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"open_url\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"http://youtube.com/user/Energyxxer\\\\\\\"}},\\\\\\\"\\n \\\\\\\",{\\\\\\\"text\\\\\\\":\\\\\\\"[Link to Website]\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"gold\\\\\\\",\\\\\\\"hoverEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"show_text\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"Click to open\\\\\\\"},\\\\\\\"clickEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"open_url\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"http://energyxxer.com\\\\\\\"}}]\\\"}}\",Text4:\"{\\\"text\\\":\\\"\\\"}\"}"}
- setblock ~5 ~1 ~ minecraft:repeating_command_block 0 _ {auto:1b,Command:"setblock ~-4 ~1 ~ minecraft:wall_sign 4 _ {Text1:\"{\\\"text\\\":\\\"==========\\\",\\\"color\\\":\\\"blue\\\",\\\"bold\\\":true,\\\"strikethrough\\\":true,\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"fill ~2 ~-3 ~ ~7 ~-2 ~ minecraft:glass 0 replace minecraft:wool\\\"}}\",Text2:\"{\\\"text\\\":\\\"Toggle\\\",\\\"color\\\":\\\"blue\\\",\\\"bold\\\":true,\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"fill ~2 ~-3 ~ ~7 ~-2 ~ minecraft:wool 14 replace minecraft:redstone_block\\\"}}\",Text3:\"[\\\"\\\",{\\\"text\\\":\\\"ON\\\",\\\"color\\\":\\\"green\\\"},\\\"/\\\",{\\\"text\\\":\\\"OFF\\\",\\\"color\\\":\\\"dark_red\\\"}]\",Text4:\"{\\\"text\\\":\\\"==========\\\",\\\"color\\\":\\\"blue\\\",\\\"bold\\\":true,\\\"strikethrough\\\":true,\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"fill ~2 ~-3 ~ ~7 ~-2 ~ minecraft:redstone_block 0 replace minecraft:glass\\\"}}\"}"}
- setblock ~5 ~ ~ minecraft:repeating_command_block 0 _ {auto:1b,Command:"setblock ~-4 ~ ~ minecraft:wall_sign 4 _ {Text1:\"{\\\"text\\\":\\\"==========\\\",\\\"color\\\":\\\"dark_red\\\",\\\"bold\\\":true,\\\"strikethrough\\\":true,\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"blockdata ~7 ~ ~-1 {auto:1b}\\\"}}\",Text2:\"{\\\"text\\\":\\\" /!\\\\\ \\\",\\\"color\\\":\\\"red\\\",\\\"bold\\\":true}\",Text3:\"{\\\"text\\\":\\\"Uninstall\\\",\\\"color\\\":\\\"red\\\",\\\"bold\\\":true}\",Text4:\"{\\\"text\\\":\\\"==========\\\",\\\"color\\\":\\\"dark_red\\\",\\\"bold\\\":true,\\\"strikethrough\\\":true}\"}"}
Add Comment
Please, Sign In to add comment