Skip to content

Commit

Permalink
chore: added normal hook crafting recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
Adr-hyng committed Sep 6, 2024
1 parent dda8ce7 commit b5bad80
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 21 deletions.
11 changes: 6 additions & 5 deletions BP/manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"format_version": 2,
"header": {
"name": "Angler's Desire BP §8(1.0.2)",
"name": "Angler's Desire BP §8(1.0.1)",
"description": "Adding immersion to vanilla fishing mechanics in Minecraft \n @Made By: https://twitter.com/h_YanG_0A",
"uuid": "f36713ae-a50d-4eae-ab09-14bef4e580ec",
"version": [
1,
0,
2
1
],
"min_engine_version": [
1,
Expand All @@ -34,7 +34,7 @@
"version": [
1,
0,
2
1
],
"entry": "scripts/main.js"
}
Expand All @@ -56,13 +56,14 @@
"version": [
1,
0,
2
1
]
}
],
"metadata": {
"authors": [
"@h_YanG_0A"
"@h_YanG_0A",
"DaL4y"
],
"license": "GPL-3.0-or-later",
"url": "https://twitter.com/h_YanG_0A"
Expand Down
36 changes: 29 additions & 7 deletions BP/scripts/fishing_system/configuration/server_configuration.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,36 @@
import { FormBuilder } from "utils/form_builder";
import { cloneConfiguration } from "./configuration_handler";

export const serverConfiguration = {
caughtFishDespawnTimer: new FormBuilder("yn:fishing_got_reel.configuration.server.caught_fish_despawn_timer").createTextField("30"),
expirationTimer: new FormBuilder("yn:fishing_got_reel.configuration.server.expiration_timer").createTextField("300"),
CatchingPlacement: new FormBuilder("yn:fishing_got_reel.configuration.server.caught_direction").createDropdown(['CURRENT', 'BACK', 'FRONT'], "CURRENT"),
caughtFishDespawns: new FormBuilder("yn:fishing_got_reel.configuration.server.does_caught_fish_despawn").createToggle(false),
ShowMessageUponJoin: new FormBuilder("yn:fishing_got_reel.configuration.server.show_message_on_join").createToggle(true),
debug: new FormBuilder("Debug Mode").createToggle(true),
/**
* (Required: Caught Fish Despawns Toggle) Number of seconds before the fish despawns after being reeled. Note: Putting string instead of number just returns the default value
*/
caughtFishDespawnTimer: new FormBuilder("yn:fishing_got_reel.configuration.server.caught_fish_despawn_timer").createTextField("30"),
/**
* Number of seconds before cancelling the fishing system. Note: Putting string instead of number just returns the default value
*/
expirationTimer: new FormBuilder("yn:fishing_got_reel.configuration.server.expiration_timer").createTextField("300"),
/**
* The locator for when will be caught entity be placed or reeled
*/
CatchingPlacement: new FormBuilder("yn:fishing_got_reel.configuration.server.caught_direction").createDropdown(['CURRENT', 'BACK', 'FRONT'], "CURRENT"),
/**
* Makes the caught fish despawn after an x amount of seconds being reeled-in.
*/
caughtFishDespawns: new FormBuilder("yn:fishing_got_reel.configuration.server.does_caught_fish_despawn").createToggle(false),
/**
* Shows the script initialization message log upon player joining, default is true.
*/
ShowMessageUponJoin: new FormBuilder("yn:fishing_got_reel.configuration.server.show_message_on_join").createToggle(true),
/**
* Enables debug messages to content logs.
*/
debug: new FormBuilder("Debug Mode").createToggle(false),
};

export let serverConfigurationCopy = cloneConfiguration(serverConfiguration);
export let setServerConfiguration = (newServerConfig) => serverConfigurationCopy = newServerConfig;
export let resetServerConfiguration = () => serverConfigurationCopy = cloneConfiguration(serverConfiguration);
export const VERSION = "1.0.1";

// version (do not change)
export const VERSION = "1.0.1";
9 changes: 5 additions & 4 deletions RP/manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"format_version": 2,
"header": {
"name": "Angler's Desire RP §8(1.0.2)",
"name": "Angler's Desire RP §8(1.0.1)",
"description": "Adding immersion to vanilla fishing mechanics in Minecraft \n @Made By: https://twitter.com/h_YanG_0A",
"uuid": "54ee84f3-7b81-421c-8602-2d399940fd59",
"version": [
1,
0,
2
1
],
"min_engine_version": [
1,
Expand All @@ -22,13 +22,14 @@
"version": [
1,
0,
2
1
]
}
],
"metadata": {
"authors": [
"@h_YanG_0A"
"@h_YanG_0A",
"DaL4y"
],
"license": "GPL-3.0-or-later",
"url": "https://twitter.com/h_YanG_0A"
Expand Down
Binary file added res/crafting_recipes/normal_hook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions setup/mc_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"description": "Adding immersion to vanilla fishing mechanics in Minecraft \n @Made By: https://twitter.com/h_YanG_0A",
"bp_uuid": "f36713ae-a50d-4eae-ab09-14bef4e580ec",
"rp_uuid": "54ee84f3-7b81-421c-8602-2d399940fd59",
"version": [1, 0, 2],
"version": [1, 0, 1],
"min_engine_version": [ 1, 21, 0 ]
},
"bp_modules": [
Expand All @@ -21,7 +21,7 @@
"type": "script",
"language": "javascript",
"uuid": "02a44d23-5962-4bb5-8a78-ef87d1eb0726",
"version": [ 1, 0, 2 ],
"version": [ 1, 0, 1 ],
"entry": "scripts/main.js"
}
],
Expand All @@ -30,7 +30,7 @@
{
"type": "resources",
"uuid": "a74c51a8-a015-4f9e-b55a-98aa2c38aff5",
"version": [ 1, 0, 2 ]
"version": [ 1, 0, 1 ]
}
],
"bp_dependencies": [
Expand All @@ -45,7 +45,8 @@
],
"metadata": {
"authors": [
"@h_YanG_0A"
"@h_YanG_0A",
"DaL4y"
],
"license": "GPL-3.0-or-later",
"url": "https://twitter.com/h_YanG_0A"
Expand Down
2 changes: 1 addition & 1 deletion src/fishing_system/configuration/server_configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const serverConfiguration = {
/**
* Enables debug messages to content logs.
*/
debug: new FormBuilder("Debug Mode").createToggle(true),
debug: new FormBuilder("Debug Mode").createToggle(false),
};

export let serverConfigurationCopy = cloneConfiguration(serverConfiguration);
Expand Down

0 comments on commit b5bad80

Please sign in to comment.