Needed Feature

Started by DutchAT on Mon, 10/10/2016 - 16:34

Topic category: Mod ideas

Last seen on 19:13, 5. Jul 2019
Joined Oct 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Needed Feature
Mon, 10/10/2016 - 16:34

I need an condition event like: blockInPlayersHand[] == block

Please, add it!!

Last seen on 05:14, 22. Jul 2019
Joined Aug 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
This is possible, you just
Mon, 10/10/2016 - 16:52

This is possible, you just have to edit the code yourself in mCreators built in code editor. Most of what mCreator can do does not have a GUI, and you need to learn at least a little code to fully utilize the program.

Side note, this post is in the wrong forum section and belongs under "Feature Requests"

 

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

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
Well , it is simple. From
Mon, 10/10/2016 - 19:42

Well , it is simple. From view of minecraft code , you have never block in your hands. Block is only the placed thing (And sometimes it is not even block , it is entity). The dropped Block/Item is entity and the Block/Item in hands or some container is ItemStack. You want to check using the basic mcreator condition if the item is equal to Item.getItemFromBlock(block) (So for example Item.getItemFromBlock(Blocks.stone) )