Topic category: Help with Minecraft modding (Java Edition)
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 !
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.
ok, thanks so far.
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 ?"
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 !
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 ?
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.
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.
I will take a look, thanks for the hint.