# This file contains a list of all available settings and their default value for minetest.conf # By default, all the settings are commented and not functional. # Uncomment settings by removing the preceding #. # minetest.conf is read by default from: # ../minetest.conf # ../../minetest.conf # Any other path can be chosen by passing the path as a parameter # to the program, eg. "minetest.exe --config ../minetest.conf.example". # Further documentation: # http://wiki.minetest.net/ # # Controls # # If enabled, you can place blocks at the position (feet + eye level) where you stand. # This is helpful when working with nodeboxes in small areas. # type: bool # enable_build_where_you_stand = false # Player is able to fly without being affected by gravity. # This requires the "fly" privilege on the server. # type: bool # free_move = false # If enabled, makes move directions relative to the player's pitch when flying or swimming. # type: bool # pitch_move = false # Fast movement (via the "special" key). # This requires the "fast" privilege on the server. # type: bool # fast_move = false # If enabled together with fly mode, player is able to fly through solid nodes. # This requires the "noclip" privilege on the server. # type: bool # noclip = false # Smooths camera when looking around. Also called look or mouse smoothing. # Useful for recording videos. # type: bool # cinematic = false # Smooths rotation of camera. 0 to disable. # type: float min: 0 max: 0.99 # camera_smoothing = 0.0 # Smooths rotation of camera in cinematic mode. 0 to disable. # type: float min: 0 max: 0.99 # cinematic_camera_smoothing = 0.7 # Invert vertical mouse movement. # type: bool # invert_mouse = false # Mouse sensitivity multiplier. # type: float # mouse_sensitivity = 0.2 # If enabled, "special" key instead of "sneak" key is used for climbing down and # descending. # type: bool # aux1_descends = false # Double-tapping the jump key toggles fly mode. # type: bool # doubletap_jump = false # If disabled, "special" key is used to fly fast if both fly and fast mode are # enabled. # type: bool # always_fly_fast = true # The time in seconds it takes between repeated right clicks when holding the right # mouse button. # type: float min: 0.001 # repeat_rightclick_time = 0.25 # Automatically jump up single-node obstacles. # type: bool # autojump = false # Prevent digging and placing from repeating when holding the mouse buttons. # Enable this when you dig or place too often by accident. # type: bool # safe_dig_and_place = false # Enable random user input (only used for testing). # type: bool # random_input = false # Continuous forward movement, toggled by autoforward key. # Press the autoforward key again or the backwards movement to disable. # type: bool # continuous_forward = false # The length in pixels it takes for touch screen interaction to start. # type: int min: 0 max: 100 # touchscreen_threshold = 20 # (Android) Fixes the position of virtual joystick. # If disabled, virtual joystick will center to first-touch's position. # type: bool # fixed_virtual_joystick = false # (Android) Use virtual joystick to trigger "aux" button. # If enabled, virtual joystick will also tap "aux" button when out of main circle. # type: bool # virtual_joystick_triggers_aux = false # Enable joysticks # type: bool # enable_joysticks = false # The identifier of the joystick to use # type: int # joystick_id = 0 # The type of joystick # type: enum values: auto, generic, xbox # joystick_type = auto # The time in seconds it takes between repeated events # when holding down a joystick button combination. # type: float min: 0.001 # repeat_joystick_button_time = 0.17 # The sensitivity of the joystick axes for moving the # ingame view frustum around. # type: float # joystick_frustum_sensitivity = 170 # Key for moving the player forward. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_forward = KEY_KEY_W # Key for moving the player backward. # Will also disable autoforward, when active. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_backward = KEY_KEY_S # Key for moving the player left. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_left = KEY_KEY_A # Key for moving the player right. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_right = KEY_KEY_D # Key for jumping. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_jump = KEY_SPACE # Key for sneaking. # Also used for climbing down and descending in water if aux1_descends is disabled. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_sneak = KEY_LSHIFT # Key for opening the inventory. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_inventory = KEY_KEY_I # Key for moving fast in fast mode. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_special1 = KEY_KEY_E # Key for opening the chat window. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_chat = KEY_KEY_T # Key for opening the chat window to type commands. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_cmd = / # Key for opening the chat window to type local commands. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_cmd_local = . # Key for toggling unlimited view range. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_rangeselect = KEY_KEY_R # Key for toggling flying. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_freemove = KEY_KEY_K # Key for toggling pitch move mode. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_pitchmove = KEY_KEY_P # Key for toggling fast mode. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_fastmove = KEY_KEY_J # Key for toggling noclip mode. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_noclip = KEY_KEY_H # Key for selecting the next item in the hotbar. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_hotbar_next = KEY_KEY_N # Key for selecting the previous item in the hotbar. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_hotbar_previous = KEY_KEY_B # Key for muting the game. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_mute = KEY_KEY_M # Key for increasing the volume. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_increase_volume = # Key for decreasing the volume. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_decrease_volume = # Key for toggling autoforward. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_autoforward = # Key for toggling cinematic mode. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_cinematic = # Key for toggling display of minimap. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_minimap = KEY_KEY_V # Key for taking screenshots. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_screenshot = KEY_F12 # Key for dropping the currently selected item. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_drop = KEY_KEY_Q # Key to use view zoom when possible. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_zoom = KEY_KEY_Z # Key for selecting the first hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot1 = KEY_KEY_1 # Key for selecting the second hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot2 = KEY_KEY_2 # Key for selecting the third hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot3 = KEY_KEY_3 # Key for selecting the fourth hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot4 = KEY_KEY_4 # Key for selecting the fifth hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot5 = KEY_KEY_5 # Key for selecting the sixth hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot6 = KEY_KEY_6 # Key for selecting the seventh hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot7 = KEY_KEY_7 # Key for selecting the eighth hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot8 = KEY_KEY_8 # Key for selecting the ninth hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot9 = KEY_KEY_9 # Key for selecting the tenth hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot10 = KEY_KEY_0 # Key for selecting the 11th hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot11 = # Key for selecting the 12th hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot12 = # Key for selecting the 13th hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot13 = # Key for selecting the 14th hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot14 = # Key for selecting the 15th hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot15 = # Key for selecting the 16th hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot16 = # Key for selecting the 17th hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot17 = # Key for selecting the 18th hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot18 = # Key for selecting the 19th hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot19 = # Key for selecting the 20th hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot20 = # Key for selecting the 21st hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot21 = # Key for selecting the 22nd hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot22 = # Key for selecting the 23rd hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot23 = # Key for selecting the 24th hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot24 = # Key for selecting the 25th hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot25 = # Key for selecting the 26th hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot26 = # Key for selecting the 27th hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot27 = # Key for selecting the 28th hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot28 = # Key for selecting the 29th hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot29 = # Key for selecting the 30th hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot30 = # Key for selecting the 31st hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot31 = # Key for selecting the 32nd hotbar slot. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_slot32 = # Key for toggling the display of the HUD. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_toggle_hud = KEY_F1 # Key for toggling the display of chat. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_toggle_chat = KEY_F2 # Key for toggling the display of the large chat console. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_console = KEY_F10 # Key for toggling the display of fog. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_toggle_force_fog_off = KEY_F3 # Key for toggling the camera update. Only used for development # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_toggle_update_camera = # Key for toggling the display of debug info. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_toggle_debug = KEY_F5 # Key for toggling the display of the profiler. Used for development. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_toggle_profiler = KEY_F6 # Key for switching between first- and third-person camera. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_camera_mode = KEY_KEY_C # Key for increasing the viewing range. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_increase_viewing_range_min = + # Key for decreasing the viewing range. # See http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3 # type: key # keymap_decrease_viewing_range_min = - # # Graphics # ## In-Game ### Basic # Enable vertex buffer objects. # This should greatly improve graphics performance. # type: bool # enable_vbo = true # Whether to fog out the end of the visible area. # type: bool # enable_fog = true # Leaves style: # - Fancy: all faces visible # - Simple: only outer faces, if defined special_tiles are used # - Opaque: disable transparency # type: enum values: fancy, simple, opaque # leaves_style = fancy # Connects glass if supported by node. # type: bool # connected_glass = false # Enable smooth lighting with simple ambient occlusion. # Disable for speed or for different looks. # type: bool # smooth_lighting = true # Clouds are a client side effect. # type: bool # enable_clouds = true # Use 3D cloud look instead of flat. # type: bool # enable_3d_clouds = true # Method used to highlight selected object. # type: enum values: box, halo, none # node_highlighting = box # Adds particles when digging a node. # type: bool # enable_particles = true ### Filtering # Use mip mapping to scale textures. May slightly increase performance, # especially when using a high resolution texture pack. # Gamma correct downscaling is not supported. # type: bool # mip_map = false # Use anisotropic filtering when viewing at textures from an angle. # type: bool # anisotropic_filter = false # Use bilinear filtering when scaling textures. # type: bool # bilinear_filter = false # Use trilinear filtering when scaling textures. # type: bool # trilinear_filter = false # Filtered textures can blend RGB values with fully-transparent neighbors, # which PNG optimizers usually discard, sometimes resulting in a dark or # light edge to transparent textures. Apply this filter to clean that up # at texture load time. # type: bool # texture_clean_transparent = false # When using bilinear/trilinear/anisotropic filters, low-resolution textures # can be blurred, so automatically upscale them with nearest-neighbor # interpolation to preserve crisp pixels. This sets the minimum texture size # for the upscaled textures; higher values look sharper, but require more # memory. Powers of 2 are recommended. Setting this higher than 1 may not # have a visible effect unless bilinear/trilinear/anisotropic filtering is # enabled. # This is also used as the base node texture size for world-aligned # texture autoscaling. # type: int # texture_min_size = 64 # Experimental option, might cause visible spaces between blocks # when set to higher number than 0. # type: enum values: 0, 1, 2, 4, 8, 16 # fsaa = 0 # Undersampling is similar to using a lower screen resolution, but it applies # to the game world only, keeping the GUI intact. # It should give a significant performance boost at the cost of less detailed image. # Higher values result in a less detailed image. # type: int min: 1 max: 8 # undersampling = 1 ### Shaders # Shaders allow advanced visual effects and may increase performance on some video # cards. # This only works with the OpenGL video backend. # type: bool # enable_shaders = true # Path to shader directory. If no path is defined, default location will be used. # type: path # shader_path = #### Tone Mapping # Enables Hable's 'Uncharted 2' filmic tone mapping. # Simulates the tone curve of photographic film and how this approximates the # appearance of high dynamic range images. Mid-range contrast is slightly # enhanced, highlights and shadows are gradually compressed. # type: bool # tone_mapping = false #### Bumpmapping # Enables bumpmapping for textures. Normalmaps need to be supplied by the texture pack # or need to be auto-generated. # Requires shaders to be enabled. # type: bool # enable_bumpmapping = false # Enables on the fly normalmap generation (Emboss effect). # Requires bumpmapping to be enabled. # type: bool # generate_normalmaps = false # Strength of generated normalmaps. # type: float # normalmaps_strength = 0.6 # Defines sampling step of texture. # A higher value results in smoother normal maps. # type: int min: 0 max: 2 # normalmaps_smooth = 0 #### Parallax Occlusion # Enables parallax occlusion mapping. # Requires shaders to be enabled. # type: bool # enable_parallax_occlusion = false # 0 = parallax occlusion with slope information (faster). # 1 = relief mapping (slower, more accurate). # type: int min: 0 max: 1 # parallax_occlusion_mode = 1 # Number of parallax occlusion iterations. # type: int # parallax_occlusion_iterations = 4 # Overall scale of parallax occlusion effect. # type: float # parallax_occlusion_scale = 0.08 # Overall bias of parallax occlusion effect, usually scale/2. # type: float # parallax_occlusion_bias = 0.04 #### Waving Nodes # Set to true to enable waving liquids (like water). # Requires shaders to be enabled. # type: bool # enable_waving_water = false # The maximum height of the surface of waving liquids. # 4.0 = Wave height is two nodes. # 0.0 = Wave doesn't move at all. # Default is 1.0 (1/2 node). # Requires waving liquids to be enabled. # type: float min: 0 max: 4 # water_wave_height = 1.0 # Length of liquid waves. # Requires waving liquids to be enabled. # type: float min: 0.1 # water_wave_length = 20.0 # How fast liquid waves will move. Higher = faster. # If negative, liquid waves will move backwards. # Requires waving liquids to be enabled. # type: float # water_wave_speed = 5.0 # Set to true to enable waving leaves. # Requires shaders to be enabled. # type: bool # enable_waving_leaves = false # Set to true to enable waving plants. # Requires shaders to be enabled. # type: bool # enable_waving_plants = false ### Advanced # Arm inertia, gives a more realistic movement of # the arm when the camera moves. # type: bool # arm_inertia = true # If FPS would go higher than this, limit it by sleeping # to not waste CPU power for no benefit. # type: int min: 1 # fps_max = 60 # Maximum FPS when game is paused. # type: int min: 1 # pause_fps_max = 20 # Open the pause menu when the window's focus is lost. Does not pause if a formspec is # open. # type: bool # pause_on_lost_focus = false # View distance in nodes. # type: int min: 20 max: 4000 # viewing_range = 100 # Camera 'near clipping plane' distance in nodes, between 0 and 0.25 # Only works on GLES platforms. Most users will not need to change this. # Increasing can reduce artifacting on weaker GPUs. # 0.1 = Default, 0.25 = Good value for weaker tablets. # type: float min: 0 max: 0.25 # near_plane = 0.1 # Width component of the initial window size. # type: int min: 1 # screen_w = 1024 # Height component of the initial window size. # type: int min: 1 # screen_h = 600 # Save window size automatically when modified. # type: bool # autosave_screensize = true # Fullscreen mode. # type: bool # fullscreen = false # Bits per pixel (aka color depth) in fullscreen mode. # type: int # fullscreen_bpp = 24 # Vertical screen synchronization. # type: bool # vsync = false # Field of view in degrees. # type: int min: 45 max: 160 # fov = 72 # Alters the light curve by applying 'gamma correction' to it. # Higher values make middle and lower light levels brighter. # Value '1.0' leaves the light curve unaltered. # This only has significant effect on daylight and artificial # light, it has very little effect on natural night light. # type: float min: 0.33 max: 3 # display_gamma = 1.0 # Gradient of light curve at minimum light level. # Controls the contrast of the lowest light levels. # type: float min: 0 max: 3 # lighting_alpha = 0.0 # Gradient of light curve at maximum light level. # Controls the contrast of the highest light levels. # type: float min: 0 max: 3 # lighting_beta = 1.5 # Strength of light curve boost. # The 3 'boost' parameters define a range of the light # curve that is boosted in brightness. # type: float min: 0 max: 0.4 # lighting_boost = 0.2 # Center of light curve boost range. # Where 0.0 is minimum light level, 1.0 is maximum light level. # type: float min: 0 max: 1 # lighting_boost_center = 0.5 # Spread of light curve boost range. # Controls the width of the range to be boosted. # Standard deviation of the light curve boost Gaussian. # type: float min: 0 max: 0.4 # lighting_boost_spread = 0.2 # Path to texture directory. All textures are first searched from here. # type: path # texture_path = # The rendering back-end for Irrlicht. # A restart is required after changing this. # Note: On Android, stick with OGLES1 if unsure! App may fail to start otherwise. # On other platforms, OpenGL is recommended, and it’s the only driver with # shader support currently. # type: enum values: null, software, burningsvideo, direct3d8, direct3d9, opengl, ogles1, ogles2 # video_driver = opengl # Radius of cloud area stated in number of 64 node cloud squares. # Values larger than 26 will start to produce sharp cutoffs at cloud area corners. # type: int # cloud_radius = 12 # Enable view bobbing and amount of view bobbing. # For example: 0 for no view bobbing; 1.0 for normal; 2.0 for double. # type: float # view_bobbing_amount = 1.0 # Multiplier for fall bobbing. # For example: 0 for no view bobbing; 1.0 for normal; 2.0 for double. # type: float # fall_bobbing_amount = 0.03 # 3D support. # Currently supported: # - none: no 3d output. # - anaglyph: cyan/magenta color 3d. # - interlaced: odd/even line based polarisation screen support. # - topbottom: split screen top/bottom. # - sidebyside: split screen side by side. # - crossview: Cross-eyed 3d # - pageflip: quadbuffer based 3d. # Note that the interlaced mode requires shaders to be enabled. # type: enum values: none, anaglyph, interlaced, topbottom, sidebyside, crossview, pageflip # 3d_mode = none # Strength of 3D mode parallax. # type: float # 3d_paralax_strength = 0.025 # In-game chat console height, between 0.1 (10%) and 1.0 (100%). # type: float min: 0.1 max: 1 # console_height = 0.6 # In-game chat console background color (R,G,B). # type: string # console_color = (0,0,0) # In-game chat console background alpha (opaqueness, between 0 and 255). # type: int min: 0 max: 255 # console_alpha = 200 # Formspec full-screen background opacity (between 0 and 255). # type: int min: 0 max: 255 # formspec_fullscreen_bg_opacity = 140 # Formspec full-screen background color (R,G,B). # type: string # formspec_fullscreen_bg_color = (0,0,0) # Formspec default background opacity (between 0 and 255). # type: int min: 0 max: 255 # formspec_default_bg_opacity = 140 # Formspec default background color (R,G,B). # type: string # formspec_default_bg_color = (0,0,0) # Selection box border color (R,G,B). # type: string # selection return true, dump(_G) end, }) core.register_chatcommand("colorize_test", { func = function(param) return true, core.colorize("red", param) end, }) core.register_chatcommand("test_node", { func = function(param) core.display_chat_message(dump(core.get_node({x=0, y=0, z=0}))) core.display_chat_message(dump(core.get_node_or_nil({x=0, y=0, z=0}))) end, }) local function preview_minimap() local minimap = core.ui.minimap if not minimap then print("[PREVIEW] Minimap is disabled. Skipping.") return end minimap:set_mode(4) minimap:show() minimap:set_pos({x=5, y=50, z=5}) minimap:set_shape(math.random(0, 1)) print("[PREVIEW] Minimap: mode => " .. dump(minimap:get_mode()) .. " position => " .. dump(minimap:get_pos()) .. " angle => " .. dump(minimap:get_angle())) end core.after(2, function() print("[PREVIEW] loaded " .. modname .. " mod") modstorage:set_string("current_mod", modname) print(modstorage:get_string("current_mod")) preview_minimap() end) core.after(5, function() if core.ui.minimap then core.ui.minimap:show() end print("[PREVIEW] Time of day " .. core.get_timeofday()) print("[PREVIEW] Node level: " .. core.get_node_level({x=0, y=20, z=0}) .. " max level " .. core.get_node_max_level({x=0, y=20, z=0})) print("[PREVIEW] Find node near: " .. dump(core.find_node_near({x=0, y=20, z=0}, 10, {"group:tree", "default:dirt", "default:stone"}))) end) core.register_on_dignode(function(pos, node) print("The local player dug a node!") print("pos:" .. dump(pos)) print("node:" .. dump(node)) return false end) core.register_on_punchnode(function(pos, node) print("The local player punched a node!") local itemstack = core.get_wielded_item() --[[ -- getters print(dump(itemstack:is_empty())) print(dump(itemstack:get_name())) print(dump(itemstack:get_count())) print(dump(itemstack:get_wear())) print(dump(itemstack:get_meta())) print(dump(itemstack:get_metadata() print(dump(itemstack:is_known())) --print(dump(itemstack:get_definition())) print(dump(itemstack:get_tool_capabilities())) print(dump(itemstack:to_string())) print(dump(itemstack:to_table())) -- setters print(dump(itemstack:set_name("default:dirt"))) print(dump(itemstack:set_count("95"))) print(dump(itemstack:set_wear(934))) print(dump(itemstack:get_meta())) print(dump(itemstack:get_metadata())) --]] print(dump(itemstack:to_table())) print("pos:" .. dump(pos)) print("node:" .. dump(node)) return false end) core.register_chatcommand("privs", { func = function(param) return true, core.privs_to_string(minetest.get_privilege_list()) end, }) core.register_chatcommand("text", { func = function(param) return core.localplayer:hud_change(id, "text", param) end, }) core.register_on_mods_loaded(function() core.log("Yeah preview mod is loaded with other CSM mods.") end)