Skip to content

Commit

Permalink
Port to 1.17
Browse files Browse the repository at this point in the history
Basically 1.0.2 but on 1.17
  • Loading branch information
QPCrummer committed May 3, 2022
1 parent 6f53d75 commit 4c6a13b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# FabricAutoCrafter
# FabricAutoCrafter 1.17
## A Fabric mod that adds a new Auto Crafter block

This mod adds a new block, the Auto Crafter. It allows you to put items in the crafting table and get an output. Hoppers and droppers do interact with the table.
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ dependencies {

// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
modImplementation include("eu.pb4:polymer:0.2.0-beta.37+1.18.2")
modImplementation include("fr.catcore:server-translations-api:1.4.10+1.18.2")
modImplementation include("eu.pb4:polymer:0.2.0-alpha.2+1.17.1")
modImplementation include("fr.catcore:server-translations-api:1.4.8+1.17")
}

processResources {
Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
org.gradle.jvmargs=-Xmx1G
minecraft_version=1.18.2
yarn_mappings=1.18.2+build.2
loader_version=0.13.3
mod_version=1.0.5
minecraft_version=1.17.1
yarn_mappings=1.17.1+build.65
loader_version=0.12.12
mod_version=1.0.2
maven_group=com.gitlab.essentialmods
archives_base_name=fabricautocrafter
fabric_version=0.48.0+1.18.2
fabric_version=0.46.1+1.17
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ public CraftingInventory boundCraftingInventory(ScreenHandler handler) {
}

@Override
public void writeNbt(NbtCompound tag) {
public NbtCompound writeNbt(NbtCompound tag) {
super.writeNbt(tag);
Inventories.writeNbt(tag, inventory);
tag.put("Output", output.writeNbt(new NbtCompound()));
return tag;
}

@Override
Expand Down Expand Up @@ -154,7 +155,7 @@ public void markDirty() {

@Override
public boolean canPlayerUse(PlayerEntity player) {
return player.getBlockPos().getSquaredDistance(this.pos) <= 64.0D;
return player.getBlockPos().getSquaredDistance(this.pos,false) <= 64.0D;
}

@Override
Expand Down Expand Up @@ -204,4 +205,5 @@ public CraftingInventory unsetHandler() {
public void onContainerClose(AutoCraftingTableContainer container) {
this.openContainers.remove(container);
}

}
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"depends": {
"fabricloader": "*",
"fabric": "*",
"minecraft": "1.18.x",
"minecraft": "1.17.x",
"java": ">=17"
}
}

0 comments on commit 4c6a13b

Please sign in to comment.