r/MinecraftCommands • u/TwanGames_YT • Dec 18 '20
Tutorial | Java This cool gravity gun I made (Tutorial in comments)
1.6k
Upvotes
r/MinecraftCommands • u/TwanGames_YT • Dec 18 '20
62
u/FiredKobe Dec 18 '20 edited Dec 18 '20
I know how to do this on bedrock one command:
/execute @p ^ ^ 7 tp @e[r=4] ~ ~ ~
Edit: for when you hold out an item to activate it, place down a repeating command block on always active, unconditional, repeating, type in: /enchant (right here you can type in you gt or do @a, @p, etc or even use tags/scoreboards if you know how to) riptide 1
Place a comparator coming out of that going into another command block; repeating, unconditional, needs redstone and type in:
/execute (right here you can type in you gt or do @a, @p, etc or even use tags/scoreboards if you know how to) ^ ^ 7 tp @e[r=4] ~ ~ ~
Now when you hold out an trident it will to players/mobs right in front of you just like the video, change the 7 in the execute command block to a different number to change the distance between you can the targeted entity
14
u/TwanGames_YT Dec 18 '20
This is the tutorial
3
u/MidnightJ1200 Dec 18 '20
How good is it with endermen?
7
u/KittyTheCatto Dec 18 '20
The Cow Compactor
6
u/The_Creeper_Man Dec 18 '20
Rise and shine, mr freeman
3
u/Professional_Ad_4267 Dec 18 '20
perfection
3
u/[deleted] Dec 19 '20
Gmod in minecraft
2
u/MoleculeWolf Dec 18 '20
Create a cow singularity with that
2
u/TsarNikolai2 Dec 19 '20
Amazing
2
u/MaxwellMaximoff Dec 19 '20
You should also make it so that arrows you shoot nearby entities causes gravity to turn off for those entities aka levitation effect.
/execute @e[type=arrow] ~ ~ ~ effect @e[type=!player,r=5] levitation 5 2 true
There might be issues with this ^ command like idk if arrows would be affected by levitation so you could do @e[type=!arrow,tag=!player] and add a ‘player’ tag to yourself so you don’t get the levitation effect.
2
u/ScaryWitherstoryGuy Dec 21 '20
cool!
1
u/KrepyTY Dec 19 '20
A
1
u/KrepyTY Dec 19 '20
Reee
1
u/NEKOX5meow Dec 19 '20
The cow cloud
1
u/KingLerer11 Dec 19 '20
Nice trick i need try it :)
1
u/MortisGhostTTV Dec 19 '20
i actually used something similar to create a jedi vs sith 1v1 map where it’s the same as this except it only holds one entity and gives them wither effect so it acts as a force choke. i also used a stick as a lightsaber idk why i feel like swords would be too op given the fact there’s no armour. it’s a fun map though
0
u/[deleted] Dec 18 '20
[deleted] — view deleted comment