#How to craft a custom sword item with a custom resource item?

1 messages · Page 1 of 1 (latest)

mossy leaf
#

I want to create a custom sword item with a recipe that utilizes a custom item. Is there a way to make recipes that utilize items with components? Or do I need to implement my own way of doing that? If I do need to implement my own way of crafting based on components, how do I go about doing that?

glossy ferry
#

Recipes cannot check components of ingredient items, no

#

Popular alternatives includes a fully custom crafting system using custom GUIs (a lot of work), floor-crafting, or making the ingredient item some item that's unobtainable in survival, like a command block

mossy leaf
#

How do you do floor crafting?

#

And can I specify what the block I have to throw the items on is?

#

Given how commonly used floor crafting is as a method for component-based crafting, I think it might be a good idea to make a guide on the wiki for it

#

I'll have to add that to the todo

mossy leaf
glossy ferry
#

Well Hypixel certainly uses plugins. Data packs have it much worse off

glossy ferry
mossy leaf
#

Good to know

#

I'll have to mess around with it and watch some tutorials on the specifics for detecting dropped entities and whatnot

#

What I am attempting to do is make a couple new items with recipes:

  • Iron plates
  • Long sword
  • Platemail chestplate and leggings
#

Iron plates I was just going to make either a completely vanilla recipe (like 2 iron ingots for 2 plates in a crafting table), or do floor crafting + a custom tool (like a hammer)
Long sword was going to be anvil + hammer + iron sword (floor crafting)
And then the platemail will likely have to be same as the iron plates (5 and 6 iron plates + leads + hammer + anvil floor crafting)

#

So I'll need to figure out how to make a performant implementation of floor crafting