Snownee / Lychee

Minecraft data-driven in-world crafting mod.
https://www.curseforge.com/minecraft/mc-mods/lychee
28 stars 3 forks source link

Can't set the number of items needed for the block_interacting recipe. #74

Open Jaimarl opened 6 months ago

Jaimarl commented 6 months ago

Mod loader

Forge

Minecraft version

1.19.2

Mod version

3.15.1

Modloader version

43.3.8

Modpack info

No response

If bug:

If bug: The latest.log file

No response

Issue description

I need a recipe to require 8 items in the left hand but nowhere does it say how to do this. I've tried "count" and "amount" but it doesn't work.

SettingDust commented 6 months ago

Not support count since the Minecraft Ingredient only match the type.

You have choices

  1. https://minecraft.wiki/w/Commands/execute#(if|unless)_items that will introduced in 1.20.5 as a condition.
  2. https://minecraft.wiki/w/Commands/execute#(if|unless)_predicate and create your own predicate like https://github.com/Snownee/Lychee/tree/1.20-fabric/src/main/resources/data/lychee. For reference https://minecraft.wiki/w/Predicate#Predicate_JSON_format, see the entity_properties.equipment.

    Consume the items with post action then.