Skip to content

Commit 28c833f

Browse files
committed
Scaffold Walk Improvement
1 parent 2611ff3 commit 28c833f

4 files changed

Lines changed: 49 additions & 42 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,9 @@ Examples:
283283
### Panic Improved
284284
- It now saves your current enabled hacks and allows you to restore them via ClickUI/Navigator or keybind.
285285

286+
### Scaffold Walk Improved
287+
- Ignores shulker boxes
288+
286289
### Unsafe Chat Toast
287290
- Optional; toggle via NoChatReports or Wurst Options.
288291

src/main/java/net/wurstclient/hacks/AntiDropHack.java

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -17,47 +17,47 @@
1717
@SearchTags({"anti drop", "item lock", "drop lock", "prevent drop"})
1818
public final class AntiDropHack extends Hack
1919
{
20-
private static final String[] DEFAULT_ITEMS = {
21-
// swords
22-
"minecraft:wooden_sword", "minecraft:stone_sword",
23-
"minecraft:iron_sword", "minecraft:golden_sword",
24-
"minecraft:diamond_sword", "minecraft:netherite_sword",
25-
// axes
26-
"minecraft:wooden_axe", "minecraft:stone_axe",
27-
"minecraft:iron_axe", "minecraft:golden_axe",
28-
"minecraft:diamond_axe", "minecraft:netherite_axe",
29-
// pickaxes
30-
"minecraft:wooden_pickaxe", "minecraft:stone_pickaxe",
31-
"minecraft:iron_pickaxe", "minecraft:golden_pickaxe",
32-
"minecraft:diamond_pickaxe", "minecraft:netherite_pickaxe",
33-
// shovels
34-
"minecraft:wooden_shovel", "minecraft:stone_shovel",
35-
"minecraft:iron_shovel", "minecraft:golden_shovel",
36-
"minecraft:diamond_shovel", "minecraft:netherite_shovel",
37-
// hoes
38-
"minecraft:wooden_hoe", "minecraft:stone_hoe",
39-
"minecraft:iron_hoe", "minecraft:golden_hoe",
40-
"minecraft:diamond_hoe", "minecraft:netherite_hoe",
41-
// other weapons & tools
42-
"minecraft:bow", "minecraft:crossbow", "minecraft:trident",
43-
"minecraft:mace", "minecraft:shield", "minecraft:flint_and_steel",
44-
"minecraft:shears", "minecraft:fishing_rod",
45-
"minecraft:carrot_on_a_stick", "minecraft:warped_fungus_on_a_stick",
46-
"minecraft:brush",
47-
// shulker boxes
48-
"minecraft:shulker_box", "minecraft:white_shulker_box",
49-
"minecraft:orange_shulker_box", "minecraft:magenta_shulker_box",
50-
"minecraft:light_blue_shulker_box", "minecraft:yellow_shulker_box",
51-
"minecraft:lime_shulker_box", "minecraft:pink_shulker_box",
52-
"minecraft:gray_shulker_box", "minecraft:light_gray_shulker_box",
53-
"minecraft:cyan_shulker_box", "minecraft:purple_shulker_box",
54-
"minecraft:blue_shulker_box", "minecraft:brown_shulker_box",
55-
"minecraft:green_shulker_box", "minecraft:red_shulker_box",
56-
"minecraft:black_shulker_box"
57-
};
58-
59-
private final ItemListSetting items = new ItemListSetting("Items",
60-
"Items that can't be dropped while AntiDrop is enabled.", DEFAULT_ITEMS);
20+
private static final String[] DEFAULT_ITEMS = {
21+
// swords
22+
"minecraft:wooden_sword", "minecraft:stone_sword",
23+
"minecraft:iron_sword", "minecraft:golden_sword",
24+
"minecraft:diamond_sword", "minecraft:netherite_sword",
25+
// axes
26+
"minecraft:wooden_axe", "minecraft:stone_axe", "minecraft:iron_axe",
27+
"minecraft:golden_axe", "minecraft:diamond_axe",
28+
"minecraft:netherite_axe",
29+
// pickaxes
30+
"minecraft:wooden_pickaxe", "minecraft:stone_pickaxe",
31+
"minecraft:iron_pickaxe", "minecraft:golden_pickaxe",
32+
"minecraft:diamond_pickaxe", "minecraft:netherite_pickaxe",
33+
// shovels
34+
"minecraft:wooden_shovel", "minecraft:stone_shovel",
35+
"minecraft:iron_shovel", "minecraft:golden_shovel",
36+
"minecraft:diamond_shovel", "minecraft:netherite_shovel",
37+
// hoes
38+
"minecraft:wooden_hoe", "minecraft:stone_hoe", "minecraft:iron_hoe",
39+
"minecraft:golden_hoe", "minecraft:diamond_hoe",
40+
"minecraft:netherite_hoe",
41+
// other weapons & tools
42+
"minecraft:bow", "minecraft:crossbow", "minecraft:trident",
43+
"minecraft:mace", "minecraft:shield", "minecraft:flint_and_steel",
44+
"minecraft:shears", "minecraft:fishing_rod",
45+
"minecraft:carrot_on_a_stick", "minecraft:warped_fungus_on_a_stick",
46+
"minecraft:brush",
47+
// shulker boxes
48+
"minecraft:shulker_box", "minecraft:white_shulker_box",
49+
"minecraft:orange_shulker_box", "minecraft:magenta_shulker_box",
50+
"minecraft:light_blue_shulker_box", "minecraft:yellow_shulker_box",
51+
"minecraft:lime_shulker_box", "minecraft:pink_shulker_box",
52+
"minecraft:gray_shulker_box", "minecraft:light_gray_shulker_box",
53+
"minecraft:cyan_shulker_box", "minecraft:purple_shulker_box",
54+
"minecraft:blue_shulker_box", "minecraft:brown_shulker_box",
55+
"minecraft:green_shulker_box", "minecraft:red_shulker_box",
56+
"minecraft:black_shulker_box"};
57+
58+
private final ItemListSetting items = new ItemListSetting("Items",
59+
"Items that can't be dropped while AntiDrop is enabled.",
60+
DEFAULT_ITEMS);
6161

6262
public AntiDropHack()
6363
{

src/main/java/net/wurstclient/hacks/ScaffoldWalkHack.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import net.minecraft.block.Block;
1313
import net.minecraft.block.BlockState;
1414
import net.minecraft.block.FallingBlock;
15+
import net.minecraft.block.ShulkerBoxBlock;
1516
import net.minecraft.item.BlockItem;
1617
import net.minecraft.item.ItemStack;
1718
import net.minecraft.util.Hand;
@@ -73,6 +74,9 @@ public void onUpdate()
7374
if(!state.isFullCube(EmptyBlockView.INSTANCE, BlockPos.ORIGIN))
7475
continue;
7576

77+
if(block instanceof ShulkerBoxBlock)
78+
continue;
79+
7680
// filter out blocks that would fall
7781
if(block instanceof FallingBlock && FallingBlock
7882
.canFallThrough(BlockUtils.getState(belowPlayer.down())))

src/main/resources/assets/wurst/translations/en_us.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"description.wurst.hack.antiafk": "Walks around randomly to hide you from AFK detectors.",
1818
"description.wurst.hack.antiblind": "Prevents blindness and darkness effects.\nIncompatible with OptiFine.",
1919
"description.wurst.hack.anticactus": "Protects you from cactus damage.",
20-
"description.wurst.hack.antidrop": "Prevents you from dropping the selected items by accident. Defaults to all weapons, tools, and shulker boxes.",
20+
"description.wurst.hack.antidrop": "Prevents you from dropping the selected items by accident. Defaults to all weapons, tools, and shulker boxes.",
2121
"description.wurst.hack.antientitypush": "Prevents you from getting pushed by players and mobs.",
2222
"description.wurst.hack.antihunger": "Slows down your hunger when you are walking.\n\n??c??lWARNING:??r There have been reports of this hack causing you to take extra fall damage under specific, unknown conditions.",
2323
"description.wurst.hack.antiknockback": "Prevents you from taking knockback from players and mobs.",

0 commit comments

Comments
 (0)