Ground Crafting?

Started by LinkFTW on

Topic category: Troubleshooting, bugs, and solutions

Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ground Crafting?

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

Joined Dec 2013
Points:

User statistics:

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

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

Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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

Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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.

Joined Jun 2016
Points:

User statistics:

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

How to make an entity spawn instead of another one?

Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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);