thank you I was apparently being stupid and using "function":"minecraft:set_nbt" instead of "function":"set_nbt" as fore the changes in the actual tag, I was able to figure those out with /entitydata @e[r=10,type=Item] {t:1} and throwing a potion on the ground in front of me.
Same problem as Russ_c! Wanting to check the scoreboard of those opening the chests. As inelegant as it might be, I'm considering swapping my chest to a passive entity so that it can check the killer_player's entity_scores. Outside of that, perhaps having different loot tables spawn in depending on scoreboards could work, but requires a lot more leg work. :<
Same problem as Russ_c! Wanting to check the scoreboard of those opening the chests. As inelegant as it might be, I'm considering swapping my chest to a passive entity so that it can check the killer_player's entity_scores. Outside of that, perhaps having different loot tables spawn in depending on scoreboards could work, but requires a lot more leg work. :<
Can you post your loot table here? Make sure to check the logger for errors as well (you may paste them here too).
EDIT: Sorry, misread. It is an unfortunate situation; I'll see if I can find a work-around, although it's unlikely to be anything but grotesque.
I was just re-reading this, but I have to say that in my experience (in 16w04a, mind,) an item has always been dropped from a roll despite there being conditions for 99% of the items.
I was just re-reading this, but I have to say that in my experience (in 16w04a, mind,) an item has always been dropped from a roll despite there being conditions for 99% of the items.
Thanks, this was indeed changed; looks like if an item could not meet the conditions, the table re-rolls. I'll update the thread to adhere to this.
EDIT: Fixed.
EDIT2: Added a new section concerning the use of duplicate functions/conditions at the same depth.
I have a question about using loot_tables inside other tables
Can I have a main table point to other tables which point to a final table (not in a loop)
I don't know if that's the reason why my loot tables won't work, but I guess I should ask anyways.
Thanks
Yes, this can be done. You can paste your tables here if you're running into problems. You can also pinpoint which table is the issue by using each one directly until you find one that doesn't one at all.
The only issues I could immediately come across were two of item IDs you're using. There is no ID "gold" or "iron" ID; I assume you had meant to use "gold_ingot" and "iron_ingot"?
The only issues I could immediately come across were two of item IDs you're using. There is no ID "gold" or "iron" ID; I assume you had meant to use "gold_ingot" and "iron_ingot"?
oh my word, I'm such an idiot! Thanks, for proofreading nevertheless. Great Work, you are an amazing resource!
Hi, I've been messing with Loot_tables for the last hour and I can't seem to make any progress. I copied the loot_table file from the jar and placed it in the data folder. Then in that folder I made the folder minecraft and placed in, entities, chests and gameplay. What is shown in the OP.
As a test I tried to give a creeper the loot table of a cow.
This doesn't work and I can't seem to find why not. I also tried "minecraft:cow" and even "minecraft:entities:cow" but the wiki says that "cow" should suffice given it is a default table. I use MCStacker for my mob creation and they don't give much info when you hover over the loot_table input.
You'll need to use the filepath that comes after the namespace ("minecraft" being the namespace, "entities/cow" being the filepath). The namespace and filepath are separated by a colon. If not specified, the namespace defaults to "minecraft":
So if I want to use MCStacker with a custom loot table and namespace I would enter 'custom:test_entity' and if I would also have chests I would do 'custom:chests/test_chest' ?
those of you wondering why i don't have an active RP (so far none). i try. but whenever i get to the rules section of it my computer restarts. computer: i realise what your telling me and i give up.
if loot tables are not in resource packs then why does resource pack workbench have a folder for loot tables?
Resource pack workbench?
If you're talking about the Minecraft jar, that's not a resource pack, that's a collection of all assets. Resource packs are client-side, loot tables and structures are not. It is literally impossible to include a loot table in a resource pack and have it work in the first place, and would make no sense for it to be changed to do so because that would mean any client could connect to a server and change server-side mechanics, which would be extremely bad for security.
The emphasis here is to not confuse people into thinking that a loot table is meant to be packaged with a resource pack.
nbt data changed for potions in 1.9. This worked fine for me:
See Skylinerw hardwork for exact tags you want:
http://www.minecraftforum.net/forums/minecraft-discussion/redstone-discussion-and/command-blocks/2488148-1-9-nbt-changes-and-additions#ItemsPotions
Two questions:
1) Is there a way to make a loot table work without putting it in the world folder (use the son in a command)?
2) Is there a way to make a naturally spawned mob drop nothing (either with loot tables or /entitydata)?
Thanks
No, loot tables are external and must be in the world folder.
That said, you can still use default loot tables as they already exist. That does include the "empty" loot table to cause mobs to drop nothing:
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/
Awesome thanks! This answers my questions. I'll just use gear and gear drop chance instead of loot tables
thank you I was apparently being stupid and using "function":"minecraft:set_nbt" instead of "function":"set_nbt" as fore the changes in the actual tag, I was able to figure those out with /entitydata @e[r=10,type=Item] {t:1} and throwing a potion on the ground in front of me.
Same problem as Russ_c! Wanting to check the scoreboard of those opening the chests. As inelegant as it might be, I'm considering swapping my chest to a passive entity so that it can check the killer_player's entity_scores. Outside of that, perhaps having different loot tables spawn in depending on scoreboards could work, but requires a lot more leg work. :<
Can you post your loot table here? Make sure to check the logger for errors as well (you may paste them here too).EDIT: Sorry, misread. It is an unfortunate situation; I'll see if I can find a work-around, although it's unlikely to be anything but grotesque.
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 was just re-reading this, but I have to say that in my experience (in 16w04a, mind,) an item has always been dropped from a roll despite there being conditions for 99% of the items.
Thanks, this was indeed changed; looks like if an item could not meet the conditions, the table re-rolls. I'll update the thread to adhere to this.
EDIT: Fixed.
EDIT2: Added a new section concerning the use of duplicate functions/conditions at the same depth.
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/
Hey, thanks for the amazing tut!
I have a question about using loot_tables inside other tables
Can I have a main table point to other tables which point to a final table (not in a loop)
I don't know if that's the reason why my loot tables won't work, but I guess I should ask anyways.
Thanks
Yes, this can be done. You can paste your tables here if you're running into problems. You can also pinpoint which table is the issue by using each one directly until you find one that doesn't one at all.
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/
Edit: Fixed! Sorry for removing this post but i wanna keep my project hidden I'll post it on a thread somewhere when I'm done
The only issues I could immediately come across were two of item IDs you're using. There is no ID "gold" or "iron" ID; I assume you had meant to use "gold_ingot" and "iron_ingot"?
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/
oh my word, I'm such an idiot! Thanks, for proofreading nevertheless. Great Work, you are an amazing resource!
hi, is there any news on Blocks Loot table?
i saw Dinnerbone tweet "... not Blocks, yet" - it was last year, and since then no movements at all.
sad news if they dropped this feature.
It will come likely in 1.10, as Dinnerbone had taken a break from developing Minecraft shortly after finishing up 1.9's loot table features.
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/
You'll need to use the filepath that comes after the namespace ("minecraft" being the namespace, "entities/cow" being the filepath). The namespace and filepath are separated by a colon. If not specified, the namespace defaults to "minecraft":
Or:
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/
That's correct!
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/
if loot tables are not in resource packs then why does resource pack workbench have a folder for loot tables?
like many users of the minecraft forums i'm a member of the server total war (IP:167.114.100.168:438) the server includes a 1:1500 scale map of earth.
(╯°□°)╯︵ ┻━┻ ┻━┻ ︵ ヽ(°□°ヽ) ┻━┻ ︵ \\('0')// ︵ ┻━┻ ಠ_ಠ ಠ__ಠ ಠ___ಠ ಠ____ಠ (╮°-°)╮┳━┳ (╯°□°)╯︵ ┻━┻
#teamlitten #teammoon
those of you wondering why i don't have an active RP (so far none). i try. but whenever i get to the rules section of it my computer restarts. computer: i realise what your telling me and i give up.
Resource pack workbench?
If you're talking about the Minecraft jar, that's not a resource pack, that's a collection of all assets. Resource packs are client-side, loot tables and structures are not. It is literally impossible to include a loot table in a resource pack and have it work in the first place, and would make no sense for it to be changed to do so because that would mean any client could connect to a server and change server-side mechanics, which would be extremely bad for security.
The emphasis here is to not confuse people into thinking that a loot table is meant to be packaged with a resource pack.
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/