Anti Food Dupe and TNT Duplication exploit Fix
1.14.4Very simple Skritp snippet for disabling Food Dupe and TNT Dupe!
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:
- 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;
Check the options in the 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.
options.yml
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:
- 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.
To change the options:
- 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
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta