Started by
LinkFTW
on
Topic category: Troubleshooting, bugs, and solutions
I was wondering if there was a way to make ground crafting, where you would throw certain blocks/items on the ground and then turn into the block you want when all blocks/items are tested for?
Thanks
uhm, can you explain more. Your post is kinda confusing.
What I mean by this is, You take the items you need to craft another item. You take those items and throw them on the ground on the same block. The items will then turn into another item which you wanted to craft, and the items you used, disappeared. Any way to do so?
Thanks
You will probably want to make your own EntityItem, spawn it instead of the vanilla one, and in its update method check for other EntityItem that you need and if they are there, spawn the result item and remove all other items.
How to make an entity spawn instead of another one?
In your item code, hasCustomEntity should return true and return your entity in createEntity, or you could just handle all of the checking code even in the Item code itself without creating another child of EntityItem. It should be enough just put it in onEntityItemUpdate (and probably return true);