Planet Centauri

Planet Centauri

Not enough ratings
[Event mods]Part 1 : Building Mode - Advanced features
By onilink_ and 2 collaborators
This guide describes advanced functionality on the build mode, such as the commandline interface, room import and export, community sharing and creation helper tools.
   
Award
Favorite
Favorited
Unfavorite
Access building mode
To access building mode, you need to create a new character, then in the menu of difficulty selection, pick the right mode:



A special world will then be created, with custom rules:
  • No natural mob spawn
  • Infinite decorations and blocks
  • Ability to place decoration and blocks with an unlimited range
  • Break any item with a single pickaxe hit
  • Custom shortcuts to copy, paste and delete entire zones
  • Access to command lines and administrator commands
  • Access to the event system
Creation and sharing tools
Building mode adds many shortcuts to simplify the creation of big structures.
You will be able to copy, paste or remove large zones in one go.

To do so, start by holding one of the following keys with your mouse on the top left corner of the area you want to edit :
  • C : Copy the selected zone and put it in the copyboard
  • X : Cut the selected zone and put it in the copyboard
  • N : Delete the selected zone

Now, while still holding the key, move the mouse cursor to the bottom right corner of your zone, then release the key.

If you copied or cut a zone, you can then use the V key to paste it on your mouse cursor (Top left corner, again)

Be careful to paste it in a free zone, the sky for example.

Share your creations

Every copied creation in the copyboard can then be pasted as text, in a text editor or any forum. You can then share your creations easily !

To import a creation, you will simply have to copy the text (in base 64) and press V (paste) in game. The creation will then appear under your mouse cursor.

Ex:
CENTeNqTYGBgEAViViB2ZWRg+P///yhBEeHAwCDBxMDgwgACLmDsAqUZ4GIg8P8/iwuQyEZVi6oGlYY qB2tkgJpKQC2JRmNzNSoNdfVoTJNDaDIwHAaHodrQRg5qw8QbDEgAAF1Drno=


Commands
Press 'enter' to type a command.

Free camera
To move freely the camera, type the following command :
/freefly
Typing the command a second time will disable the free camera and center it back on the player.
You can also specify camera speed. Ex:
/freefly 64

Time scale
/time factor
Factor being a float superior to 0, 1 being the normal time speed. You can also go way faster (100,1000) if you want to.

Switch day/night
/day
/night

Stop the rain
/stoprain

Player teleport
/tp
Teleports the player on the mouse cursor coordinates.
/tp x y
Teleports the player on the relative coordinates (x,y).
/tp chunk x y
Teleports the player to the chunk of coordinates (x, y).

Set full stats of the player
/fullstats

Disable shadows
/shadows

Put grass or snow/sand/etc on ground
/grass ground_index magic_value
You can find ground indexes on the section .ground in the entries file.
The magic value is a combination of binary flags that code each side of a block:
1: top
10: bottom
100: left
1000: right
Ex: spawn grass on the top of a block
/ground pc_ground_grass 1
Ex: spawn grass on each side of a block
/ground pc_ground_grass 1111

Most commonly used grounds are:
pc_ground_grass pc_ground_sand pc_ground_snow pc_ground_deadgrass

Place ores manually
/ore ore_index
Bug: seems to not work anymore. Fix required.

Spawn particles effect
/particles particle_index amount
You can find particles indexes on the section .particles in the entries file.
Ex:
/particles pc_particles_earth_column 10

Drop souls
/souls amount

Drop experience orbs
/exp amount

Drop an item
/drop entry amount
Drops a given amount of an item with a fixed entry id (pc_middleages_woodworking for example),
Entries can be found in the assets/moddable folder.

Example:
/drop pc_torch 99
This command will drop 99 torch under the mouse.

Drop all common blocks
/drop_blocks

Spawn fire
/fire fire_index
Ex:
/fire pc_fire_standard
Nb: should be spawn on a block that can burn

Spawn liquid
/liquid type rect_width rect_height
If no type is specified it will spawn water.

Ex:
/liquid 8 8
/liquid lava 4 1

Spawn monsters
/spawn monster_ind level count x_separation -r rarity_level -s color
You can spawn a monster and specify many parameters with this command.
All parameters except monster_ind are optional.
You can specify a rarity level with -r (value should be >= 0 and < 7) or indicate if the monster is shiny with -s (unknown, rare, divine, legendary).

