Duel Wield Sword

Started by GrapeTundraYT on

Topic category: Help with MCreator software

Active 3 years ago
Joined Jul 2020
Points:
641

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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

Active 9 months ago
Joined Jun 2019
Points:
2793

User statistics:

  • Modifications: 4
  • Forum topics: 48
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3704
this is not possible by…
Fri, 07/24/2020 - 00:38

this is not possible by minecraft design.

Active 4 years ago
Joined Jun 2020
Points:
657

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 34
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.

Active 9 months ago
Joined Jun 2019
Points:
2793

User statistics:

  • Modifications: 4
  • Forum topics: 48
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3704
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...

Active 4 years ago
Joined Jun 2020
Points:
657

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 34
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?

Active 9 months ago
Joined Jun 2019
Points:
2793

User statistics:

  • Modifications: 4
  • Forum topics: 48
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3704
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.

Active 4 years ago
Joined Jun 2020
Points:
657

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 34
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?)

Active 2 months ago
Joined Sep 2016
Points:
947

User statistics:

  • Modifications: 3
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 334
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.

Active 9 months ago
Joined Jun 2019
Points:
2793

User statistics:

  • Modifications: 4
  • Forum topics: 48
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3704
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

 

Active 4 years ago
Joined Jun 2020
Points:
657

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 34
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?

Active 3 years ago
Joined Apr 2020
Points:
665

User statistics:

  • Modifications: 2
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 26
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

Active 3 years ago
Joined Apr 2020
Points:
665

User statistics:

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

still figuring out a way to handle the cooldown tho

 

Active 2 months ago
Joined Oct 2021
Points:
531

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 15
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...