How I make a suspicious block (aka sus sand and gravel) have a custom loottable on my structure?

Started by Epidemia_Oculta on

Topic category: Advanced modding

Last seen on 16:41, 29. Jul 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How I make a suspicious block (aka sus sand and gravel) have a custom loottable on my structure?

I want to have a custom archeology loottable in my structure, but I search online and didnt found anything about it or how make it, is there a way of doing it in raw source coding?

Last seen on 22:32, 15. Jul 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think this is something…
Thu, 07/11/2024 - 20:48

I think this is something you can do outside of mcreator, like you dont have to code anything but actually make a command for it. But if that isn't the case, then may i ask you, do you know how to make a loottable?

Last seen on 22:32, 15. Jul 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you do know how, then i…
Thu, 07/11/2024 - 20:59

If you do know how, then i believe you only need 1 item in this loottable, then type in the following command: "/give @p minecraft:suspicious_gravel{BlockEntityTag: {LootTable:"archaeology}} Replace the "archaeology" with the registry name of your loottable. and if you want the suspicious gravel to be suspicious sand then just replace the gravel with sand, obviously.
 

Last seen on 16:41, 29. Jul 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thanks that is really…
Thu, 07/11/2024 - 21:26

thanks that is really helpfull