Downloads:
263
Upvotes: 5
Category
Modification type
Supported Minecraft versions
1.18.2
A simple mod that adds tool gun from Garry's mod.
Use RMB to shoot, shift + RMB to switch modes.
Modes list:
1. Execute command at pointed block, use command /tg or keybind (0) to open window where you can write the command
2. Kill nearest mob from pointed block (If anyone knows how to kill the mob that you point at and not block, plz tell me)
3. Remove the block
4. Replace block with the one in your off-hand
5. Teleport to pointed direction
6. Bonemeal pointed block
And thats it I guess ¯\_(ツ)_/¯
I'll update when I have some free time.
Modification files
Tool Gun Mod_1.jar
Uploaded on: 08/23/2022 - 22:21 File size: 547.66 KB
Changelog
1.1.1 hotfix
Fixed disable cooldown setting :/
1.1
Fixed (I think) the teleportation feature
Added settings menu with... one setting :P
You can use a similar trick to portal. just use ray-trace(0,0,) and get all entities in a <accuracy>(0-100)/100 cube then if entity not under tag <namespace>:Toolgun_blacklist then de-spawn the entity iterator and set variable 'Raycast again' to false(place a check for this in the beginning leads to break out of loop). also just in-case, make this check loop have a limit and set it to maxDistance*RaycastOffset