misode.github.io icon indicating copy to clipboard operation
misode.github.io copied to clipboard

/summon to Loot Table Converter.

Open instantout opened this issue 1 year ago • 2 comments

So a /Summon to Loot Table converter would be nice, since the NBT is diffrent. There is a Diffrence when using NBT Explorer and /data get and writes in console.

Note: I have tried all the methods to get "NoGravity" and "CustomName"(hoverable) kept failing.

Note: I do know the /give exists. but I have old files that use the /summon, because it holds more data.

Yes. I did write on the misode.github.io loottable comment area.

To Clearify:

NBT explorer gives .json, but you can't Drag, highlight, and copy. What you want to get from lets say Item and all the components.

In Game /data get -> to console gives the Id, but can't be used inside the /give.

Thank you For Reading, and Hopefully Thank you for the Time to Implement it.

instantout avatar Jan 30 '25 19:01 instantout

Hey @instantout, can you give me a full example of a /summon command that you would like to convert, so I can get an idea?

misode avatar Jan 30 '25 19:01 misode

Hey @instantout, can you give me a full example of a /summon command that you would like to convert, so I can get an idea?

I'll give you my most advanced one. (one of). summon item ~0 ~2 ~0 {NoGravity:1b,CustomNameVisible:1b,Age:5500,Thrower:[I;-1241467109,-1708045773,-1299141599,2032256026],Owner:[I;-1241467109,-1708045773,-1299141599,2032256026],Invulnerable:1b,CustomName:'["§8N§7o§8b§7l§8e§r",{"color":"gray","italic":false,"text":": "},{"color":"dark_gray","fallback":"Helmet","italic":false,"translate":"item.zelparion.noble.helmet"}]',Item:{id:"minecraft:diamond_helmet",count:1,components:{"minecraft:custom_name":'["§8N§7o§8b§7l§8e§r",{"color":"gray","italic":false,"text":": "},{"color":"dark_gray","fallback":"Helmet","italic":false,"translate":"item.zelparion.noble.helmet"}]',"minecraft:item_name":'["§8N§7o§8b§7l§8e§r",{"color":"gray","italic":false,"text":": "},{"color":"dark_gray","fallback":"Helmet","italic":false,"translate":"item.zelparion.noble.helmet"}]',"minecraft:lore":['"§8§m                        §r"','[{"color":"gray","italic":false,"text":"A"}," ","§8N§7o§8b§7l§8e§r"," ",{"color":"gray","italic":false,"text":"Armor"}," ",{"color":"gray","italic":false,"text":"Piece"},{"color":"gray","italic":false,"text":";"}]','[{"color":"gray","italic":false,"text":"Forged"}," ",{"color":"gray","italic":false,"text":"and"}," ",{"color":"gray","italic":true,"text":"Gifted"},","]','[{"color":"gray","italic":false,"text":"By"}," ",{"color":"gray","italic":false,"text":"a"}," ","§aH§be§ar§bo§r",{"color":"gray","italic":false,"text":"."}]','"§8§m                        §r"'],"minecraft:unbreakable":{},"minecraft:rarity":"rare","minecraft:damage":0,"minecraft:custom_model_data":{strings:["9091"]},"minecraft:custom_data":{forgotten_nine:noble,noble:helmet},"minecraft:enchantments":{levels:{"minecraft:blast_protection":2,"minecraft:fire_protection":2,"minecraft:projectile_protection":2,"minecraft:protection":2,"minecraft:thorns":2,"minecraft:aqua_affinity":2,"minecraft:respiration":2,"minecraft:vanishing_curse":1}},"minecraft:attribute_modifiers":[{id:"armor",type:"armor",amount:3,operation:"add_value",slot:"head"},{id:"armor_toughness",type:"armor_toughness",amount:3,operation:"add_value",slot:"head"},{id:"knockback_resistance",type:"knockback_resistance",amount:1,operation:"add_value",slot:"head"},{id:"sneaking_speed",type:"sneaking_speed",amount:0.10,operation:"add_multiplied_total",slot:"head"}]}}} Should be for 1.21.4 (updated).

instantout avatar Jan 31 '25 00:01 instantout