Auto farm in 1.12.2

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

ToU26

New Member
Oct 8, 2019
7
0
0
22
on rightclick with hoe on wheat
if data of clicked block is 7:
~~~~

This script doesn't work. And

on leftclick with hoe:
if block below is farmland:
I hope that the data of clicked block will be recreated with 0

HELP PLZ

Since I am Korean, my vocabulary can be strange by turning the translator.
 
Code:
on rightclick on ripe wheat plant:
    if player's tool is hoe:
        if player has 1 wheat seed:
            set event-block to freshly planted wheat plant
            drop wheat at event-location
 
Last edited:
Code:
on rightclick on ripe wheat plant:
    if player's tool is hoe:
        if player has 1 wheat seed:
            set event-block to freshly planted wheat plant
            drop wheat at event-location
It doesn't work
What kind of add-on do I need?
 
do you have seed on your inventory ?
[doublepost=1570611457,1570611191][/doublepost]
Code:
on rightclick on ripe wheat plant:
    if player's tool is hoe:
        if player has 1 wheat seed:
            set event-block to freshly planted wheat plant
            drop wheat at event-location
            remove 1 wheat seed from player
 
do you have seed on your inventory ?
[doublepost=1570611457,1570611191][/doublepost]
Code:
on rightclick on ripe wheat plant:
    if player's tool is hoe:
        if player has 1 wheat seed:
            set event-block to freshly planted wheat plant
            drop wheat at event-location
            remove 1 wheat seed from player
Of course
 
change wheat seed to seed
i'm using 1.14 btw and its work so idk with 1.12.2
It doesn't work...
but I found it by myself.
Code:
on block break:
    if player's tool is a hoe:
        if event-block is wheat:
            if player has 1 of seeds:
                remove 1 seeds from the inventory of player
                set {_block} to freshly planted wheat
                set data value of {_block} to 0
                set event-block to {_block}
        if event-block is carrot_plant:
            if player has 1 of carrot:
                remove 1 carrot from inventory of player
                set {_block} to event-block
                set data value of {_block} to 0
                set event-block to {_block}
        if event-block is potato_plant:
            if player has 1 of potato:
                remove 1 potato from inventory of player
                set {_block} to event-block
                set data value of {_block} to 0
                set event-block to {_block}
        if event-block is beetroot_block:
            if player has 1 of beetroot_seeds:
                remove 1 beetroot_seeds from inventory of player
                set {_block} to event-block
                set data value of {_block} to 0
                set event-block to {_block}
        if event-block is sugar_cane_block:
            if player has 1 of sugar canes:
                if block below event-block is grass:
                    remove 1 sugar canes from inventory of player
                    set event-block to sugar_cane_block
 
Status
Not open for further replies.