An open library of RPG Maker MZ plugins, powered by the community.

PGMZ - The Community-Driven Plugin Library for RPG Maker MZ

MZ plugins

Generate World - GenerateWorld.js

Plugin desc : World auto-generation Ver.0.6.6 (2025/5/29)

License : MIT License

Author : PotatoDragon

Website : https://github.com/pota-gon/RPGMakerMZ/wiki

Desc page : https://raw.githubusercontent.com/pota-gon/RPGMakerMZ/refs/heads/main/plugins/Game/Map/GenerateWorld.js

Download Page : https://raw.githubusercontent.com/munokura/PotatoDragon-MZ-plugins/main/GenerateWorld.js

File name : GenerateWorld.js

Help of plugin :

@target MZ
@url https://raw.githubusercontent.com/pota-gon/RPGMakerMZ/refs/heads/main/plugins/Game/Map/GenerateWorld.js
@plugindesc World auto-generation Ver.0.6.6 (2025/5/29)
@author PotatoDragon
@license MIT License

@help
English Help Translator: munokura
This is an unofficial English translation of the plugin help,
created to support global RPG Maker users.
Feedback is welcome to improve translation quality
(see: https://github.com/munokura/PotatoDragon-MZ-plugins ).
Original plugin by PotatoDragon.
Please check the latest official version at:
https://github.com/pota-gon/RPGMakerMZ/wiki
-----

## Overview
Automatically generates a world.

## Usage
This guide only describes the basic usage.

For other usage examples, please refer to the sample project below.

https://github.com/pota-gon/GenerateWorld

Note: This is a development version and some features are not yet implemented.
This will be supported in a future update.

### 1. Map Settings
1. Set the tile set to "Field 1."
* Currently, only the default tile set is supported.

We plan to support other tile sets in future updates.
2. Write "World Auto-Generation" in the map's memo field.
3. Fill in the map with tiles A as desired.
(Tiles will be automatically selected based on internally configured data.)
You can fix tiles by specifying a tile fixation region (default is 1).
Use this to place towns and other events.

### 2. Event Settings
Normal events will appear in their current position.
Combining this with a tile fixation region (default is 1)
makes it easy to create towns and other events.

#### Probability Specification
Specifying <RateMap: 0.5> in the event memo field will create an event with a
50% probability of appearing. The placement location will be random.

#### Slip-through
Selecting the Slip-through option will allow you to land an airship at the
event.

### Regarding Conflicts
This is a conflict with another plugin. Because this is a fairly large plugin,
conflict resolution is difficult, and we may decline to address the conflict.

The following are confirmed conflicts.
We do not plan to address the conflicts noted. Thank you for your
understanding.

N-zo's MiniMap.js
=> Maps will not render unless full-area drawing without encounters is turned
off.
Attempting to resolve this conflict likely has a significant impact on the
operation of the world generation plugin alone, so we do not plan to support
it.

Sunagawa's NRP_OriginalVehicle.js (a plugin that adds original vehicles)
=> It is likely possible to add vehicles, but the vehicle summoning feature
will not be supported.
I don't think there's a need to use that many vehicles, and the differences in
how the world generation plugin handles small ships, large ships, and airships
would complicate the setup, so I do not plan to support it.

@param RetentionSaveData
@text Save data retention
@desc The results of the automatic world generation
@type boolean
@on Hold
@off Do not retain
@default true

@param RandomNumber
@text random number
@desc The type of random number to use
@type boolean
@on Mersenne Twister
@off Xorshift
@default true

@param SeedVariable
@text seed variable
@desc Map seed variables
@type variable
@default 0

@param Region
@text Region Settings
@desc * Classification parameters

@param TileRegion
@text Tile-locked Region
@desc Region to pin the tile to
@type number
@default 1
@min 0
@max 255
@parent Region

@param TwoChoiceRegion
@text Upper or lower tile region
@desc Regions that contain either tiles with upper layers or only tiles with lower layers
@type number
@default 2
@min 0
@max 255
@parent Region

@param ExceptRegion
@text Upper tile exclusion region
@desc Region to exclude upper tiles
@type number
@default 3
@min 0
@max 255
@parent Region

@param PassableRegion
@text Passable Region
@desc Regions where only passable tiles appear
@type number
@default 4
@min 0
@max 255
@parent Region

@param ImpassableRegion
@text Impassable Region
@desc Regions where only impassable tiles appear
@type number
@default 5
@min 0
@max 255
@parent Region

@param LockTileRegion
@text Tile-locked region
@desc Region to fix the tile to including region
@type number
@default 6
@min 0
@max 255
@parent Region

@param StartTileRegion
@text Tile Sequence Region
@desc The sequence region to specify for the tile
@type number
@default 7
@min 0
@max 255
@parent Region

@param Tilesets
@text Tile Set Settings
@desc Required settings for each tileset
@type struct<Tilesets>[]
@default ["{¥"tile_set_id¥":¥"1¥",¥"boat_tile_ids¥":¥"[¥¥¥"2432¥¥¥"]¥",¥"ship_tile_ids¥":¥"[¥¥¥"2048¥¥¥"]¥",¥"airship_tile_ids¥":¥"[¥¥¥"2624¥¥¥", ¥¥¥"2720¥¥¥"]¥"}"]

@param Maps
@text Map Settings
@desc Required settings for each map
@type struct<Maps>[]
@parent Tilesets

@param Vehicle
@text Vehicle call
@desc Do you use the ride-call feature?
@type boolean
@on use
@off Do not use
@default true

@param BoatSwitch
@text Small vessel call permission switch
@desc Switch that allows small vessel calls when ON
@type switch
@default 0
@parent Vehicle

@param ShipSwitch
@text Large ship call permission switch
@desc Switch that allows large vessel calls when ON
@type switch
@default 0
@parent Vehicle

@param AirshipSwitch
@text Airship call permission switch
@desc Switch that allows airship calls when ON
@type switch
@default 0
@parent Vehicle

@param Test
@text Settings valid only during testing
@desc * Classification parameters

@param RegenerateCommand
@text World Regeneration Command Name
@desc Command to regenerate the world from the menu
@type combo
@default World Regeneration
@parent Test
@option World Regeneration

@param ExportJsonCommand
@text Map JSON Output
@desc Commands that can output map JSON from the menu
@type combo
@default Output Map JSON
@parent Test
@option Output Map JSON

@param SameMapExportJson
@text Same Map JSON Output
@desc Output JSON to the same map
@type boolean
@on Output
@off No output
@default false
@parent ExportJsonCommand

@param ExportOrgRegion
@text Original Region Output
@desc Whether to output the source region to JSON
@type boolean
@on Output
@off No output
@default false
@parent ExportJsonCommand

@param EventExport
@text Event Output
@desc Whether to output an event
@type boolean
@on Output
@off No output
@default false
@parent ExportJsonCommand

@param BackupJson
@text JSON Backup
@desc Do you want to back up?
@type boolean
@on Back up
@off Do not back up
@default true
@parent ExportJsonCommand

@param CommandKey
@text Command key support
@desc Can you execute commands with keys?
@type boolean
@on Can be executed by key
@off Do not run with keys
@default true
@parent Test

@param RegenerateKey
@text World Regeneration
@desc World Regeneration Key
@type combo
@default R
@parent CommandKey
@option A
@option B
@option C
@option D
@option E
@option F
@option G
@option H
@option I
@option J
@option K
@option L
@option M
@option N
@option O
@option P
@option Q
@option R
@option S
@option T
@option U
@option V
@option W
@option X
@option Y
@option Z
@option 0
@option 1
@option 2
@option 3
@option 4
@option 5
@option 6
@option 7
@option 8
@option 9
@option T0
@option T1
@option T2
@option T3
@option T4
@option T5
@option T6
@option T7
@option T8
@option T9
@option T*
@option T+
@option T-
@option T.
@option T/
@option :
@option ;
@option ,
@option -
@option .
@option /
@option @
@option [
@option ¥|
@option ]
@option ^
@option ¥_
@option F1
@option F2
@option F3
@option F4
@option F5
@option F6
@option F7
@option F8
@option F9
@option F10
@option F11
@option F12
@option BackSpace
@option Pause
@option 変換
@option 無変換
@option End
@option Home
@option Delete

@param ExportJsonKey
@text Map JSON output (with events)
@desc Keys in the map JSON output
@type combo
@default E
@parent CommandKey
@option A
@option B
@option C
@option D
@option E
@option F
@option G
@option H
@option I
@option J
@option K
@option L
@option M
@option N
@option O
@option P
@option Q
@option R
@option S
@option T
@option U
@option V
@option W
@option X
@option Y
@option Z
@option 0
@option 1
@option 2
@option 3
@option 4
@option 5
@option 6
@option 7
@option 8
@option 9
@option T0
@option T1
@option T2
@option T3
@option T4
@option T5
@option T6
@option T7
@option T8
@option T9
@option T*
@option T+
@option T-
@option T.
@option T/
@option :
@option ;
@option ,
@option -
@option .
@option /
@option @
@option [
@option ¥|
@option ]
@option ^
@option ¥_
@option F1
@option F2
@option F3
@option F4
@option F5
@option F6
@option F7
@option F8
@option F9
@option F10
@option F11
@option F12
@option BackSpace
@option Pause
@option 変換
@option 無変換
@option End
@option Home
@option Delete

@param OutputJsonKey
@text Map JSON Output (without events)
@desc Keys in the map JSON output
@type string
@default O
@parent CommandKey
@option A
@option B
@option C
@option D
@option E
@option F
@option G
@option H
@option I
@option J
@option K
@option L
@option M
@option N
@option O
@option P
@option Q
@option R
@option S
@option T
@option U
@option V
@option W
@option X
@option Y
@option Z
@option 0
@option 1
@option 2
@option 3
@option 4
@option 5
@option 6
@option 7
@option 8
@option 9
@option T0
@option T1
@option T2
@option T3
@option T4
@option T5
@option T6
@option T7
@option T8
@option T9
@option T*
@option T+
@option T-
@option T.
@option T/
@option :
@option ;
@option ,
@option -
@option .
@option /
@option @
@option [
@option ¥|
@option ]
@option ^
@option ¥_
@option F1
@option F2
@option F3
@option F4
@option F5
@option F6
@option F7
@option F8
@option F9
@option F10
@option F11
@option F12
@option BackSpace
@option Pause
@option 変換
@option 無変換
@option End
@option Home
@option Delete

@command GenerateWorld
@text Procedural world generation
@desc Procedural world generation
@arg spawn
@text Spawn Point Settings
@desc Set spawn point?
@type boolean
@on Set up
@off Do not set
@default true

@arg direction
@desc Destination player direction
@type select
@default 0
@parent spawn
@option As it is
@value 0
@option under
@value 2
@option left
@value 4
@option right
@value 6
@option above
@value 8

@arg vehicle
@text Transportation
@desc Will vehicles also be moved?
@type boolean
@on Move
@off Do not move
@default true
@parent spawn

@command Spawn
@text Spawn Point Settings
@desc Spawn Point Settings
@arg direction
@desc Destination player direction
@type select
@default 0
@option As it is
@value 0
@option under
@value 2
@option left
@value 4
@option right
@value 6
@option above
@value 8

@arg vehicle
@text Transportation
@desc Will vehicles also be moved?
@type boolean
@on Move
@off Do not move
@default true

@command ExportMapJson
@text Map JSON Output
@desc Map JSON Output
@arg same_map_export_json
@text Same Map JSON Output
@desc Output JSON to the same map
@type boolean
@on Output
@off No output
@default false

@arg export_org_region
@text Original Region Output
@desc Whether to output the source region to JSON
@type boolean
@on Output
@off No output
@default false

@arg event_export
@text Event Output
@desc Whether to output an event
@type boolean
@on Output
@off No output
@default false

@arg backup_json
@text JSON Backup
@desc Do you want to back up?
@type boolean
@on Back up
@off Do not back up
@default true

@command InitMap
@text Map information initialization
@desc Initializes the map information created by the automatic world generation.

スポンサードリンク

-MZ plugins

Copyright© PGMZ - The Community-Driven Plugin Library for RPG Maker MZ , 2026 All Rights Reserved.