Skip to content

arvitus/NoSpawnerChange

Repository files navigation

No Spawner Change

Static Badge Static Badge Static Badge

A Minecraft mod that prevents changing the spawner type in survival mode.

What does it do?

With this mod installed, by default, changing a spawner in survival mode will behave exactly like it usually does in adventure mode. So you won't be able to change the spawner type, unless the can_place_on component of the spawn egg allows it.

You can further customize this behavior using the config.

Config (default)

# Configuration for normal monster spawners
monster-spawner {
  # Whether to allow changing the mob type.
  allow-change = true
  # Whether to allow changing the mob type ONLY if the spawner is empty.
  only-if-empty = false
  # Whether to allow changing the mob type ONLY if the `can_place_on` component of the spawn egg is set.
  only-with-can-place-on = true
}
# Configuration for trial spawners
trial-spawner {
  # Whether to allow chaneging the mob type.
  allow-change = true
  # Whether to allow changing the mob type ONLY if the spawner is empty.
  only-if-empty = false
  # Whether to allow changing the mob type ONLY if the `can_place_on` component of the spawn egg is set.
  only-with-can-place-on = true
}

You can reload the config by using /reload.

About

A Minecraft mod that prevents changing the spawner type in survival mode

Topics

Resources

License

Stars

Watchers

Forks

Languages