Duel Wield Sword

Started by GrapeTundraYT on

Topic category: Help with MCreator software

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Duel Wield Sword

I'm making a Star wars mod and I would like to be able to Make it so a weapon can bu used in both hands or just a specific type of weapon can be used in off hand

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You have to make a main-hand…
Tue, 08/18/2020 - 06:21

You have to make a main-hand version and a off-hand version of it. For the ofhand, make a procedure where right clicked on entity, deal [insert damage] to entity.

Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yeah but there won't be a…
Tue, 08/18/2020 - 09:24

yeah but there won't be a swing animation and it won't work with mobs that already have right-click functionality like villagers...

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I know, but that is the only…
Wed, 08/19/2020 - 07:00

I know, but that is the only thing I can think of. Plus, it isn't very likely (and quite cruel) for players to kill villagers. And I think there is a procedure block that moves an entity's arms?

Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it isn't very likely (and…
Wed, 08/19/2020 - 09:04

it isn't very likely (and quite cruel) for players to kill villagers

yeah, who would do such a thing cough cough 

there is a move arm procedure block though, I completely forgot about that XD

but stikk the sword won't have hitting particles, sweeping edge, enchantments, etc.

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Bad boi, why hit villagers?…
Wed, 08/19/2020 - 09:46

Bad boi, why hit villagers?

There isn't custom enchants yet anyways, and I think you can spawn particles? Just say sweeping edge doesn't work. Nobody will question it. It is just part of the mod's design! (Totally not because I can't think of a solution.*cough cough)

Or you can check the player's velocity, and if it is 0 then check for entities on either side of the mob you hit, and remove some more damage. Use chance templates as well. (that is the requirements for a sweeping attack, right?)

Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use the procedure "swing off…
Wed, 08/19/2020 - 09:46

Use the procedure "swing off-hand" for the swing and, in case of hitting a mob with inventory, use the procedure "close GUI currently open". I think that should work.

Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
villagers have trades worse…
Wed, 08/19/2020 - 13:24

villagers have trades worse than Muffet from undertale

I mean it won't work with vanilla ones. btw custom enchantments are already added in 2020.4

 

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh... maybe somehow summon…
Tue, 08/25/2020 - 08:13

Oh... maybe somehow summon an invisible mob that have what you have in the offhand that attacks for you and then suddenly despawns?

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
On player right click on mob…
Wed, 08/04/2021 - 11:56

On player right click on mob:
check if player holds weapon offhand;

swing off-hand item, deal damage to mob
 

your ideas are way too overthought

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
still figuring out a way to…
Wed, 08/04/2021 - 11:56

still figuring out a way to handle the cooldown tho

 

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I was making a Mod That…
Wed, 10/25/2023 - 04:36

I was making a Mod That Requires Offhand-Attacks but I can't use Source Entities for When a Player Right-Clicks with the Weapon so that won't work...