Skip to content

Questions about item acquisition and crafting in Textcraft environment (env_1) #12

@Light7Rain

Description

@Light7Rain

Hello there! First, thank you so much to your team for creating the new text-only environment Textcraft – it's a really interesting project!
While running experiments in Textcraft, I encountered some issues I'd like to ask about, specifically in the "env_1" task from the "craft hopper minecart" task (referenced in AdaPT/results/ADaPT_maxd3_textcraft_gpt-3.5-turbo-instruct.json).

1. Acquiring the object "planks"

I found I couldn't acquire the item "planks" through the environment (the result was "Could not find planks"), and there also didn't seem to be a crafting recipe available for "planks". I tried directly constructing and adding planks to the inventory using:

if item=="planks":
    item_id="minecraft:planks"
    return ItemTag(item_id=item_id)

Then executed below commands:

get 8 planks
craft 1 chest using 8 planks

Following this, I attempted craft 1 chest using 8 planks, but the environment returned:
"Could not find a valid recipe for ItemTagWithCount(item_tag=ItemTag(tag=None, item_id='minecraft:chest'), count=1)"

2. Contrast with Reported Results

I noticed in your published results for "env_1":

"fetch 8 planks at depth 4, success: True",
"craft 1 chest using 8 planks at depth 4, success: False"

This indicates planks were successfully acquired in your run, but the subsequent chest crafting failed. However, in my experiments, I cannot even execute get 8 planks successfully.

3. Possible Code Issue

Looking through the code (textcraft/env.py and textcraft/crafting_tree.py), I suspect the issue might relate to how the CraftingTree class handles items marked with "tag" in self.itemid_recipes. It seems that some "tag items" are added to recipes, for example, minecraft:planks, and these items are non-acquirable.

In summary, my questions are:

(1) Could you clarify how planks were successfully acquired (fetch 8 planks... success: True) in your env_1 run? I consistently get "Could not find planks".
(2) Is there a potential bug in Textcraft as I mentioned before? Or is it just an error in my execution?

Here are the crafting commands loaded for my most recent run of the env_1 task:

craft 4 crimson planks using 1 crimson stems
craft 4 acacia planks using 1 acacia logs
craft 4 warped planks using 1 warped stems
craft 1 lime bed using 3 lime wool, 3 planks
craft 1 chest using 8 planks
craft 1 furnace minecart using 1 furnace, 1 minecart
craft 1 minecart using 5 iron ingot
craft 4 oak planks using 1 oak logs
craft 2 tripwire hook using 1 planks, 1 stick, 1 iron ingot
craft 1 gray bed using 3 gray wool, 3 planks
craft 1 note block using 8 planks, 1 redstone
craft 1 iron trapdoor using 4 iron ingot
craft 1 iron sword using 1 stick, 2 iron ingot
craft 1 iron block using 9 iron ingot
craft 1 lantern using 1 torch, 8 iron nugget
craft 4 birch planks using 1 birch logs
craft 4 spruce planks using 1 spruce logs
craft 1 hopper using 1 chest, 5 iron ingot
craft 1 magenta bed using 3 magenta wool, 3 planks
craft 1 hopper minecart using 1 hopper, 1 minecart
craft 1 iron ingot using 9 iron nugget
craft 4 dark oak planks using 1 dark oak logs
craft 4 jungle planks using 1 jungle logs

Crucially: While there are recipes for specific plank types (e.g., oak planks, birch planks), there is no recipe listed for the generic planks item itself. Since chest requires generic planks (not a specific type), and get 8 planks fails, this blocks progression.

Thank you for your time and for creating this environment! I'd appreciate any insights you might have into these issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions