scarpet
scarpet copied to clipboard
Autolighter.sc no longer works as of 1.21
Describe the bug
I've used the Autolighter script for many years. Suddenly in the 1.21 update it doesn't seem to work. What happens when I right click with a torch is the entire stack of torches disappears from my inventory immediately instead of changing to the enchanted torch and starting to send the falling block entities flying towards their destinations like normal. I'm not sure if I'm doing something wrong here, or if it's just broken.
To Reproduce
Steps to reproduce the behavior:
- Ensure you have Fabric Loader installed for 1.21
- Open Mods folder for Minecraft
- Remove everything except FabricAPI and Carpet
- Launch Minecraft through Fabric Loader 1.21
- Make a new creative world
- Add a torch to selected slot of player hotbar
- Use the command /script download survival/auto_lighter.sc
- Look at air and right click while the torch is in your main hand
Expected behavior
When you right click the torch while looking at air (not a block) the torches should start flying outwards from you to their destinations. The torch in your hand gets toggled on and off when you right click, if toggled on, it has an enchantment on it.
Environment
- Carpet version: [fabric-carpet-1.21-1.4.147+v240613.jar] (https://github.com/gnembon/fabric-carpet/releases/download/1.4.147/fabric-carpet-1.21-1.4.147+v240613.jar)
- Minecraft version: Fabric 1.21 (Fabric Loader Version: 0.15.11) (Fabric API Version: [1.21] Fabric API 0.100.4+1.21 (https://www.curseforge.com/minecraft/mc-mods/fabric-api/files/5473788)) or (https://modrinth.com/mod/fabric-api/version/0.100.4+1.21)
Additional context To ensure scripts work still, I did "/script download survival/sneak_grow_overpowered.sc" then planted some seeds into tilled soil, and crouched. They started to grow immediately, verifying that the script works. Even though you do get an error when you use it. For reference, the error you get from the sneak_grow_overpowered script is "App 'sneak_grow_overpowered' uses 'material (...)' which is deprecated for removal. Check the docs for a replacement" It's done that for a long time though and works regardless. The issue here is AutoLigher.sc doesn't do what it normally does anymore for some reason. Any help would be appreciated. Thank you! <3