your current location:首页 > news>craft Den1al MineCraft

craft Den1al MineCraft

2024-12-12 09:23:03|Myriagame |source:minecraft skins

Module

This is a lightweight module running on the server, allowing you to refuse some synthetic operations sent from the client.

For more information, you can view wiki.

How to use this module?

After installing this module and loading the archive, this module will not actively modify anything.You need to create and edit the files entitled "Craftden1al.json" (without quotation, and pay attention to the case on the Linux system) in the archive root directory (that is, the same directory as the Level.dat).

craftden1al.json example: ("//" comments are convenient to understand, and the actual JSON file is not allowed to comment)

 {"deeny_mode": false, // The default is "true"; can be "true" or "false", "true" is the blacklist mode, "false" is a whitelist.Mode "Patterns": [{"type": "rege_s_simple_datapack: all", // a string, indicating the name "data": [] // any json element, depending on the condition type}, //A JSON object containing the key "Type" and "Data" indicates a condition that is only matched when the conditions are established; or "NULL", which means unconditional matching ["Minecraft: String", // A string represents the name of the item named the item.Space ID (available after MC 1.7), or a numerical represents the digital ID of the item, or a JSON object represents more detailed items (see below), or "NULL" represents the empty slot "Minecraft: String", // The same as above above above above above above top above above above.One line "Minecraft: String", // The same line "Minecraft: String" // The same line], // A JSON array, which indicates the order order (rectangle) of an orderly synthetic formula, from top to bottom, from left to right right(That is, the first upper left corner of the synthetic table, the next one to the right, if there is no right, go down and return to the left end), or a raw material list of an disorderly synthetic formula (the "count" key for using the JSON object cannot be usedTo indicate multiple items, you must repeat the element to the array); or "NULL", indicating that the raw materials are not important {"ID": "Minecraft: Wool", //), Or a numerical representation of the number ID of the item; without this key value pair, the item will be invalid "DV": 0, // a integer, indicating the DV (data value/damage value) of the item;

Without this key value, the default is "0", "count": 1 // A integer, indicating the number of items; if there is no such key value, the default is "1"}, // a string or value (see if the usage see it.), Or a JSON object represents a synthetic result item, or "NULL" indicates that the synthetic result items are not important 2, 2 // The last two "2" represent the matching forms, and the width of the table is 2, height of heightFor 2; if there is only one element in the end, regardless of the element, it means the matching disorderly synthetic table; if there is no element in the end, the orderly and disorderly synthetic table is matched]] // The default "[]; a JSON array; a JSON array, Express all the synthetic formula patterns to be matched; in the blacklist mode, it will refuse to match the formula of any pattern to synthesize at the client; in the white list mode, it will refuse the formula that is not matched to any pattern. So, after editing a good file and reopening the server/ reopening the archive, the client player will find that only 4 lines can be used to synthesize 1 white wool, and when trying to synthesize other formulas, although synthetic, although syntheticThe right side of the screen can display the synthetic result items, but it will "rebound" when trying to take out the item, achieving the effect of rejecting the synthesis of certain formulas.

Please pay attention

Please check the history of MC Wiki for the formula, and the width and height of the orderly synthetic table are strictly "follow the source code".

For example, the width of the diamond ax is 2, 3, and cannot be written as 3, 3; and must be ["Minecraft: Diamond", "MINECRAFT: Diamond", "Minecraft: Diamond", "Minecraft: Stick", null, "Minecraft": stick "], instead of being written as a left and right mirror form (that is, [" Minecraft: Diamond "," MINECRAFT: Diamond "," Minecraft: Stick "," Minecraft: Diamond "," Minecraft: Stick ", null].

If you can't see the source code, the best solution is that both are written into the pattern.

Common problem

Q: Is it useful to install this module on the client?

A: This module is installed by the client to enter single -person archive.Entering multiplayer games has no effect and needs to be installed on the server.

Q: The patterns defined in craftden1al.json have not been loaded?

A: Please check whether the content of the Craftden1al.json conforms to JSON's grammar (special attention to whether the comma is, whether the symbol is half -angle, and the comments cannot appear).If there is a grammatical error, the game log will have "Incorrect JSON SYNTAX of Cractden1al.json, Giving Up Loading: Reason" output.And confirm whether the key name is spelling correctly (such as "Patterns" written as "Pattern", which is not loaded without any pattern), and whether it is wrong with the formula table.

Q: In the creative mode, you can use the number key to remove the items of the result slot of the items without rebounding?

A: This is the characteristic of the creative mode. This kind of thing will not happen in the survival/adventure mode.

Q: Craftden1al.json will be covered by items including invalid items?

A: No.This module will only read the file and will not be written.