I’ve tries equipping the item wooden_pickaxe
with ('equip', 3)
, but i found that the type
in current states still are stick
. Has anyone encountered this problem? Thanks.
n [48]: b
Out[48]:
OrderedDict([('forward', 0),
('back', 0),
('left', 0),
('right', 0),
('jump', 0),
('sneak', 0),
('sprint', 0),
('attack', 0),
('camera', array([0., 0.], dtype=float32)),
('place', 0),
('equip', 3),
('craft', 0),
('nearbyCraft', 0),
('nearbySmelt', 0)])
In [49]: s,r,done,info=env.step(b)
In [50]: s
Out[50]:
{'equipped_items': {'mainhand': {'damage': 0,
'maxDamage': -1,
'type': 'stick'}},
'inventory': {'coal': 0,
'cobblestone': 0,
'crafting_table': 0,
'dirt': 0,
'furnace': 0,
'iron_axe': 0,
'iron_ingot': 0,
'iron_ore': 0,
'iron_pickaxe': 0,
'log': 0,
'planks': 9,
'stick': 14,
'stone': 0,
'stone_axe': 0,
'stone_pickaxe': 0,
'torch': 0,
'wooden_axe': 0,
'wooden_pickaxe': 1},