You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is a plugin to randomize the items you are normally supposed to get when an item entity drop.
3
6
4
-
This plugin now targets Paper 1.21.6.
7
+
RandomDrop is a Minecraft plugin that replaces every drop with a deterministic random item. The project targets **Paper 1.21.6** and is intended to be dropped straight into your server's `plugins` folder.
8
+
9
+
## Building from source
10
+
11
+
```bash
12
+
mvn -f RandomDrop/pom.xml package
13
+
```
5
14
6
-
This plugin has been inspired by a French Minecraft video series, but since the maker of the plugin wasn't willing to share it I just decided to make an identical one to share for the public.
15
+
The compiled JAR will appear in `RandomDrop/target/`. If you are working inside a Codex environment you may need to configure the Maven proxy as documented below.
7
16
8
-
# How to build?
9
-
Clone the repository using git and run `mvn package` inside the `RandomDrop` directory to build the plugin JAR. The resulting file can be dropped directly into your server's `plugins` folder.
10
-
If you are running in a Codex workspace you may need to configure Maven to use
11
-
the built-in proxy before running the build command:
When the `main` branch is updated, GitHub Actions automatically builds the plugin and publishes a release. The tag is derived from the `version` field in `plugin.yml`.
37
-
38
-
## Configuration
39
-
The configuration file is located in the `RandomDrop` folder inside the `plugins` folder of your Minecraft server, the file you are supposed to edit is `config.yml`.
40
-
41
-
### RANDOMIZE_DURABILITY
42
-
(default: false)
43
-
is to randomize the durability of a randomized item IF the item is damageable.
44
-
45
-
### RANDOMIZE_DURABILITY_OF_CRAFTED_ITEMS
46
-
(default: false)
47
-
is to randomize the durability of a crafted item IF the item is damageable.
48
-
49
-
### CLAIMED_LORE_TEXT
50
-
(default: §r§7§lCLAIMED)
51
-
is to change the randomized item lore.
52
42
53
-
### SEED
54
-
(default: random_int)
55
-
is to make the randomized items different for each seed, ex: seed 1234, if sand is broken, will loot iron - seed 1233, if sand is broken, will loot gold. To regenerate a random seed, delete the line. The seed is generated using the `System.currentTimeMillis();` function.
43
+
## Continuous delivery
56
44
57
-
### KEEP_ENCHANT_ON_DROPPED_UNCLAIMED_ITEM
58
-
(default: false)
59
-
will, as its name imply, once the unclaimed item is drop, keep the enchant of the unclaimed item to the randomized item.
45
+
Whenever `main` is updated, GitHub Actions builds the plugin and publishes a release. If a release with the same tag already exists, it is removed before uploading the new artifact.
60
46
61
-
### KEEP_ITEM_CUSTOMNAME_ON_RANDOMIZE
62
-
(default: false)
63
-
will, as its name imply, once the unclaimed item is drop, keep the custom name of the unclaimed item to the randomized item.
47
+
## Configuration options
64
48
65
-
### CLAIM_CRAFTED_ITEMS
66
-
(default: true)
67
-
will, as its name imply, claim the item that is gonna be crafted.
49
+
The configuration file is generated inside `plugins/RandomDrop/config.yml`. Notable options include:
68
50
69
-
### RANDOMIZE_CRAFT
70
-
(default: false)
71
-
will randomize the result item from a crafting table. However, it will not randomize the recipe.
51
+
-**RANDOMIZE_DURABILITY** – randomize durability of dropped items (default: `false`)
52
+
-**RANDOMIZE_DURABILITY_OF_CRAFTED_ITEMS** – randomize durability of crafted items (default: `false`)
53
+
-**CLAIMED_LORE_TEXT** – lore line used to mark claimed items (default: `§r§7§lCLAIMED`)
54
+
-**SEED** – controls the drop mapping; leave blank to regenerate (default: random value)
55
+
-**KEEP_ENCHANT_ON_DROPPED_UNCLAIMED_ITEM** – keep enchantments when an item is randomized (default: `false`)
56
+
-**KEEP_ITEM_CUSTOMNAME_ON_RANDOMIZE** – keep custom names when an item is randomized (default: `false`)
57
+
-**CLAIM_CRAFTED_ITEMS** – mark crafted items as claimed (default: `true`)
0 commit comments