- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register








The script repo is an archive of historical scripts. For modern scripts, or to post your own, please use the Scripts forum section.





QuickHarvest


By DNx
Created: 2018/04/08 20:27:46 UTC-07:00 (6 years and 260 days ago)
Edited: 2018/04/08 20:27:46 UTC-07:00 (6 years and 260 days ago)
Likes: 0

Denizen Version: 0.9.8
Script Version: 0.0.1
Description:

Quickly harvest your crops by simply right clicking.


Download script | View raw script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
1800

QuickHarvest_Listener:
  type: world
  events:
    on player right clicks block:
    - if <c.location.material.item.is_crop>
      {
      - define growth <c.location.material.item.plant_growth>
      - if %growth% == RIPE || %growth% == LARGE
        {
        - if %growth% == RIPE
          { - adjust <c.location.material.item> plant_growth:SEEDED save:x }
          else if %growth% == LARGE
          { - adjust <c.location.material.item> plant_growth:SMALL save:x }
        - ~modifyblock <c.location> m@air naturally
        - ~modifyblock <c.location> <entry[x].result.material>
        }
      }





View History