Skip to content

Commit

Permalink
Update to 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpDerpling committed May 20, 2023
1 parent 1ee24b4 commit bc2c63b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
org.gradle.jvmargs=-Xmx1G
# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=23w18a
yarn_mappings=23w18a+build.4
minecraft_version=1.20-pre4
yarn_mappings=1.20-pre4+build.2
loader_version=0.14.19
#Fabric api
# Mod Properties
mod_version = 1.0.1
mod_version = 1.0.2
maven_group = daniking
archives_base_name = birdsnests
# Dependencies
fabric_version=0.80.1+1.20
fabric_version=0.81.2+1.20
cloth_config_version=7.0.72
4 changes: 2 additions & 2 deletions src/main/java/daniking/birdsnests/NestItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.loot.LootTable;
import net.minecraft.loot.context.LootContext;
import net.minecraft.loot.context.LootContextParameterSet;
import net.minecraft.loot.context.LootContextType;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.sound.SoundCategory;
Expand Down Expand Up @@ -42,7 +42,7 @@ public TypedActionResult<ItemStack> use(World world, PlayerEntity user, Hand han

private static void spawnLoot(ServerWorld world, PlayerEntity player) {
final LootTable table = world.getServer().getLootManager().getLootTable(new Identifier(BirdsNests.MODID, "nest/nest_loot"));
final List<ItemStack> loot = table.generateLoot(new LootContext.Builder(world).build(LootContextType.create().build()));
final List<ItemStack> loot = table.generateLoot(new LootContextParameterSet.Builder(world).build(LootContextType.create().build()));
if (!loot.isEmpty()) {
final Random random = player.getRandom();
for (final ItemStack entry : loot) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"depends": {
"fabricloader": ">=0.13.3",
"fabric": "*",
"minecraft": "1.20-alpha.23.18.a",
"minecraft": ">=1.20-",
"java": ">=17",
"cloth-config2": ">=6.2.57"
}
Expand Down

0 comments on commit bc2c63b

Please sign in to comment.