Spawn dropped item with display name of

Started by jmods on

Topic category: Feature requests and ideas for MCreator

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Spawn dropped item with display name of

Would it be possible to add a block that allows for spawning dropped items with custom display names?

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think you can already do…
Mon, 12/02/2024 - 22:11

I think you can already do this by creating a local itemstack variable, then setting the variable to the item type you want, then changing the display name of the variable like you would a regular item, and finally dropping the variable.

I hope this helps

 

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
  Tried this but it doesn't…
Mon, 12/02/2024 - 22:31

 

Tried this but it doesn't work. Do you see what I am doing wrong?

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It looks like you are…
Mon, 12/02/2024 - 22:53

It looks like you are checking if a player dies while holding a knife. Did you possibly mean to have it run if a player is killed by a mob or another player that is holding the knife? If so, you need to switch at least one of the event/target entity procedure blocks out for a source entity procedure block. If you do mean for it to run when a player dies while holding a knife, then I don't know why it isn't working.

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes so the intention is to…
Mon, 12/02/2024 - 22:55

Yes so the intention is to have when a player is killed by another player a block is dropped with the killed players name. I'll try source entity for the item in main-hand and see if that works, thanks