Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 31 additions & 15 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Bug Report
name: Report A Bug
description: >-
Please use this template when you have encountered a bug in this mod. Please note that only the latest mod version for Minecraft 1.18.2, 1.19.2 and 1.20.1 is supported.
title: '[Bug]: '
Only Minecraft versions listed on the main branch are supported. Support may additionally vary based on the severity of an issue.
title: "[Bug]: "
labels: ["bug"]
assignees:
- Fuzss
Expand All @@ -14,35 +14,49 @@ body:
id: loader
attributes:
label: Mod Loader (Required)
description: What mod loader are you using the mod on?
description: What mod loader are you using to play the mod?
multiple: false
options:
- Forge
- Fabric
- Quilt
- "⸺"
- "Fabric"
- "NeoForge"
- "Forge"
- "Quilt"
validations:
required: true
- type: input
id: minecraft
attributes:
label: Minecraft Version (Required)
description: What is the Minecraft version you are playing with?
label: Minecraft Version(s) (Required)
description: What Minecraft version(s) are you using the play the mod?
placeholder: ex. 1.20.1
validations:
required: true
- type: input
id: version
attributes:
label: Mod Version (Required)
description: What version of the mod are you playing with?
label: Mod Version(s) (Required)
description: What mod version(s) are you using to play?
placeholder: ex. v8.0.0
validations:
required: true
- type: dropdown
id: mods
attributes:
label: Other Mods Involved (Required)
description: Can your issue be reproduced with a minimal set of mods (only this mod + dependencies)?
multiple: false
options:
- "⸺"
- "Yes"
- "No"
validations:
required: true
- type: textarea
id: notes
attributes:
label: Notes (Required)
description: Please explain what happens because of the bug (including all the steps required to cause the bug), and what behavior you would expect if the bug were fixed.
description: Please explain what happens because of the issue (including all the steps required to cause it), and what behavior you would expect if the issue were fixed.
placeholder: >-
ex.

