Started by
Asriel Dreemurr
on
Topic category: Help with Minecraft modding (Java Edition)
I am making a hammer weapon for a mod, and want it to have a really high knockback. I can't figure out how to do that. I need a level of knockback that is not possible with the /enchant command.
https://www.youtube.com/watch?v=9jRueHixYBY
use the command here and if you want to make a custom item like that hammer, in the "triggers" select "when item is crafted/smelted" make it run the command on the item, giving it the enchantment, that's the easiest way of going about it
I specially said that I need a level of knockback that is not possible with the /enchant command.
(Specifically.)
go to https://mcstacker.net/ , its a command generator. generate a give command of an item and just replace it with the hammer id
no the command in the video I sent will allow you to use knockback far stronger then the normal amount
Oh, thanks.
I don't want to give the player 2 hammers.
you could try messing with /attribute @s minecraft:generic.attack_knockback base set #
@pottassination how do i exactly do that? im making a mod with custom weapons and i want to make a sword with knockback bonus without enchants (i dont want the sword to display a glint or an enchant)
You can put this procedure to Hammer's trigger section.
kinda neat how there's just ol' asriel vibin' 'round on this website.
@XenraO, that works miles better
Pictures deleted. If I remember correctly, the code below is accurate to the picture(s) and can be done with the block editor: