replace item in inventory when right clicked on entity

Started by Lawtheboss on

Topic category: Help with MCreator software

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
replace item in inventory when right clicked on entity

so im trying to replace an item when right clicked on an entity and im having some real trouble with it, i found another forum https://mcreator.net/forum/89034/trying-figure-out-how-make-item-turn-another-one-when-right-clicking-certain-block with a similar issue but for a liquid and for some reason i cannot find the "set local x_raytrace" block. can someone please send a picture of both the final product for something like this and a pic of where to find the set local block, thanks

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi, did you fix the problem?…
Fri, 12/20/2024 - 03:39

Hi, did you fix the problem? The "raytrace" is for liquids. If you want to change the object in your main hand when you press Right Click on an entity, you must use a Global Procedure with "source entity" (you) and "target entity" (the other entity, of course). Then, use the blocks "delete item in main hand" for the source entity and "add item in main hand" for the source entity. Sorry, I don't speak English very well; I can only try to help you.