Items spawned from the "Spawn Gem" script turn into "ghost items"

Started by Sweddy on

Topic category: Troubleshooting, bugs, and solutions

Active 6 years ago
Joined Sep 2013
Points:
903

User statistics:

  • Modifications: 0
  • Forum topics: 32
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 40
Items spawned from the "Spawn Gem" script turn into "ghost items"

Whenever an item is spawned using the "spawn gem" script it can be picked up by the player but it will still be seen as if it's dropped on the ground.

Active 12 months ago
Joined Aug 2013
Points:
1162

User statistics:

  • Modifications: 4
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 737
You must spawn it server-side
Thu, 03/10/2016 - 18:11

You must spawn it server-side only.
if(world.isRemote){.....

Active 6 years ago
Joined Sep 2013
Points:
903

User statistics:

  • Modifications: 0
  • Forum topics: 32
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 40
RE:You must spawn it server-side
Fri, 03/11/2016 - 10:14

And what the hell is that supposed to mean?

Active 9 years ago
Joined Aug 2014
Points:
719

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
RE:You must spawn it server-side
Sat, 03/12/2016 - 08:36

@#1 Thank you!

Active 9 years ago
Joined Aug 2014
Points:
719

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
RE:You must spawn it server-side
Sat, 03/12/2016 - 08:43

@#1.1 But it still doesn't work!

Active 12 months ago
Joined Aug 2013
Points:
1162

User statistics:

  • Modifications: 4
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 737
RE:RE:You must spawn it server-side
Sat, 03/12/2016 - 08:55

@#1.1.1 Oh , i forgot "!" , it must be if(!world.isRemote){....