Floating Item Help

Started by Drake__archer on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 months ago
Joined Sep 2021
Points:
967

User statistics:

  • Modifications: 0
  • Forum topics: 77
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 118
Floating Item Help

In my mod, I want to make an item that floats up into the sky when it is thrown, (as in when it is an Item Entity), but I can't figure out how do do it.

 

I tried using this procedure, but it didn't work:

 

And neither did this one:

 

Is this even possible? If so how would I do it, and if not what could I do instead?

 

Any help would be greatly appreciated!

Active 2 days ago
Joined May 2022
Points:
1255

User statistics:

  • Modifications: 14
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1142
I think you're on the right…
Fri, 04/12/2024 - 11:13

I think you're on the right track- 0.5 y velocity might just not be enough to counteract gravity? I know for a fact it's possible to override the velocities of itemstacks, and the second procedure looks more or less how I'd approach this. At risk of sounding kinda dumb, maybe try cranking up the velocity a bit?