The Meaning of Life, the Universe, and Everything.
Location:
Western Australia
Join Date:
4/17/2015
Posts:
89
Location:
Perth, Western Australia
Minecraft:
Ziggzu
Xbox:
romanshard
PSN:
N/A
Member Details
I've created a loot_table for fishing but I have no idea where to put it in the .minecraft directory, (although preferrably it would be in a particular save)
Please read the Location section of the thread. Loot tables are not a part of resource packs. Resource packs are client-side while loot tables are server-side; affecting world generation is not something the client can or should ever do. Otherwise any player could create their own overpowered loot tables and get whatever loot they wanted on a server. Loot tables go within the "data" folder in the world folder.
Added information about namespaces for condition & function IDs.
The IDs for conditions will have the resource namespace default to "minecraft" (e.g. "minecraft:random_chance") when not specified. If using mods, the namespace will be whatever the mod has implemented. Note that you cannot create your own conditions without modding.
All the examples now include a namespace for emphasis.
Is there a way to randomize how many items in a stack number? i.e. you have a chance of opening a chest and finding a stack of anywhere between 1-5 diamonds
Is there a way to randomize how many items in a stack number? i.e. you have a chance of opening a chest and finding a stack of anywhere between 1-5 diamonds
The "count" value can also use the min/max structure:
I would like to create a custom loot table which do appear spawn eggs renamed. After a lot of hours, my loot table doesn't work. Chests are empty. When I delete the part of the command on "set_attributes", eggs spawn.
Sorry but my bad english...
Thank you in advance,
mathaym25
There is the command :
-snip-
There's just a missing closing square and curly bracket at the very end. However, the "set_attributes" function requires an "attribute" string, "operation" string, a "range" number (either exact or min/max like "count"), and a "slot" string (or array of strings). Without those, the loot table will fail to work. Example:
This is probably the easiest way, yes. There's another method using a sign's clickEvent alongside unicode, but that's a bit complicated.
Fixed, one of the new things learned from 15w43b is that both "weight" and "rolls" are required. The JSON for set_nbt, as well as the other examples, were missing "rolls".
Currently updating beyond that now.
I can't get items to have coloured names!?!? Instead the unicode § symbol appears as a question mark in game. Here is the code, if there is something I've done wrong, please help! (The part to look at is down the very bottom )
I can't get items to have coloured names!?!? Instead the unicode § symbol appears as a question mark in game. Here is the code, if there is something I've done wrong, please help! (The part to look at is down the very bottom )
Looks like loot tables are only accepting basic ASCII characters instead of the full unicode spectrum. Modifying the NBT data via an editor does allow it to work, so it's definitely an issue with loot tables themselves. I'll double-check and create a bug report if necessary.
What editor are you using? It will need to be UTF-8 compliant. While at first I could confirm there were issues, it turned out that the editor I used (Notepad++) defaulted to not encoding in UTF-8 even though it was set to UTF-8 previously. In fact, it showed that it wasn't encoding in any character set, which is odd because I had used it previously to successfully ensure the section symbol could be used. If you're using it as well, you can set it to encode in UTF-8 via Encoding -> Encode in UTF-8.
Looks like loot tables are only accepting basic ASCII characters instead of the full unicode spectrum. Modifying the NBT data via an editor does allow it to work, so it's definitely an issue with loot tables themselves. I'll double-check and create a bug report if necessary.
What editor are you using? It will need to be UTF-8 compliant. While at first I could confirm there were issues, it turned out that the editor I used (Notepad++) defaulted to not encoding in UTF-8 even though it was set to UTF-8 previously. In fact, it showed that it wasn't encoding in any character set, which is odd because I had used it previously to successfully ensure the section symbol could be used. If you're using it as well, you can set it to encode in UTF-8 via Encoding -> Encode in UTF-8.
So you have actually gotten it to work in snapshot 16w02a!?! To create the code I was using an online generator https://jsfiddle.net/MrPingouin/125mx5r5/embedded/result/
Its weird though because it lets me type the symbol in the set nbt data box that it gives.
And when I get the item via loot table in game instead of § I get a different ? symbol that is black in a white box.
I also tried adding in a loot table from a paste bin and it produced the same result of no colour
Paste bin code link http://pastebin.com/NKkDg83r
Also thanks for your help so far!
So you have actually gotten it to work in snapshot 16w02a!?! To create the code I was using an online generator https://jsfiddle.net/MrPingouin/125mx5r5/embedded/result/
Its weird though because it lets me type the symbol in the set nbt data box that it gives.
And when I get the item via loot table in game instead of § I get a different ? symbol that is black in a white box.
I also tried adding in a loot table from a paste bin and it produced the same result of no colour
Paste bin code link http://pastebin.com/NKkDg83r
Also thanks for your help so far!
By editor I mean text editor, not loot table editor. The text editor that you paste the JSON into and save needs to be UTF-8 compliant.
I've created a loot_table for fishing but I have no idea where to put it in the .minecraft directory, (although preferrably it would be in a particular save)
If you want me to reply, please quote me!
how do you acses the loot tabils in command blocks?
go to my youtube where I do advanced command tutorials and show off my maps and one commands
go to my website where all my one commands and maps can be found
and check out my demonic magic vanilla mod
I dont now whats rong it is in the right plas but it dose not working but it is not
go to my youtube where I do advanced command tutorials and show off my maps and one commands
go to my website where all my one commands and maps can be found
and check out my demonic magic vanilla mod
Simple fix! Just check your spelling within your loot table. Here is a corrected version:
Simple fix! Just change "minecraft:nethebrick" to "minecraft:netherbrick" and change "minecraft:dargon_breath" to "minecraft:dragon_breath"
I did the changis but it still not working but thankyou enyway
here is more info on my poblim
loot table:
command:
/setblock ~1 ~1 ~1 minecraft:chest 2 replace {LootTable:"infdugon_chest"}
go to my youtube where I do advanced command tutorials and show off my maps and one commands
go to my website where all my one commands and maps can be found
and check out my demonic magic vanilla mod
Please read the Location section of the thread. Loot tables are not a part of resource packs. Resource packs are client-side while loot tables are server-side; affecting world generation is not something the client can or should ever do. Otherwise any player could create their own overpowered loot tables and get whatever loot they wanted on a server. Loot tables go within the "data" folder in the world folder.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
thank you I will use this in my map (:
go to my youtube where I do advanced command tutorials and show off my maps and one commands
go to my website where all my one commands and maps can be found
and check out my demonic magic vanilla mod
Added information about namespaces for condition & function IDs.
All the examples now include a namespace for emphasis.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
Is there a way to randomize how many items in a stack number? i.e. you have a chance of opening a chest and finding a stack of anywhere between 1-5 diamonds
The "count" value can also use the min/max structure:
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
There's just a missing closing square and curly bracket at the very end. However, the "set_attributes" function requires an "attribute" string, "operation" string, a "range" number (either exact or min/max like "count"), and a "slot" string (or array of strings). Without those, the loot table will fail to work. Example:
Fixed structure using the example:
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
As of 15w50a, hopper blocks now support the "LootTable" and "LootTableSeed" tags. Hopper minecarts already did prior.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
I can't get items to have coloured names!?!? Instead the unicode § symbol appears as a question mark in game. Here is the code, if there is something I've done wrong, please help! (The part to look at is down the very bottom )
Looks like loot tables are only accepting basic ASCII characters instead of the full unicode spectrum. Modifying the NBT data via an editor does allow it to work, so it's definitely an issue with loot tables themselves. I'll double-check and create a bug report if necessary.What editor are you using? It will need to be UTF-8 compliant. While at first I could confirm there were issues, it turned out that the editor I used (Notepad++) defaulted to not encoding in UTF-8 even though it was set to UTF-8 previously. In fact, it showed that it wasn't encoding in any character set, which is odd because I had used it previously to successfully ensure the section symbol could be used. If you're using it as well, you can set it to encode in UTF-8 via Encoding -> Encode in UTF-8.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
Right, this is great and all, but...
How do I make all the mobs drop more of what they already drop?
I wanna know that.
If this explains that, then I must be daft or something, 'cause I'm not pickin' that **** up.
Like, for example, Creepers drop 1-3 Gun powder. How do I make it so they drop anywhere from 3 - 10 instead?
Like that, but with all mobs.
I want that.
Set the Count, to 10.
So you have actually gotten it to work in snapshot 16w02a!?! To create the code I was using an online generator https://jsfiddle.net/MrPingouin/125mx5r5/embedded/result/
Its weird though because it lets me type the symbol in the set nbt data box that it gives.
And when I get the item via loot table in game instead of § I get a different ? symbol that is black in a white box.
I also tried adding in a loot table from a paste bin and it produced the same result of no colour
Paste bin code link http://pastebin.com/NKkDg83r
Also thanks for your help so far!
It worked, though.
By editor I mean text editor, not loot table editor. The text editor that you paste the JSON into and save needs to be UTF-8 compliant.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/