Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- every second:
- loop {farmers::*}:
- if block above {_loc} is farmland:
- if block above above {_loc} is wheat or carrot plant or potato plant:
- if data value of block above above {_loc} is 7:
- if block above above {_loc} is wheat:
- set {_amount} to 1
- set block above above {_loc} to wheat
- else if block above above {_loc} is carrot plant:
- set {_amount} to 2
- set block above above {_loc} to carrot plant
- else if block at {_loc.2} is potato plant:
- set {_amount} to 3
- set block above above {_loc} to potato plant
- loop {plants::name::*}:
- if {plants::location::%loop-index-2%::*} contains location of block above above {_loc}:
- set {_seed} to loop-index-2
- exit loop
- loop integers from 1 to 10:
- if {plants::level::%loop-value-2%::*} contains location of block above above {_loc}:
- set {_level} to loop-value-2
- exit loop
- if {_level} isn't set:
- set {_level} to 1
- if {_seed} isn't "experience":
- set {_a} to {plants::amount::%{_seed}%}*{_level}*{_amount}
- add {_a} of {plants::item::%{_seed}%} to inventory of block at {_loc}
- else:
- set {_a} to {plants::amount::%{_seed}%}
- set {_xp} to {plants::xp::%{_seed}%} * {_level}
- add {_a} of {plants::item::%{_seed}%} named "&a&lXp Orb &7(&a%{_xp}*{_amount}%&7)" lored "&7Rightclick to gain xp" to inventory of block at {_loc}
- can anyone tell me how can i make this more efficient? Because this code is looping many different hoppers
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement