feat: loot tables (#43)

self-explanatory

Reviewed-on: https://git.neolegacy.dev/neoStudiosLCE/neoLegacy/pulls/43
This commit is contained in:
Fireblade
2026-07-12 02:05:06 +01:00
parent 0449af2be6
commit 54528fac16
146 changed files with 6397 additions and 1277 deletions
@@ -0,0 +1,28 @@
<?xml version='1.0' encoding='UTF-8'?>
<loot_table>
<pools>
<pool>
<rolls>1</rolls>
<entries>
<entry>
<type>loot_table</type>
<name>minecraft:gameplay/fishing/junk</name>
<weight>10</weight>
<quality>-2</quality>
</entry>
<entry>
<type>loot_table</type>
<name>minecraft:gameplay/fishing/treasure</name>
<weight>5</weight>
<quality>2</quality>
</entry>
<entry>
<type>loot_table</type>
<name>minecraft:gameplay/fishing/fish</name>
<weight>85</weight>
<quality>-1</quality>
</entry>
</entries>
</pool>
</pools>
</loot_table>
@@ -0,0 +1,54 @@
<?xml version='1.0' encoding='UTF-8'?>
<loot_table>
<pools>
<pool>
<rolls>1</rolls>
<entries>
<entry>
<type>item</type>
<name>minecraft:fish</name>
<functions>
<function>
<function>set_data</function>
<data>0</data>
</function>
</functions>
<weight>60</weight>
</entry>
<entry>
<type>item</type>
<name>minecraft:fish</name>
<functions>
<function>
<function>set_data</function>
<data>1</data>
</function>
</functions>
<weight>25</weight>
</entry>
<entry>
<type>item</type>
<name>minecraft:fish</name>
<functions>
<function>
<function>set_data</function>
<data>2</data>
</function>
</functions>
<weight>2</weight>
</entry>
<entry>
<type>item</type>
<name>minecraft:fish</name>
<functions>
<function>
<function>set_data</function>
<data>3</data>
</function>
</functions>
<weight>13</weight>
</entry>
</entries>
</pool>
</pools>
</loot_table>
@@ -0,0 +1,89 @@
<?xml version='1.0' encoding='UTF-8'?>
<loot_table>
<pools>
<pool>
<rolls>1</rolls>
<entries>
<entry>
<type>item</type>
<name>minecraft:leather_boots</name>
<weight>10</weight>
<functions>
<function>
<function>set_damage</function>
<damage>
<min>0</min>
<max>0.9</max>
</damage>
</function>
</functions>
</entry>
<entry>
<type>item</type>
<name>minecraft:leather</name>
<weight>10</weight>
</entry>
<entry>
<type>item</type>
<name>minecraft:bone</name>
<weight>10</weight>
</entry>
<entry>
<type>item</type>
<name>minecraft:potion</name>
<weight>10</weight>
</entry>
<entry>
<type>item</type>
<name>minecraft:string</name>
<weight>5</weight>
</entry>
<entry>
<type>item</type>
<name>minecraft:fishing_rod</name>
<weight>2</weight>
<functions>
<function>
<function>set_damage</function>
<damage>
<min>0</min>
<max>0.9</max>
</damage>
</function>
</functions>
</entry>
<entry>
<type>item</type>
<name>minecraft:bowl</name>
<weight>10</weight>
</entry>
<entry>
<type>item</type>
<name>minecraft:stick</name>
<weight>5</weight>
</entry>
<entry>
<type>item</type>
<name>minecraft:dye</name>
<weight>10</weight>
<functions>
<function>
<function>set_data</function>
<data>0</data>
</function>
</functions>
</entry>
<entry>
<type>item</type>
<name>minecraft:tripwire_hook</name>
<weight>10</weight>
</entry>
<entry>
<type>item</type>
<name>minecraft:rotten_flesh</name>
<weight>10</weight>
</entry>
</entries>
</pool>
</pools>
</loot_table>
@@ -0,0 +1,75 @@
<?xml version='1.0' encoding='UTF-8'?>
<loot_table>
<pools>
<pool>
<rolls>1</rolls>
<entries>
<entry>
<type>item</type>
<name>minecraft:waterlily</name>
<weight>1</weight>
</entry>
<entry>
<type>item</type>
<name>minecraft:name_tag</name>
<weight>1</weight>
</entry>
<entry>
<type>item</type>
<name>minecraft:saddle</name>
<weight>1</weight>
</entry>
<entry>
<type>item</type>
<name>minecraft:bow</name>
<weight>1</weight>
<functions>
<function>
<function>set_damage</function>
<damage>
<min>0</min>
<max>0.25</max>
</damage>
</function>
<function>
<function>enchant_with_levels</function>
<levels>30</levels>
<treasure>True</treasure>
</function>
</functions>
</entry>
<entry>
<type>item</type>
<name>minecraft:fishing_rod</name>
<weight>1</weight>
<functions>
<function>
<function>set_damage</function>
<damage>
<min>0</min>
<max>0.25</max>
</damage>
</function>
<function>
<function>enchant_with_levels</function>
<levels>30</levels>
<treasure>True</treasure>
</function>
</functions>
</entry>
<entry>
<type>item</type>
<name>minecraft:book</name>
<weight>1</weight>
<functions>
<function>
<function>enchant_with_levels</function>
<levels>30</levels>
<treasure>True</treasure>
</function>
</functions>
</entry>
</entries>
</pool>
</pools>
</loot_table>