Skip to content

Config System

DragonEggBedrockBreaking edited this page Jun 14, 2024 · 1 revision

Config System

Most of this mod's properties are controlled throught the new /vd command. They are stored in worldFolder/vanilla_disable_command.sql. DO NOT DELETE THIS FILE. To reset, either use the in-game command, or delete all lines. Deleting this file will trigger gamerule migration. You need cheats enabled for the command to work - this is to make sure that on a dedicated server, only certain people can change properties.

Command

You can do many things with this command:

  • Rules
    • Get the current value of a property
      • Run the command /vd rule <table> <object> <propertyType> <property>, and you will be told the current and the default value of the property.
    • Change the value of a single property for a single object
      • Run the command /vd rule <table> <object> <propertyType> <property> <newVal>, and the property will be set to the new value.
    • Change the value of a single property for multiple objects
      • Run the command /vd rule <table> all <propertyType> <property> <newVal>, and the property will be set to the new value for all objects that support it.
      • Run the command /vd rule <table> matches <pattern> <propertyType> <property> <newVal>, and the property will be set to the new value for all objects that support it and match the pattern.
        • The pattern used should work with an SQL LIKE statement. The main thing is that % can be used to match anything, e.g. %_apple matches everything ending in _apple. You cannot use other SQL statements, due to the risk of SQL injections. You must surround it in either "double quotes" or 'single quotes'.
    • Change the value of multiple values for a single object
      • Run the command /vd rule <table> <object> <propertyType> all <newVal>, and all properties in the property group will be set to the new value for the object. This only works for property groups where all properties are booleans.
      • Run the command /vd rule <table> <object> <propertyType> matches <pattern> <newVal>, and all properties in the property group that match the pattern will be set to the new value for the object. This only works for property groups where all properties are booleans.
        • The pattern used should work with an SQL LIKE statement. The main thing is that % can be used to match anything, e.g. %_apple matches everything ending in _apple. You cannot use other SQL statements, due to the risk of SQL injections. You must surround it in either "double quotes" or 'single quotes'.
    • Change the value of multiple values for multiple objects
      • Combine the previous two sections
  • Reset a table
    • Reset everything
      • /vd reset all
    • Reset a table
      • /vd reset <table>
    • Reset a property group in a table
      • /vd reset <table> <group>

Properties

This mod has many tables, with objects and properties. It is stored in an SQL database, with rows being the objects, and columns being the properties.

Entities

The rows are all entities in the game. Property groups and properties are partially listed below.

Stats

These include custom statistics *_custom_stat and other stat types *_stat_type, all related to data collected about players.

Damage

These include all damage types that can affect a player. This cannot be extended to other entities because getting default values is impossible.

Knockback

These include all knockback types that can affect an entity. You can essentially control which entities can knock back which other entities.

Effects

These include all effects that can affect an entity. They can be toggled for all living entities.

Death

These include all damage tyeps that can affect a player. If the player dies, therefore goes down to 0 health, their health is set to 1. They can still be damaged, but not killed.

Painting

These include all painting variants. This, of course, only affects paintings.

Biome Type

These include all biomes of which a villager can be a member. Disabling them makes them a plains villager.

Profeassion

These include all professions which a villager can practise. Disablilng them makes the villager an unemployed villager.

Player

These are all properties related to the player. Most are abilities of the player, with beta_hunger toggling hunger working like it did in mc beta.#

can_be_on_fire can_sprint can_crouch can_swim can_jump can_be_invisible flying_speed beta_hunger

Spawning

These are all properties that relate to spawning, breeding, summoning, etc.

can_despawn despawn_time can_spawn spawn_egg spawner despawn_on_player_death can_breed spawned_by_villagers min_despawn_distance instant_despawn_distance can_be_summoned

Breeding Ingredient

These control which ingredients animals that can breed are attracted to and can breed with. Allowing them to breed with carrots/warped fungus automatically makes them attracted to carrot-on-a-stick/warped-fungus-on-a-stick.

Other

These control all miscellaneous properties of entities.

can_exist can_be_converted_to burns_in_sunlight can_drop_xp ai can_trade can_infinitely_trade daily_restocks can_player_interact can_be_lit_by_fire_aspect alpha_behaviour can_shoot_fireballs

Blocks

The rows are all the blocks in the game. Property groups and properties are partially listed below.

Fluid

These are all properties related to water or lava. "Reaching far" means does it travel 8 blocks or only 4. Fluid speed seems to be arbitrary and relative; I'm not sure exactly what the number objectively means.

fluid_reaches_far fluid_reaches_far_in_nether fluid_speed fluid_speed_in_nether

Others

This is where most block properties are. These should all be self explanatory. works differs based on block, most of the time it controls redstone behaviour.

can_place_in_overworld can_place_in_nether can_place_in_end can_break can_interact works friction_factor speed_factor jump_factor can_be_filled_by_dripstone can_be_filled_by_precipitation redstone_delay redstone_duration can_drop_xp can_fall can_be_trampled alpha_behaviour opening_blockable cooldown push_behaviour ignited_by_lava destroy_speed requires_correct_tool_for_drops burn_odds ignite_odds can_be_placed_by_command

Items

The rows are all the items in the game. Property groups and properties are partially listed below.

Potions

These are all potion effects that can be applied to an item. These support potion, lingering_potion, splash_potion, and also tipped_arrow, and control its potion effects.

Others

This is where most item properties are. These should all be self explanatory. works is block dependent, and most of the time controls its effects or interactions.

works durability burns can_spam nutrition saturation can_break_blocks_in_creative dispenser_interaction cauldron_interaction fuel_duration can_be_given_by_command

Enchantments

The rows are all the enchantments in the game. Property groups and properties are partially listed below.

Item

These include all items in the game, therefore you can toggle which items support the enchantment.

Enchantment Compatibility

These include all enchantments in the game, and control which enchantments are compatible with which others. If either this or the reverse is true, the game assumes it is true, therefore to disable it, you must disable both this and the reverse.

Others

There are three more tables in the game.

Command

Only enabled exists, and controls whether the command works. The rows are all commands in the game.

Advancement

Only enabled exists, and controls whether the advancement can be earned. The rows are all advancements in the game.

Mob Category

Only mobcap exists, and controls how many mobs can spawn per player render distance. The rows are all mob categories in the game.

Biome

Only enabled exists, and controls whether the biomes are toggled. The rows are all biomes in the game.

Placed Feature

Only enabled exists, and controls whether the placed features are toggled. The rows are all placed features in the game.

Structures

Only enabled exists, and controls whether the structures are toggled. The rows are all structures in the game.

Misc

Miscellaneous rules live here: raid_waves for raid wave rules and enabled for recipe book toggling. The rows are the rules.

GUI

This mod also has a configuration GUI. To use it, press the hotkey k in the game (this can be configured in the vanilla hotkey menu). It allows for setting individual rules and resetting the whole database, but not for resetting individual tables. It only works in singleplayer.