How do I make an item fall out when I click on a mob with scissors?

Started by MisterSmeet on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make an item fall out when I click on a mob with scissors?

How do I make an item fall out when I click on a mob with scissors? I made a cow, and I want it to change to a regular cow when I press it with scissors, but the objects that grew on it fell out.

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you can go to the trigger…
Sun, 06/01/2025 - 10:54

you can go to the trigger page of your custom mob, and select the trigger "when entity is rightclicked". in that procedure, you make an if-block to check, IF: the source entity (the clicking player) is using scissors. THEN: Spawn Enity: Cow at xyz of the event target entity, with yaw and pitch of event target entity, spawn dropped item at xyz of event target entity then despawn event target entity.

the spawn entity and dropped item blocks are under worldprocedures:action, getting yaw and pitch are under entityprocedures:data.