Storing entites? [kryonet]

Well i am working on a multiplayer game, and i have like enemies that spawn randomly so i was wondering should the server spawn the entities like send the x,y of that entity and the client would render it? And the same question for the particles should i store the in server or every client would generate(server is telling the client where to generate them) them for like example fire particles, but it wouldn’t be the same for anyone? I done this with some cubes moving around, this seams more complex!

It depends on the ammount of trust you want to give your game’s clients, usually the game logic is mostly server-side to avoid hacked clients, and if that is what you wish, the server would simply update the state of the entities and send that updated state to every client (the state being, for example, the position). This way, the only thing the client does, if you have a controllable hero for example, is to ask the server to move the hero, and the server will move it or not, depending on the game logic and if moving the hero is possible (there might be a wall infront which would block the hero’s path).
You can also do the logic client-side and send the results to the server so the server updates the rest of the clients about your state, but that would create the chance for hacked clients to send altered states which shouldnt be possible with the default client.

If you opt for the first option, in your case, yes, the server should tell the clients where to spawn the entities and then send regular updates so the clients know which is their most recent state, to draw them accurately.

As for particle effects, thats something that should be fully client-side. Every aspect of rendering is usually done client-side, and particle effects is just a matter of knowing where should it spawn to make it happen, it doesnt matter if its not exactly the same in every client, the results are similar and unless particle effects actually affect your gameplay, you dont have to worry so much about it.