The Attributes coding Elephant

Started by KingBugz on

Topic category: Advanced modding

Last seen on 05:06, 6. Jul 2023
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The Attributes coding Elephant

Okay so for anybody who has wanted to implement increasing an item or entities attack damage, speed, or max health, we know how frustrating it is to search over and over again through Google, mcreator.net, and even forge forums for an up to date code that we can use to achieve our dreams. It is clear that mcreator will not be getting attribute procedures in the near future, maybe the distant but not near. And the ONLY response to anyone asking for such help in the forums is far to out dated.

 

I am here simply to cry out for all of us desperate for this code. If ANYONE can provide us with the coding we need to add to our mod elements to have attributes increased or decreased or even added, PLEASE help us out.

 

Personally all I want is a sword that gains attack damage in accordance to a global variable. I have everything set up other than increasing the attack damage of the sword.

 

Please no work around.

 

Thank you for your time.

Last seen on 14:43, 2. Aug 2022
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Couldn't you just do an…
Wed, 08/26/2020 - 20:36

Couldn't you just do an entity damaged global trigger check if the attacker had the sword and if the sword was in the attackers hand then deal (damage x variable rate) to the source entity.

Last seen on 05:06, 6. Jul 2023
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This can be done, but how…
Fri, 08/28/2020 - 18:32

This can be done, but how would I show what level the item is, or how much damage you are doing?

I would just make an enchantment for this, but you cannot remove enchantments or add to their level via procedures.

So this causes the enchantments to stack, eventually expanding the tool tip so much that it goes off screen and looks ugly.

Last seen on 14:43, 2. Aug 2022
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm going to do some testing…
Fri, 08/28/2020 - 18:35

I'm going to do some testing for you.

Last seen on 14:43, 2. Aug 2022
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Create the sword (you've…
Fri, 08/28/2020 - 19:36

Create the sword (you've already done this), then add a procedure on crafted/smelted.

A

Make another procedure on hit living entity with tool.

 

ads

As of the future you probably should use nbt variables not global variables.

If this gets used in your mod please credit me.

Last seen on 18:54, 23. Aug 2023
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
https://mcreator.net/plugin…
Fri, 08/28/2020 - 20:01

https://mcreator.net/plugin/65847/dtms-toolkit Here's this! This is for SharedMonsterAttributes between entities, not for items themselves (as there is already a plugin for that, but it's a little buggy). But this can be utilized to increase damage of an entity depending on specific circumstances, then set the damage back to default when finished.