most efficient way for twealing vanilla item stats ?

Started by Silverlion on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
most efficient way for twealing vanilla item stats ?

Hello,

as I read before, MCreator can't "overwrite" vanilla stats itself - ok, understood. But how can item / block attributes modiefied partly ?

block drops -> loot table  -  check !

block harvest level ?

item durability ?

weapon damage ?

How can just some vanilla stats be modified, and not all ? Do I have to re-add all blocks / items I like to modify with a modded version ? 

If yes, where can I find all the vanilla stats ? In the version java file are only models, textures, sounds, but not the item stats themself ?!

If no, what is the most efficient way to modify just single stats ?

Sorry for such basic question, but when I search for "overwrite / edit vanilla stats with MCreator", there's only the answer "it's not possible". Can't belive that, as there are hundreds of mods, that tweak vanilla items and blocks.

 

Thanks for any help !

Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The vanilla stats can be…
Sat, 09/09/2023 - 17:55

The vanilla stats can be found on the Minecraft wiki.

As for modifying the stats, you could apply an attribute modifier to the player when they are holding a specific vanilla item. The plugin Attributes makes this easier, or you could use the 'execute command in the name of entity' procedure block along with the /attribute command.

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok, thanks so far.  As for…
Sat, 09/09/2023 - 18:50

ok, thanks so far. 

As for modifying the stats, you could apply an attribute modifier to the player when they are holding a specific vanilla item.

If I got you right that means, that you only can modify an item when it already exits in the world ? I wanted to edit the "unborn" item, so when an item spawns, it should have the modified stats already. So it's not possible to edit the vanilla stats on database level in some way ? E.g. all iron swords shall do 10 dmg, so there is no way to say : "if an iron sword is spawned, use all vanilla stats BUT take the dmg stat from the modded file ?"

The vanilla stats can be found on the Minecraft wiki.

So there is no "database" with all the item or block .json files somewhere in Minecraft ?? How are all the specific attributes for all the blocks and items stored ? I know from other games, that they have their default database, and when you modify one thing, the games were "smart" enough to mix the default data with a modded file accordingly. So I guess the data model of MC doesn't work that way ? 

Thanks so far !

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I mean this:  https://learn…
Sat, 09/09/2023 - 18:59

I mean this: 

https://learn.microsoft.com/en-us/minecraft/creator/reference/content/itemreference/examples/itemcomponentlist

This is the MS description for Bedrock items, but it's one .json file, that defines an item / block. These files should also exist in Java Minecraft, don't they ?

Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No I don't know about…
Mon, 09/11/2023 - 15:26

No I don't know about modifying the item properties like that. I only know how to do it on items which exist in the world, sorry.

Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If I'm correct you want to…
Wed, 09/13/2023 - 12:42

If I'm correct you want to change the Attributes of an Item like Durability, Tooltip,  Cooldown etc.

 

You can modify the Attributes of an Item that applies by default.

 

For example the Mod Projectile Damage Attribute adds a new Projectile Damage Attribute to Ranged Items by default. This is also Source Code.

You can look into the Code how it was coded/made.

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I will take a look, thanks…
Sat, 09/16/2023 - 18:37

I will take a look, thanks for the  hint.