Re-enable wood farming, add sapling label
This commit is contained in:
1 parent
afd4c524c2
commit
11c1bad0c4
3 files changed
+14
-6
No files matched your search
+7
-6
@@ -65,6 +65,7 @@ class Commands:
|
||||
if data.startswith('[') and data.endswith(']'):
|
||||
command = 'nosquarebrackets'
|
||||
|
||||
farm_target = data.casefold().strip()
|
||||
unsupported = {
|
||||
'trade', 'gapple', 'fill',
|
||||
'break', 'open', 'click', 'use', 'interact',
|
||||
@@ -72,8 +73,8 @@ class Commands:
|
||||
if ((command == 'gather' and data.lower().strip() != 'wood') or
|
||||
command in unsupported or
|
||||
(command == 'farm' and
|
||||
not data.lower().startswith('crop') and
|
||||
data.lower().strip() not in ('wood', 'wart'))):
|
||||
not farm_target.startswith('crop') and
|
||||
farm_target not in ('wood', 'logs', 'wart'))):
|
||||
reply = 'not migrated to Minecraft 26.3 yet'
|
||||
print('Reply:', reply)
|
||||
self._send_reply(reply, private, reply_target)
|
||||
@@ -475,12 +476,12 @@ class Commands:
|
||||
else:
|
||||
reply += ', I need a bed'
|
||||
|
||||
## 1farm wood - farms wood from a certain area
|
||||
## 1farm logs (or wood) - farms trees and caches their logs
|
||||
## 1farm sand - farms sand from a certain area
|
||||
## 1farm wart - farms netherwart from a certain area
|
||||
## 1farm crop - farms mature crops from a certain area
|
||||
if command == 'farm' and data:
|
||||
if data == 'wood':
|
||||
if farm_target in ('wood', 'logs'):
|
||||
self.g.job.state = self.g.job.farm_wood
|
||||
reply = 'ok'
|
||||
elif data == 'sand':
|
||||
@@ -488,10 +489,10 @@ class Commands:
|
||||
self.g.sand_origin = utils.pint(self.g.pos)
|
||||
self.g.job.state = self.g.job.farm_sand
|
||||
reply = 'ok'
|
||||
elif data == 'wart':
|
||||
elif farm_target == 'wart':
|
||||
self.g.job.state = self.g.job.farm_wart
|
||||
reply = 'ok'
|
||||
elif data.startswith('crop'):
|
||||
elif farm_target.startswith('crop'):
|
||||
mode = self.g.get('game_mode')
|
||||
if mode is not None and mode != 0:
|
||||
reply = 'crop farming needs Survival mode'
|
||||
|
||||
@@ -91,6 +91,7 @@ _LABEL_ITEM_IDS = {
|
||||
}),
|
||||
'wheat': {WHEAT_ID},
|
||||
'log': LOG_IDS,
|
||||
'sapling': SAPLING_IDS,
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user