Ex: spawn a rarity 7 zombie level 10 (not shiny)
/spawn pc_monster_zombi 10 -r 6
Ex: spawn a rare zombie
/spawn pc_monster_zombi -s rare

List of basic monsters:
pc_monster_wisp_small pc_monster_slime pc_monster_sand_slime pc_monster_snow_slime pc_monster_cavern_slime pc_monster_zombi pc_monster_skeleton pc_monster_repty pc_monster_sand_repty pc_monster_snow_repty pc_monster_sandworm pc_monster_wormrock pc_monster_scorpion pc_monster_chenille pc_monster_boar pc_monster_naga pc_monster_leaflion pc_monster_guardian pc_monster_yeti pc_monster_ice_eagle pc_monster_bat pc_monster_toxic_bat pc_monster_headcrab pc_monster_crawler pc_monster_spirit pc_monster_mimic pc_monster_butcher pc_monster_lava_hand pc_monster_devourer pc_monster_helldog pc_monster_lava_golem pc_monster_monk_claw pc_monster_monk_hand pc_monster_monk_rapier pc_monster_monk_spear pc_monster_raptor pc_monster_cow pc_monster_alien_brutal pc_monster_alien pc_monster_alien_mage pc_monster_alien_rex pc_monster_alien_bird pc_monster_alien_brain pc_monster_alien_lizard pc_monster_alien_mosquito pc_monster_alien_tripod

Spawn a damager
/damager damager_ind
You can find damagers indexes on the section .damager in the entries file.
Ex: spawn a lightning
/damager pc_damager_lightning

Spawn a bullet
/bullet bullet_ind
You can find bullet indexes on the section .bullet in the entries file.
Ex: spawn an electric ball
/bullet pc_beam_electric_ball

Print mouse block coordinates
/mouse

Display events blocks
/show events

Hide events blocks
/hide events

Impact gfx under the mouse
/impact

Decoration and block information under the mouse
/info

Reload spells without the need to restart the game
/reload spell

Reload UI skin without the need to restart the game
/reload skin

Export a screenshot of the global "minimap" of the world in a png
/preview
The output file will be placed in the game folder.

Generate a donjon from a json file
/donjon json_filename
Ex: generate a prison
/donjon assets/donjons/prison/prison.json
Note: it will also generate regions that can be displayed with /show events

Remove manually a region
/region remove

Add an automatic region (requires special placeholder blocks)
/region

Get decoration attributes as json on the clipboard
/attribs get
The decoration target should be under the mouse.

Change decoration attributes from json in the clipboard
/attribs set

Kill all entities (and the player)
/killall

Execute a lua script
/exec script_file
The script path is relative to the application folder.
Events editor
Events allow to go way beyond the decorative side, to create complex interactions with the player and the environement.

A full guide is entirely dedicated to this system:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1135473510
35 Comments
Dr_Shadox 14 May, 2020 @ 12:24am 
Idk why but i have monster in this mode :/
RAIDIALFLAME 12 Jun, 2018 @ 8:03am 
K THANKS
onilink_  [author] 12 Jun, 2018 @ 7:14am 
Create a topic on the forum with a detailed question.
RAIDIALFLAME 12 Jun, 2018 @ 7:10am 
i know i just need help and you seem to know alot
onilink_  [author] 12 Jun, 2018 @ 7:05am 
RAIDIALFLAME> your are off topic.
RAIDIALFLAME 12 Jun, 2018 @ 7:02am 
its saying it can level up and i can't put runes on it
RAIDIALFLAME 12 Jun, 2018 @ 7:00am 
how do you use the phoenix sword
onilink_  [author] 22 Jan, 2018 @ 2:36pm 
It's the drawback of a game that will support full modding. But most players will not touch advanced features, so it's not really a problem.
Tymon 20 Jan, 2018 @ 6:36am 
Well yes, I gathered that much. I meant the whole making challenge rooms with reward chests and stuff like that. If you can't import them into world gen or something it just seems like it is a lot of work for almost no real reason considering you could just spawn in whatever items you'd want anyway.
onilink_  [author] 20 Jan, 2018 @ 6:05am 
Tymon> It's just a creative mod, for who want to build fast and without limitations.
It's optional.