HomeJavaModsAnti Food Dupe and TNT Duplication exploit Fix
Anti Food Dupe and TNT Duplication exploit Fix
ModsJava

Anti Food Dupe and TNT Duplication exploit Fix

⬇ Download on Spigot
This is a very simple skript that fix the exploit that allows TNT dupe and Food dupe:

The TNT dupe - Youtube
The Food dupe - Youtube


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:
Check the options in the spoiler:

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.

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
 



Other Features:

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:
  1. Then, start your server to create the skript folders.
  2. Open /plugins/skript/scripts
  3. Delete everything (optional, remove the default skripts)
  4. Add antidupe.sk to your scripts folder
  5. Use the command /skript reload antidup or restart the server
  6. The skript should be working and running! Try to dupe to check.
To change the options:
  1. Open the antidupe.sk file in /plugins/skript/scripts folder
  2. Edit the options
  3. Use /skript reload antidup every time you change the options in the file
Quick facts

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.

Explore more