Skip to content

Commit bc2c63b

Browse files
committed
Update to 1.20
1 parent 1ee24b4 commit bc2c63b

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

gradle.properties

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
org.gradle.jvmargs=-Xmx1G
33
# Fabric Properties
44
# check these on https://fabricmc.net/develop
5-
minecraft_version=23w18a
6-
yarn_mappings=23w18a+build.4
5+
minecraft_version=1.20-pre4
6+
yarn_mappings=1.20-pre4+build.2
77
loader_version=0.14.19
8+
#Fabric api
89
# Mod Properties
9-
mod_version = 1.0.1
10+
mod_version = 1.0.2
1011
maven_group = daniking
1112
archives_base_name = birdsnests
1213
# Dependencies
13-
fabric_version=0.80.1+1.20
14+
fabric_version=0.81.2+1.20
1415
cloth_config_version=7.0.72

src/main/java/daniking/birdsnests/NestItem.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import net.minecraft.item.Item;
66
import net.minecraft.item.ItemStack;
77
import net.minecraft.loot.LootTable;
8-
import net.minecraft.loot.context.LootContext;
8+
import net.minecraft.loot.context.LootContextParameterSet;
99
import net.minecraft.loot.context.LootContextType;
1010
import net.minecraft.server.world.ServerWorld;
1111
import net.minecraft.sound.SoundCategory;
@@ -42,7 +42,7 @@ public TypedActionResult<ItemStack> use(World world, PlayerEntity user, Hand han
4242

4343
private static void spawnLoot(ServerWorld world, PlayerEntity player) {
4444
final LootTable table = world.getServer().getLootManager().getLootTable(new Identifier(BirdsNests.MODID, "nest/nest_loot"));
45-
final List<ItemStack> loot = table.generateLoot(new LootContext.Builder(world).build(LootContextType.create().build()));
45+
final List<ItemStack> loot = table.generateLoot(new LootContextParameterSet.Builder(world).build(LootContextType.create().build()));
4646
if (!loot.isEmpty()) {
4747
final Random random = player.getRandom();
4848
for (final ItemStack entry : loot) {

src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"depends": {
2828
"fabricloader": ">=0.13.3",
2929
"fabric": "*",
30-
"minecraft": "1.20-alpha.23.18.a",
30+
"minecraft": ">=1.20-",
3131
"java": ">=17",
3232
"cloth-config2": ">=6.2.57"
3333
}

0 commit comments

Comments
 (0)