Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spawb at night #476

Open
FeellianSinger opened this issue Jan 21, 2025 · 4 comments
Open

Spawb at night #476

FeellianSinger opened this issue Jan 21, 2025 · 4 comments

Comments

@FeellianSinger
Copy link

The question seems a bit stupid to me, since I have figured out most of the mod, I already understood how to spawn mobs in the structure, how to spawn them depending on certain player actions, but here's what I can't understand: How to make certain mobs spawn only at night? Version 1.20.1

@McJty
Copy link
Collaborator

McJty commented Jan 21, 2025

Use mintime/maxtime and deny to deny them during daytime

@FeellianSinger
Copy link
Author

Use mintime/maxtime and deny to deny them during daytime

Sorry, can you give me an example? I didn't find them in Wiki, and I don't quite understand where exactly they should be used. I mean, I don't even understand in which file, spawn or spawner. And it seems like conditions, and it seems like restrictions.

@McJty
Copy link
Collaborator

McJty commented Jan 22, 2025

This goes to spawn.json. But basically you need a rule like this:

{
  "mintime": ...,
  "maxtime": ...,
  "mob": ...,
  "result": "deny"
},

Fill in the ... I don't know what you want there

@FeellianSinger
Copy link
Author

Thank you. It remains to understand what numbers exactly need to be inserted to get the desired result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants