options: prefix: &8[&aBroke &2Farms&8]&7 borders: &6&m &e&m &4&m &e&m &6&m &r hoename: &6123 on break: event-block is not wheat or potato plant or carrot plant or nether wart name of player's held item = "{@hoename}" cancel event on right click with diamond hoe: name of player's held item = "{@hoename}" cancel event on break: if event-block is not fully grown wheat plant or fully grown potato plant or fully grown carrot plant or fully grown nether wart plant: cancel event send action bar "{@prefix} You can't break crops that aren't fully grown" to player stop if name of player's held item = "{@hoename}": give 1 of event-block to player clear drops set {_loc} to location of event-block if event-block = wheat: if inventory of player does not contain wheat seed: send "{@prefix} You don't have a &4wheat seed, &7So autoplanter didn't replant." to player if inventory of player contain wheat seed: remove 1 of wheat seed from inventory of player wait 1 tick set block at {_loc} to freshly planted wheat plant if event-block = potato plant: if ({_replanter::2} parsed as an boolean) = true: if inventory of player does not contain potato: send "{@prefix} You don't have a &4potato, &7So autoplanter didn't replant." to player if inventory of player contain potato: wait 1 tick set block at {_loc} to freshly planted potato plant add 1 of potato to inventory of player if event-block = carrot plant: if ({_replanter::2} parsed as an boolean) = true: if inventory of player does not contain carrot: send "{@prefix} You don't have a &4carrot, &7So autoplanter didn't replant." to player if inventory of player contain carrot: remove 1 of carrot from inventory of player wait 1 tick set block at {_loc} to freshly planted carrot plant add 1 of carrot to inventory of player if event-block = nether wart: if ({_replanter::2} parsed as an boolean) = true: if inventory of player does not contain nether wart: send "{@prefix} You don't have a &4nether wart, &7So autoplanter didn't replant." to player if inventory of player contain nether wart: remove 1 of nether wart from inventory of player wait 1 tick set block at {_loc} to freshly planted nether wart plant add 1 of nether wart to inventory of player