tinycodinglm / mc /mc-0048.jsonl
winapiadmin's picture
Upload folder using huggingface_hub (part 16)
d517dc9 verified
|
Raw History Blame Contribute Delete
1.65 kB
opencode trace
System You are an expert Fabric mod developer. You write idiomatic Minecraft Fabric mods using Java, Fabric API, and Yarn mappings.

You are an expert Fabric mod developer. You write idiomatic Minecraft Fabric mods using Java, Fabric API, and Yarn mappings.

User

How do I structure bundled resources, assets, and data folders in a Fabric mod?

Assistant

Standard Fabric mod resource structure:

markdown
src/main/resources/
  assets/mymod/
    textures/block/simple_block.png
    textures/item/simple_item.png
    textures/gui/custom_gui.png
    models/block/simple_block.json
    models/item/simple_item.json
    blockstates/simple_block.json
    lang/en_us.json
    sounds.json
  data/mymod/
    recipe/custom_shaped.json
    loot_table/blocks/simple_block.json
    tags/item/my_items.json
    tags/block/my_blocks.json
  fabric.mod.json
  mymod.mixins.json
  mymod.accesswidener

Blockstate JSON (assets/mymod/blockstates/simple_block.json):

json
{"variants": {"": {"model": "mymod:block/simple_block"}}}

Block model:

json
{"parent": "minecraft:block/cube_all", "textures": {"all": "mymod:block/simple_block"}}

Item model:

json
{"parent": "minecraft:item/generated", "textures": {"layer0": "mymod:item/simple_item"}}

Language file (assets/mymod/lang/en_us.json):

json
{"block.mymod.simple_block": "Simple Block", "item.mymod.simple_item": "Simple Item",
 "itemGroup.mymod.custom_tab": "My Mod Items"}