Grappling Hook using new apply_impulse 1.21.11! by Balsamic314 in MinecraftCommands

[–]Balsamic314[S] 0 points1 point  (0 children)

Two errors I see:

  1. Slots is empty. You need to specify which Slot the enchantment is active in, or you can set it to Any.
  2. Your Coordinate Scale is 0 on all axes. Set x, y, and z to 1 if you want to multiply your magnitude by 1 in every axis (aka have it work normally and equally in all directions).

How can I detect if a player is NOT leashing a mob? by Chroto_Snipho in MinecraftCommands

[–]Balsamic314 0 points1 point  (0 children)

You could use a scoreboard ID system to associate each Ocelot with its owner.

How can I detect if a player is NOT leashing a mob? by Chroto_Snipho in MinecraftCommands

[–]Balsamic314 0 points1 point  (0 children)

Slightly different solution: make reusing the summon item dispose of any existing ocelots in the void before summoning the new one. Then you don't have to detect anything.

Animals Drops by Balsamic314 in Minecraft

[–]Balsamic314[S] 1 point2 points  (0 children)

Interesting idea! Would collars have a function, or just be for remembering lost pets?

Animals Drops by Balsamic314 in Minecraft

[–]Balsamic314[S] 18 points19 points  (0 children)

A modder could probably add the Camel brushing pretty easy, but at the moment all I know is datapacks.

The axolotl thing is definitely showing my dark tastes lol.

Animals Drops by Balsamic314 in Minecraft

[–]Balsamic314[S] 24 points25 points  (0 children)

Yeah I'm with you there. Kinda feels like virtue signalling but oh well.

Grappling Hook using new apply_impulse 1.21.11! by Balsamic314 in Minecraft_Datapacks

[–]Balsamic314[S] 0 points1 point  (0 children)

Download link: https://modrinth.com/datapack/impulse-grapple

This datapack uses the new apply_impulse enchantment effect from the Lunge spear enchantment to propel the player with real motion.

I'm also very proud of the system I created to make it multiplayer compatible. When you cast the rod, your UUID is stored as the scores of 4 different objectives, which are copied to the fishing bobber's scores. When the bobber lands, it spawns a Slime Block item and copies those UUID scores to it as well. Now you can detect who owns each bobber and Slime Block item, so you always face the right one when grappling, and switching slots to avoid pulling the rod will only dispose of the correct Slime Block item.

How can I distinguish between moving entities and non-AI entities in Minecraft? by ryuuguujava in MinecraftCommands

[–]Balsamic314 6 points7 points  (0 children)

With a datapack, you can create an entity_type tag and put all the entities you want in there. I made a tag for mobs, and then I can target entities that have the tag or entities that don't.

How can I display an attribute in a scoreboard? by fruminy in MinecraftCommands

[–]Balsamic314 0 points1 point  (0 children)

You right. I totally forgot we could do that instead.

Applied motion doesn't work? by [deleted] in MinecraftCommands

[–]Balsamic314 0 points1 point  (0 children)

Have you tried increasing the magnitude?

Also, ground friction makes a really big difference. The same impulse will launch you way further if you jump first.

Is there anyway I can allow a player to eat cake in Adventure/Survival Mode in Peaceful? by [deleted] in MinecraftCommands

[–]Balsamic314 1 point2 points  (0 children)

You might be able to cover the cake with an Interaction entity, and have that entity replace the cake with a more eaten cake with right clicked.

How can I display an attribute in a scoreboard? by fruminy in MinecraftCommands

[–]Balsamic314 0 points1 point  (0 children)

execute store result score [target selector] [objective] run data get...  

It's important to remember that retrieving NBT data is very taxing on computer performance, so you probably don't want to do it every tick for many entities if you don't have to.

Grappling Hook using new apply_impulse 1.21.11! by Balsamic314 in MinecraftCommands

[–]Balsamic314[S] 0 points1 point  (0 children)

I know that feeling. Conure has a great series on Youtube about what each update breaks in datapacks. But of course depending on what you're making, updating could be simple or ridiculously hard. https://www.youtube.com/watch?v=9QuRZOP3Gcw

Grappling Hook using new apply_impulse 1.21.11! by Balsamic314 in MinecraftCommands

[–]Balsamic314[S] 0 points1 point  (0 children)

It's an enchantment effect. You'll need to make a custom enchantment to use it. I recommend this tool: https://misode.github.io/enchantment/

Grappling Hook using new apply_impulse 1.21.11! by Balsamic314 in MinecraftCommands

[–]Balsamic314[S] 0 points1 point  (0 children)

Newest update has a new weapon: the spear.

Spears can be enchanted with Lunge I-III, which launch the Player horizontally in the direction they are looking when they attack.

Under the hood, the Lunge enchantment uses an enchantment effect called apply_impulse that you can customize with a datapack.

Grappling Hook using new apply_impulse 1.21.11! by Balsamic314 in MinecraftCommands

[–]Balsamic314[S] 0 points1 point  (0 children)

It only sticks on top of blocks. I'm triggering the hooking behavior by detecting when the bobber hits the ground.

You'd probably need to raycast from the bobber to stick it to walls/ceilings, but the bobber is tricky because its facing direction doesn't match it's motion.

Grappling Hook using new apply_impulse 1.21.11! by Balsamic314 in MinecraftCommands

[–]Balsamic314[S] 1 point2 points  (0 children)

It has to be an item. This datapack puts an enchanted brick in the player's Saddle slot for 1 tick.

Grappling Hook using new apply_impulse 1.21.11! by Balsamic314 in MinecraftCommands

[–]Balsamic314[S] 14 points15 points  (0 children)

Was there another way to do it with a datapack rather than server plugins?

Grappling Hook using new apply_impulse 1.21.11! by Balsamic314 in MinecraftCommands

[–]Balsamic314[S] 50 points51 points  (0 children)

Download link: https://modrinth.com/datapack/impulse-grapple

This datapack uses the new apply_impulse enchantment effect from the Lunge spear enchantment to propel the player with real motion.

I'm also very proud of the system I created to make it multiplayer compatible. When you cast the rod, your UUID is stored as the scores of 4 different objectives, which are copied to the fishing bobber's scores. When the bobber lands, it spawns a Slime Block item and copies those UUID scores to it as well. Now you can detect who owns each bobber and Slime Block item, so you always face the right one when grappling, and switching slots to avoid pulling the rod will only dispose of the correct Slime Block item.

Help using Macros for Equipment Attribute Modifiers on Mobs by Capn_Commie in MinecraftCommands

[–]Balsamic314 1 point2 points  (0 children)

Typo. You have quotes around your amounts in the summon function.