Expand All @@ -60,6 +74,8 @@ body:
- type: input
id: latest-log
attributes:
label: latest.log (Optional)
description: Please paste the url to your shared `latest.log` file. [To share your `latest.log` here, please follow these steps.](https://gist.github.com/Fuzss/866b384d353912986e37b17eeef7a285)
placeholder: ex. https://gist.github.com/<your_user_name>/<gist_id>
label: latest.log (Required)
description: Please paste the url to your shared `latest.log` file. Note that issue reports without this file are difficult to solve and unlikely to be processed. [To share your `latest.log` here, please follow these steps.](https://gist.github.com/Fuzss/866b384d353912986e37b17eeef7a285)
placeholder: ex. https://gist.github.com/<your_user_name>/<gist_id>
validations:
required: true
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Questions
- name: Ask A Question
url: https://lunapixel.studio/discord
about: "Please ask questions on the Luna Pixel Studios Discord in #fuzs-projects."
about: "Join the Luna Pixel Studios Discord Server in the #fuzs-projects channel for additional support."
44 changes: 29 additions & 15 deletions .github/ISSUE_TEMPLATE/crash.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Crash Report
name: Submit A Crash Report
description: >-
Please use this template when this mod has caused your game to crash. Please note that only the latest mod version for Minecraft 1.18.2, 1.19.2 and 1.20.1 is supported.
title: '[Crash]: '
labels: ["bug"]
Only Minecraft versions listed on the main branch are supported. Support may additionally vary based on the severity of an issue.
title: "[Crash]: "
labels: ["bug", "high priority"]
assignees:
- Fuzss
body:
Expand All @@ -14,35 +14,49 @@ body:
id: loader
attributes:
label: Mod Loader (Required)
description: What mod loader are you using the mod on?
description: What mod loader are you using to play the mod?
multiple: false
options:
- Forge
- Fabric
- Quilt
- "⸺"
- "Fabric"
- "NeoForge"
- "Forge"
- "Quilt"
validations:
required: true
- type: input
id: minecraft
attributes:
label: Minecraft Version (Required)
description: What is the Minecraft version you are playing with?
label: Minecraft Version(s) (Required)
description: What Minecraft version(s) are you using the play the mod?
placeholder: ex. 1.20.1
validations:
required: true
- type: input
id: version
attributes:
label: Mod Version (Required)
description: What version of the mod are you playing with?
label: Mod Version(s) (Required)
description: What mod version(s) are you using to play?
placeholder: ex. v8.0.0
validations:
required: true
- type: dropdown
id: mods
attributes:
label: Other Mods Involved (Required)
description: Can your issue be reproduced with a minimal set of mods (only this mod + dependencies)?
multiple: false
options:
- "⸺"
- "Yes"
- "No"
validations:
required: true
- type: textarea
id: notes
attributes:
label: Notes (Required)
description: Please explain which steps we need to do to reproduce the crash. Please include anything else you'd like to say about the crash.
description: Please explain which steps we need to do to reproduce the issue. Please include anything else you'd like to say about it.
placeholder: >-
ex.

Expand All @@ -58,7 +72,7 @@ body:
attributes:
label: Crash Report (Required)
description: >-
Please paste the url to your shared crash report. [To share your crash report here, please follow these steps.](https://gist.github.com/Fuzss/9692f6ed5e8cca485a58004c28c9045b)
Please paste the url to your shared crash report. Note that issue reports without this file are difficult to solve and unlikely to be processed. [To share your crash report here, please follow these steps.](https://gist.github.com/Fuzss/9692f6ed5e8cca485a58004c28c9045b)
placeholder: ex. https://gist.github.com/<your_user_name>/<gist_id>
validations:
required: true
Expand All @@ -67,4 +81,4 @@ body:
attributes:
label: latest.log (Optional)
description: Please paste the url to your shared `latest.log` file. [To share your `latest.log` here, please follow these steps.](https://gist.github.com/Fuzss/866b384d353912986e37b17eeef7a285)
placeholder: ex. https://gist.github.com/<your_user_name>/<gist_id>
placeholder: ex. https://gist.github.com/<your_user_name>/<gist_id>
36 changes: 33 additions & 3 deletions .github/ISSUE_TEMPLATE/suggestion.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,41 @@
name: Suggestion
name: Leave A Suggestion
description: >-
Please use this template when you want to suggest a feature. Please do not ask for mod updates or ports, they will come when they are ready.
title: '[Suggestion]: '
Please do not ask for mod updates or ports, they will come when they are ready.
title: "[Suggestion]: "
labels: ["enhancement"]
assignees:
- Fuzss
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this issue report!
- type: dropdown
id: loader
attributes:
label: Mod Loader (Optional)
description: What mod loader are you using to play the mod?
multiple: false
options:
- "⸺"
- "Fabric"
- "NeoForge"
- "Forge"
- "Quilt"
validations:
required: true
- type: input
id: minecraft
attributes:
label: Minecraft Version(s) (Optional)
description: What Minecraft version(s) are you using the play the mod?
placeholder: ex. 1.20.1
- type: input
id: version
attributes:
label: Mod Version(s) (Optional)
description: What mod version(s) are you using to play?
placeholder: ex. v8.0.0
- type: textarea
id: suggestion
attributes:
Expand Down
44 changes: 0 additions & 44 deletions .idea/gradle.xml

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
20 changes: 20 additions & 0 deletions 1.20.4/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v20.4.2-1.20.4] - 2024-05-16
### Fixed
- Fix right-clicking halving recipe output

## [v20.4.1-1.20.4] - 2024-02-05
### Fixed
- Fix rendered crafting tables contents failing to rotate towards the closest player

## [v20.4.0-1.20.4] - 2024-01-27
- Rewritten for Minecraft 1.20.4
- All modded crafting tables are supported automatically, use `visualworkbench:unaltered_workbenches` for individual exclusions
- New implementation should work much more reliably with mods like CraftTweaker
- Greatly reduce number of update packets send to clients
- Publish for NeoForge
13 changes: 13 additions & 0 deletions 1.20.4/Common/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apply from: "https://raw.githubusercontent.com/Fuzss/modresources/main/gradle/v2/common.gradle"

dependencies {
// Puzzles Lib
modApi libs.puzzleslib.common

// Just Enough Items
compileOnly libs.jeiapi.common
}

tasks.withType(net.fabricmc.loom.task.AbstractRemapJarTask).configureEach {
targetNamespace = "named"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// 1.20.4 2024-01-24T23:42:33.58688 Language (en_us)
df9da4d2378015f87d23586f120ab375074989f6 assets/visualworkbench/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// 1.20.4 2024-01-24T23:42:33.58585 Tags for minecraft:block mod id vanilla
d00da1153a305b41cd0709e40bbab70031f6f7fb data/visualworkbench/tags/blocks/unaltered_workbenches.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"container.invalidBlock": "Unable to open. Break and replace to use."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"values": [
"minecraft:smithing_table",
"minecraft:fletching_table"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package fuzs.visualworkbench;

import fuzs.puzzleslib.api.config.v3.ConfigHolder;
import fuzs.puzzleslib.api.core.v1.ModConstructor;
import fuzs.puzzleslib.api.event.v1.RegistryEntryAddedCallback;
import fuzs.puzzleslib.api.event.v1.core.EventPhase;
import fuzs.puzzleslib.api.event.v1.entity.player.PlayerInteractEvents;
import fuzs.puzzleslib.api.event.v1.server.TagsUpdatedCallback;
import fuzs.visualworkbench.config.ClientConfig;
import fuzs.visualworkbench.config.ServerConfig;
import fuzs.visualworkbench.handler.BlockConversionHandler;
import fuzs.visualworkbench.init.ModRegistry;
import net.minecraft.core.registries.Registries;
import net.minecraft.resources.ResourceLocation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class VisualWorkbench implements ModConstructor {
public static final String MOD_ID = "visualworkbench";
public static final String MOD_NAME = "Visual Workbench";
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_NAME);

public static final ConfigHolder CONFIG = ConfigHolder.builder(MOD_ID).client(ClientConfig.class).server(ServerConfig.class);

@Override
public void onConstructMod() {
ModRegistry.touch();
registerHandlers();
}

private static void registerHandlers() {
RegistryEntryAddedCallback.registryEntryAdded(Registries.BLOCK).register(BlockConversionHandler::onRegistryEntryAdded);
PlayerInteractEvents.USE_BLOCK.register(BlockConversionHandler::onUseBlock);
TagsUpdatedCallback.EVENT.register(EventPhase.FIRST, BlockConversionHandler::onTagsUpdated);
}

public static ResourceLocation id(String path) {
return new ResourceLocation(MOD_ID, path);
}
}
Loading