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

Started by Sweddy on

Topic category: Troubleshooting, bugs, and solutions

Joined Sep 2013
Points:

User statistics:

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

Joined Aug 2013
Points:

User statistics:

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

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

Joined Sep 2013
Points:

User statistics:

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

And what the hell is that supposed to mean?

Joined Aug 2014
Points:

User statistics:

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

@#1 Thank you!

Joined Aug 2014
Points:

User statistics:

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

@#1.1 But it still doesn't work!

Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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){....