+
Skip to content

Configuration

Danae Dekker edited this page Aug 12, 2024 · 7 revisions

The configuration of GregoRail is located at plugins/GregoRail/config.yml relative to your server root directory. The following sections list the configurable options of the plugin.

Configuration

General – general

The general section defines configuration that applies to the plugin as a whole.

general.block-search-radius

The range of searching for the nearest block for @block and ^block location formats, specified in blocks. Blocks will be searched for in a cuboid with the specified radius around the location of the command.

general.cart-search-distance

The range of searching for minecarts, specified in blocks. Minecarts will be searched for in a cuboid with the specified radius around the location of the command.

Webhooks - webhooks

The webhooks section defines webhooks that will be executed by commands. Each key in this section is the name of the webhook, and its value is a section to configure the webhook.

webhooks.<name>.type

An array of types of webhooks that will be executed by this webhook. Possible values are CART_CODE_CHANGED, CART_SPEED_MULTIPLIER_CHANGED, BLOCK_SHAPE_CHANGED, BLOCK_MATERIAL_CHANGED, SOUND_PLAYED, CART_ENTERED, CART_EXITED, CART_MOVED, and CART_DESTROYED.

webhooks.<name>.url

The URL that defines the location of the webhook.

Code selection prompt – cart_prompt

The cart-prompt section provides customization for the promt used by the /gcart promptset command.

cart-prompt.title

The title to use in the inventory screen.

cart-prompt.item-material

The item material to use for individual code selectors in the inventory screen.

cart-prompt.player-search-radius

The range of searching for players to display the inventory screen to, specified in blocks. Players will be searched for in a cuboid with the specified radius around the location of the command.

Automatically killing living entities – butcher

The butcher section provides customization to automatically kill living entities in a specified range around a player when they are riding a minecart.

butcher.enabled

Set this to true to enable the automatic killing of living entities when a player is riding a minecart.

butcher.radius

The radius in blocks in which living entities will be killed. Living entities will be searched for in a cuboid with the specified radius around the location of the player.

butcher.lightning-bolt-effect

Set this to true to spawn an aesthetically pleasing lightning bolt effect when an entity is killed. The spawned lightning bolt is merely an effect and will not cause damage to other entities or fire spread.

butcher.ignore-entities-of-type

A list of mob types to ignore when killing living entities; the entities of these types will stay alive.

butcher.ignore-named-entities

Set this to true to ignore living entities with a custom display name, for example applied with a name tag; these entities will stay alive.

butcher.disable-item-drops

Set this to true to disable default item drops of killed living entities to not spam your creative inventory with redundant items.

Default configuration

The default plugin configuration is listed below:

general:
  block-search-radius: 10
  cart-search-distance: 10
  webhooks-enabled: true

webhooks:
  cart-moved:
    type: [CART_MOVED]
    url: "https://www.example.com/webhook/cart_moved"
  player-entered-cart:
    type: [CART_ENTERED]
    url: "https://www.example.com/webhook/cart_entered"
  
cart-prompt:
  title: "Select a code"
  item-material: MINECART
  player-search-radius: 5
  
butcher:
  enabled: true
  radius: 5
  lightning-bolt-effect: true
  ignore-entities-of-type: [ALLAY, VILLAGER]
  ignore-named-entities: true
  disable-item-drops: true
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载