Spawn dropped item with display name of

Started by jmods on

Topic category: Feature requests and ideas for MCreator

Active 2 days ago
Joined Jun 2023
Points:
470

User statistics:

  • Modifications: 6
  • Forum topics: 30
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 66
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?

Active 40 minutes ago
Joined Apr 2023
Points:
690

User statistics:

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

 

Active 2 days ago
Joined Jun 2023
Points:
470

User statistics:

  • Modifications: 6
  • Forum topics: 30
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 66
  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?

Active 40 minutes ago
Joined Apr 2023
Points:
690

User statistics:

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

Active 2 days ago
Joined Jun 2023
Points:
470

User statistics:

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