Ground Crafting?

Started by LinkFTW on Tue, 05/16/2017 - 20:42

Topic category: Bugs and solutions

Last seen on 22:55, 29. Apr 2019
Joined Mar 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Ground Crafting?
Tue, 05/16/2017 - 20:42

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

Last seen on 16:39, 18. May 2019
Joined Dec 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
uhm, can you explain more.
Thu, 05/18/2017 - 16:13

uhm, can you explain more. Your post is kinda confusing.

Last seen on 22:55, 29. Apr 2019
Joined Mar 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
What I mean by this is, You
Mon, 07/03/2017 - 18:12

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

Last seen on 00:21, 11. Aug 2019
Joined Aug 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
You will probably want to
Mon, 07/03/2017 - 19:41

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.

Last seen on 20:05, 20. Aug 2019
Joined Jun 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:You will probably want to
Tue, 07/04/2017 - 07:12

How to make an entity spawn instead of another one?

Last seen on 00:21, 11. Aug 2019
Joined Aug 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
In your item code,
Tue, 07/04/2017 - 08:01

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);