Skip to content

Commit

Permalink
fix(1.20.1-forged): fixs
Browse files Browse the repository at this point in the history
star fuel recipe change
jei fix
  • Loading branch information
cnlimiter committed Jun 12, 2024
1 parent 7668481 commit c3463fb
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 203 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ public void setRecipe(IRecipeLayoutBuilder builder, ICompressorRecipe recipe, @N
assert level != null;
var inputs = recipe.getIngredients();
var output = recipe.getResultItem(level.registryAccess());
builder.addSlot(RecipeIngredientRole.INPUT, 36, 20).addIngredients(inputs.get(0));
builder.addSlot(RecipeIngredientRole.OUTPUT, 116, 20).addItemStack(output);
builder.addSlot(RecipeIngredientRole.INPUT, 37, 21).addIngredients(inputs.get(0));
builder.addSlot(RecipeIngredientRole.OUTPUT, 117, 21).addItemStack(output);

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void setRecipe(@NotNull IRecipeLayoutBuilder builder, ISpecialRecipe reci

for (int i = heightOffset; i < shaped.getHeight() + heightOffset; i++) {
for (int j = widthOffset; j < shaped.getWidth() + widthOffset; j++) {
builder.addSlot(RecipeIngredientRole.INPUT, j * 18 + 1, i * 18 + 1).addIngredients(inputs.get(stackIndex));
builder.addSlot(RecipeIngredientRole.INPUT, j * 18 + 2, i * 18 + 2).addIngredients(inputs.get(stackIndex));
stackIndex++;
}
}
Expand All @@ -102,7 +102,7 @@ private void shapelessRecipe(@NotNull IRecipeLayoutBuilder builder, NonNullList<
int index = j + (i * 9);

if (index < inputs.size()) {
builder.addSlot(RecipeIngredientRole.INPUT, j * 18 + 1, i * 18 + 1).addIngredients(inputs.get(index));
builder.addSlot(RecipeIngredientRole.INPUT, j * 18 + 2, i * 18 + 2).addIngredients(inputs.get(index));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ protected void buildRecipes(@NotNull Consumer<FinishedRecipe> consumer) {
.pattern("ccc")
.pattern("cxc")
.pattern("ccc")
.define('c', Tags.Items.ORES_COAL)
.define('c', Tags.Items.STORAGE_BLOCKS_COAL)
.define('x', ModItems.infinity_catalyst.get())
.unlockedBy("has_item", has(ModItems.infinity_catalyst.get())).save(consumer);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ private static void handleBootsStateChange(Player player, String key, boolean ha
@SubscribeEvent
public static void jumpBoost(LivingEvent.LivingJumpEvent event) {
LivingEntity entity = event.getEntity();
if (entity instanceof Player player && entitiesWithBoots.contains(player.getGameProfile().getName() + ":" + player.level().isClientSide))
player.setDeltaMovement(player.getDeltaMovement().add(0f, 0.405f, 0f));
if (entity instanceof Player player && entitiesWithBoots.contains(player.getGameProfile().getName() + ":" + player.level().isClientSide) && player.isSprinting())
player.setDeltaMovement(player.getDeltaMovement().add(0F, 0.305F, 0F));
}

@SubscribeEvent
Expand Down

This file was deleted.

107 changes: 0 additions & 107 deletions src/main/resources/assets/avaritia/models/item/infinitato.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"halo": {
"texture": "#halo",
"color": -16777216,
"size": 10,
"size": 8,
"pulse": true
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{
"parent": "item/generated",
"textures": {
"layer0": "avaritia:item/resource/infinity_totem"
"layer0": "avaritia:item/resource/infinity_totem",
"halo": "avaritia:misc/halo"
},
"loader": "avaritia:halo",
"halo": {
"texture": "#halo",
"color": -16777216,
"size": 6,
"pulse": false
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"halo": {
"texture": "#halo",
"color": -1711276033,
"size": 8,
"size": 6,
"pulse": false
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"halo": {
"texture": "#halo",
"color": -1711276033,
"size": 8,
"size": 6,
"pulse": false
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"halo": {
"texture": "#halo",
"color": 1308622847,
"size": 8,
"size": 6,
"pulse": false
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"halo": {
"texture": "#halo",
"color": 872415231,
"size": 8,
"size": 6,
"pulse": false
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"halo": {
"texture": "#halo",
"color": -16777216,
"size": 8,
"size": 6,
"pulse": false
}
}

0 comments on commit c3463fb

Please sign in to comment.