Skip to content
NP Editor Docs
This is not the latest version — view the latest

Testing in Play mode

Play tests World logic rules inside the editor without a server. Rules, walking physics and animations run at the same 20 TPS (20 ticks per second) as the server. Blocks and state changed during Play all return to their original state when you stop.

ModeCameraPlayer
PlayFirst person — the player’s eyesYou walk yourself. The body’s name is player.
SimulateThe edit camera as is (free)A blue capsule is the player.

The screenshots were taken on the road in front of the castle gate in the sample world castle.npworld, with one rule: the manually fired trigger When chatting → Chat message (text You said: {message}).

  1. Click ▾ next to ▶ in the middle of the toolbar. Select the mode (Play — walk in the viewport (Alt+P) · Simulate — free camera, logic only (Alt+S)), the start location (From current camera position · From spawn point (Project Settings default spawn)) and Play stats overlay (tick · zone · flag). ▶ uses the mode you picked.

    The ▾ menu next to ▶ — mode and start location

  2. Click the ▶ button. A body appears at the camera position and the view switches to first person. Play info (tick · foot position · zone) appears at the top left of the viewport, the “Fire (number keys)” list at the bottom right, and the Play State panel opens in the bottom right area.

    The view during Play — play info, Fire list and Play State panel

  3. Press 1 to fire the first rule in the “Fire” list (When chatting). Firing runs the rule with an example value (chat text “안녕”), so “You said: 안녕” appears in the chat.

    The result of the When chatting rule fired with number key 1

    Known issue in 0.10.2: the example chat text “안녕” (“hello”) is not translated.

  4. Press Pause to pause. Ticks stop and the one-tick button turns on. Each click of the one-tick button advances 1/20 second. Press Pause again to resume.

    The pause button and the one-tick button

  5. Press F8 to leave the body (eject). Play switches to Simulate, you can move the camera freely, and the body appears as a blue capsule. Press F8 again to re-enter the body.

    Eject — the blue capsule in the Simulate view

  6. Press Esc to stop Play. The world and the undo history are as they were before you started.

  • Editing shortcuts are blocked during Play. Ctrl+Z and tool keys (Q etc.) do not undo or change tools (the keys belong to walking).
  • Click Tools > Simulate (free camera · logic) to start Simulate directly regardless of the ▶ mode; click it again during Play to stop.
  • Use “Fire” to test triggers that do not happen on their own (chat · damage · breaking blocks …). “Fire” at the end of a rule row in the World logic tab and rule firing in the Play State panel do the same.
  • “When a player joins” rules run the moment the body appears — Tutorial: your first script.

0.10.2: The Alt+P and Alt+S keys shown in the ▾ menu do not work. Use the ▶ button or the Tools menu.

ButtonAction
▶ (green)Shows that Play is running · click to stop
PausePause · resume (Pause)
One tickAdvances only 1/20 second while paused
EjectLeave · re-enter the body (F8)
StopStop (Esc)
Shortcut · controlAction
Mouse · W A S D · Space · CtrlLook around · walk · jump · sprint
1~9Run a rule in the “Fire” list
F8Eject · re-enter the body
Shift+F1Release the mouse
PausePause · resume
EscStop
TriggerIn Play
Entering · leaving · staying inside a zoneChecked automatically by foot position — World logic
On start (scene start) · timer · every tick · when a player joinsAutomatic (join = when the body appears)
Signals · functions · when a sequence endsAutomatic, following the side that sends, calls or plays
Manually fired triggers such as chat · damage · death“Fire” (number keys · rule row · Play State panel) — with example values
FieldContents
HeaderMode · running/paused · tick · pause · one tick · eject · stop
PlayerHealth · game mode · main hand · off hand · effects — the values the “Game mode” and “Holding” conditions see
Event logLog stamped with ticks (fire · action · chat lines). Filter with the Skipped check · also show rows skipped because of conditions