This is a very simple skript that fix the exploit that allows TNT dupe and Food dupe:
Warning: I know this is probably the best solution for this issue, but it's a very simple one that will work. If you have any issues or ideas, contact me.
The TNT dupe solution:
The exploit works by using the new coral blocks in the slime block to create a dupe tnt machine.
So, by canceling the place of coral blocks on the slime block, we adress this issue temporarily.
The Food dupe solution:
There are two ways of using the food exploit: By eating and changing the slot, and by eating and changing between main hand and off hand. The temporarily solution is to cancel the change of the toolbar slot when the same food item is present in both slots.
Configurations:
- Enable or disable the TNT fix;
- Enable or disable the warning related to the placement of the coral in the slime block for the player;
- Set the player's warn message;
- Log a warning to the console when a player try to place a coral into a slime block
- Customize the console log message;
- Warn moderators
- Set the permission node for the moderator warning
- Set the warning message for the moderators
- Enable or disable the Food fix;
- Enable or disable the warning related to the dupe prevention for the player
- Set the warn message for the player;
Spoiler: Options
TNT.Dupe.Fix : true
#should we fix the TNT dupe exploit?
TNT.Player.Warn : false #should we send a warning to the player?
TNT.Player.Warn.Message : " [&eAnti-Dupe&r] - &4&lWarning!&r - You can't place Coral on Slime Blocks! #the message displayed to the player"
TNT.Console.Log : true #should we log / send to console a warning to the console when someone places a coral in a slime block?
TNT.Console.Message : "[Anti-Dupe] - %player% tried to place coral block on a slime block at %event-location% in world %world%" #mensage sent to the console
TNT.Warn.Moderators : true #should we warn the server moderators about a player trying to place a coral on a slime block?
TNT.Warn.Moderators.Perm : "antidupe.warn" #moderator permission node to watch for moderators warnings
TNT.Warn.Moderators.Message : "[&eAnti-Dupe&r] - &4&lWarning!&r - &c%player%&r tried to place coral block on a slime block at %event-location% in world %world%"
FOOD.Dupe.Fix : true #should we fix the food dupe?
FOOD.Player.Warn : false #should we warn the player when the dupe prevention is used?
FOOD.Player.Warn.Message : "[&eAnti-Dupe&r] - &4&lWarning!&r - Your hand/slot change was cancelled to avoid food duplication, as the exact same food item was set in the current and desired slot." #the message sent to the player
You can change these options by opening the antidupe.sk in a text editor and editing it.
TNT.Player.Warn : false #should we send a warning to the player?
TNT.Player.Warn.Message : " [&eAnti-Dupe&r] - &4&lWarning!&r - You can't place Coral on Slime Blocks! #the message displayed to the player"
TNT.Console.Log : true #should we log / send to console a warning to the console when someone places a coral in a slime block?
TNT.Console.Message : "[Anti-Dupe] - %player% tried to place coral block on a slime block at %event-location% in world %world%" #mensage sent to the console
TNT.Warn.Moderators : true #should we warn the server moderators about a player trying to place a coral on a slime block?
TNT.Warn.Moderators.Perm : "antidupe.warn" #moderator permission node to watch for moderators warnings
TNT.Warn.Moderators.Message : "[&eAnti-Dupe&r] - &4&lWarning!&r - &c%player%&r tried to place coral block on a slime block at %event-location% in world %world%"
FOOD.Dupe.Fix : true #should we fix the food dupe?
FOOD.Player.Warn : false #should we warn the player when the dupe prevention is used?
FOOD.Player.Warn.Message : "[&eAnti-Dupe&r] - &4&lWarning!&r - Your hand/slot change was cancelled to avoid food duplication, as the exact same food item was set in the current and desired slot." #the message sent to the player
You can change these options by opening the antidupe.sk in a text editor and editing it.
Spoiler: options.yml
Code (Text):
options:
TNT.Dupe.Fix: true #should we fix the TNT dupe exploit?
TNT.Player.Warn: false #should we send a warning to the player?
TNT.Player.Warn.Message: "[&eAnti-Dupe&r] - &4&lWarning!&r - You can't place Coral on Slime Blocks!" #the message displayed to the player
TNT.Console.Log: true #should we log / send to console a warning to the console when someone places a coral in a slime block?
TNT.Console.Message: "[Anti-Dupe] - %player% tried to place coral block on a slime block at %event-location% in world %world%" #mensage sent to the console
TNT.Warn.Moderators: true #should we warn the server moderators about a player trying to place a coral on a slime block?
TNT.Warn.Moderators.Perm: "antidupe.warn" #moderator permission node to watch for moderators warnings
TNT.Warn.Moderators.Message: "[&eAnti-Dupe&r] - &4&lWarning!&r - &c%player%&r tried to place coral block on a slime block at %event-location% in world %world%" #the message the moderators will receive
FOOD.Dupe.Fix: true #should we fix the food dupe?
FOOD.Player.Warn: false #should we warn the player when the dupe prevention is used?
FOOD.Player.Warn.Message: "[&eAnti-Dupe&r] - &4&lWarning!&r - Your hand/slot change was cancelled to avoid food duplication, as the exact same food item was set in the current and desired slot." #the message sent to the player
TNT.Dupe.Fix: true #should we fix the TNT dupe exploit?
TNT.Player.Warn: false #should we send a warning to the player?
TNT.Player.Warn.Message: "[&eAnti-Dupe&r] - &4&lWarning!&r - You can't place Coral on Slime Blocks!" #the message displayed to the player
TNT.Console.Log: true #should we log / send to console a warning to the console when someone places a coral in a slime block?
TNT.Console.Message: "[Anti-Dupe] - %player% tried to place coral block on a slime block at %event-location% in world %world%" #mensage sent to the console
TNT.Warn.Moderators: true #should we warn the server moderators about a player trying to place a coral on a slime block?
TNT.Warn.Moderators.Perm: "antidupe.warn" #moderator permission node to watch for moderators warnings
TNT.Warn.Moderators.Message: "[&eAnti-Dupe&r] - &4&lWarning!&r - &c%player%&r tried to place coral block on a slime block at %event-location% in world %world%" #the message the moderators will receive
FOOD.Dupe.Fix: true #should we fix the food dupe?
FOOD.Player.Warn: false #should we warn the player when the dupe prevention is used?
FOOD.Player.Warn.Message: "[&eAnti-Dupe&r] - &4&lWarning!&r - Your hand/slot change was cancelled to avoid food duplication, as the exact same food item was set in the current and desired slot." #the message sent to the player
Other Features:
- anti-spam for console and moderators. If a player rightclick a slime block with the coral a lot of times, it will be sent only one time. Cooldown: 10 seconds .
- If you set both TNT dupe fix and Food dupe fix off, the skript unloads itself.
If you are new to skript:
You will need to download Skript and place it in your plugins folder:
https://github.com/SkriptLang/Skript/releases
How to use the skript:
- Then, start your server to create the skript folders.
- Open /plugins/skript/scripts
- Delete everything (optional, remove the default skripts)
- Add antidupe.sk to your scripts folder
- Use the command /skript reload antidup or restart the server
- The skript should be working and running! Try to dupe to check.
- Open the antidupe.sk file in /plugins/skript/scripts folder
- Edit the options
- Use /skript reload antidup every time you change the options in the file
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.14
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Anti Food Dupe and TNT Duplication exploit Fix is a free Minecraft Java mod. Compatible with Minecraft 1.14. Downloaded 253 times (via Spigot). Download it and open it directly in the game.