-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autolighter.sc no longer works as of 1.21 #395
Comments
Hi, I have the same problem. so i just make some fix by delete: if (ench==null, item:2 = nbt('{}'));
put(item:2:'Enchantments','[]');
put(item:2:'Enchantments', '{lvl:1s,id:"minecraft:protection"}', 0);
global_survival=!(player~'gamemode_id' % 2); which look like that give the Enchantments to the torch. then it work well |
+1 |
I have studied the component system in version 1.21 and made the following changes. Note that this only applies to version 1.21
|
Ok, so how do I make that change and use it? I think I figured it out, sort of. My method was to replace the original code with your modification, then I saved the file as "autolighterfix.sc and put it into my scripts folder inside my world folder inside my saves folder. Then I did /script load autolighterfix.sc and tried it. That seems to have worked for me. |
you should just change the |
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:
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
(https://github.com/gnembon/fabric-carpet/releases/download/1.4.147/fabric-carpet-1.21-1.4.147+v240613.jar)
(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
The text was updated successfully, but these errors were encountered: