1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-13 10:11:50 +00:00

Fix mod examples

This commit is contained in:
tobspr 2022-01-22 22:04:49 +01:00
parent 0540a010a6
commit 509c01f642
21 changed files with 21 additions and 21 deletions

View File

@ -6,7 +6,7 @@ const METADATA = {
version: "1", version: "1",
id: "add-building-basic", id: "add-building-basic",
description: "Shows how to add a new basic building", description: "Shows how to add a new basic building",
minimumGameVersion: "^1.5.0", minimumGameVersion: ">=1.5.0",
}; };
class MetaDemoModBuilding extends shapez.ModMetaBuilding { class MetaDemoModBuilding extends shapez.ModMetaBuilding {

View File

@ -7,7 +7,7 @@ const METADATA = {
id: "add-building-extended", id: "add-building-extended",
description: description:
"Shows how to add a new building with logic, in this case it flips/mirrors shapez from top to down", "Shows how to add a new building with logic, in this case it flips/mirrors shapez from top to down",
minimumGameVersion: "^1.5.0", minimumGameVersion: ">=1.5.0",
}; };
// Declare a new type of item processor // Declare a new type of item processor

View File

@ -6,7 +6,7 @@ const METADATA = {
version: "1", version: "1",
id: "base", id: "base",
description: "The most basic mod", description: "The most basic mod",
minimumGameVersion: "^1.5.0", minimumGameVersion: ">=1.5.0",
}; };
class Mod extends shapez.Mod { class Mod extends shapez.Mod {

View File

@ -6,7 +6,7 @@ const METADATA = {
version: "1", version: "1",
id: "patch-methods", id: "patch-methods",
description: "Shows how to patch existing methods to change the game by making the belts cost shapes", description: "Shows how to patch existing methods to change the game by making the belts cost shapes",
minimumGameVersion: "^1.5.0", minimumGameVersion: ">=1.5.0",
}; };
class Mod extends shapez.Mod { class Mod extends shapez.Mod {

View File

@ -6,7 +6,7 @@ const METADATA = {
version: "1", version: "1",
id: "class-extensions", id: "class-extensions",
description: "Shows how to extend builtin classes", description: "Shows how to extend builtin classes",
minimumGameVersion: "^1.5.0", minimumGameVersion: ">=1.5.0",
}; };
const BeltExtension = ({ $super, $old }) => ({ const BeltExtension = ({ $super, $old }) => ({

View File

@ -6,7 +6,7 @@ const METADATA = {
version: "1", version: "1",
id: "custom-css", id: "custom-css",
description: "Shows how to add custom css", description: "Shows how to add custom css",
minimumGameVersion: "^1.5.0", minimumGameVersion: ">=1.5.0",
}; };
class Mod extends shapez.Mod { class Mod extends shapez.Mod {

View File

@ -6,7 +6,7 @@ const METADATA = {
version: "1", version: "1",
id: "base", id: "base",
description: "Displays an indicator on every item processing building when its working", description: "Displays an indicator on every item processing building when its working",
minimumGameVersion: "^1.5.0", minimumGameVersion: ">=1.5.0",
}; };
class ItemProcessorStatusGameSystem extends shapez.GameSystem { class ItemProcessorStatusGameSystem extends shapez.GameSystem {

View File

@ -6,7 +6,7 @@ const METADATA = {
version: "1", version: "1",
id: "base", id: "base",
description: "Shows how to add a new keybinding", description: "Shows how to add a new keybinding",
minimumGameVersion: "^1.5.0", minimumGameVersion: ">=1.5.0",
}; };
class Mod extends shapez.Mod { class Mod extends shapez.Mod {

View File

@ -6,7 +6,7 @@ const METADATA = {
version: "1", version: "1",
id: "custom-sub-shapes", id: "custom-sub-shapes",
description: "Shows how to add custom sub shapes", description: "Shows how to add custom sub shapes",
minimumGameVersion: "^1.5.0", minimumGameVersion: ">=1.5.0",
}; };
class Mod extends shapez.Mod { class Mod extends shapez.Mod {

View File

@ -6,7 +6,7 @@ const METADATA = {
version: "1", version: "1",
id: "custom-theme", id: "custom-theme",
description: "Shows how to add a custom game theme", description: "Shows how to add a custom game theme",
minimumGameVersion: "^1.5.0", minimumGameVersion: ">=1.5.0",
}; };
class Mod extends shapez.Mod { class Mod extends shapez.Mod {

View File

@ -6,7 +6,7 @@ const METADATA = {
version: "1", version: "1",
id: "mod-settings", id: "mod-settings",
description: "Shows how to add settings to your mod", description: "Shows how to add settings to your mod",
minimumGameVersion: "^1.5.0", minimumGameVersion: ">=1.5.0",
settings: { settings: {
timesLaunched: 0, timesLaunched: 0,

View File

@ -6,7 +6,7 @@ const METADATA = {
version: "1", version: "1",
id: "modify-existing-building", id: "modify-existing-building",
description: "Shows how to modify an existing building", description: "Shows how to modify an existing building",
minimumGameVersion: "^1.5.0", minimumGameVersion: ">=1.5.0",
}; };
class Mod extends shapez.Mod { class Mod extends shapez.Mod {

View File

@ -6,7 +6,7 @@ const METADATA = {
version: "1", version: "1",
id: "modify-theme", id: "modify-theme",
description: "Shows how to modify builtin themes", description: "Shows how to modify builtin themes",
minimumGameVersion: "^1.5.0", minimumGameVersion: ">=1.5.0",
}; };
class Mod extends shapez.Mod { class Mod extends shapez.Mod {

View File

@ -6,7 +6,7 @@ const METADATA = {
version: "1", version: "1",
id: "modify-ui", id: "modify-ui",
description: "Shows how to modify a builtin game state, in this case the main menu", description: "Shows how to modify a builtin game state, in this case the main menu",
minimumGameVersion: "^1.5.0", minimumGameVersion: ">=1.5.0",
}; };
class Mod extends shapez.Mod { class Mod extends shapez.Mod {

View File

@ -6,7 +6,7 @@ const METADATA = {
version: "1", version: "1",
id: "new-item-type", id: "new-item-type",
description: "Shows how to add a new item type (fluid)", description: "Shows how to add a new item type (fluid)",
minimumGameVersion: "^1.5.0", minimumGameVersion: ">=1.5.0",
}; };
// Define which fluid types there are // Define which fluid types there are

View File

@ -8,7 +8,7 @@ const METADATA = {
description: description:
"Adds a new building to the wires layer, 'Notification Blocks' which show a custom notification when they get a truthy signal.", "Adds a new building to the wires layer, 'Notification Blocks' which show a custom notification when they get a truthy signal.",
minimumGameVersion: "^1.5.0", minimumGameVersion: ">=1.5.0",
}; };
//////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////

View File

@ -6,7 +6,7 @@ const METADATA = {
version: "1", version: "1",
id: "pasting", id: "pasting",
description: "Shows how to properly receive paste events ingame", description: "Shows how to properly receive paste events ingame",
minimumGameVersion: "^1.5.0", minimumGameVersion: ">=1.5.0",
}; };
class Mod extends shapez.Mod { class Mod extends shapez.Mod {

View File

@ -6,7 +6,7 @@ const METADATA = {
version: "1", version: "1",
id: "replace-builtin-sprites", id: "replace-builtin-sprites",
description: "Shows how to replace builtin sprites", description: "Shows how to replace builtin sprites",
minimumGameVersion: "^1.5.0", minimumGameVersion: ">=1.5.0",
}; };
class Mod extends shapez.Mod { class Mod extends shapez.Mod {

View File

@ -6,7 +6,7 @@ const METADATA = {
version: "1", version: "1",
id: "sandbox", id: "sandbox",
description: "Blueprints are always unlocked and cost no money, also all buildings are unlocked", description: "Blueprints are always unlocked and cost no money, also all buildings are unlocked",
minimumGameVersion: "^1.5.0", minimumGameVersion: ">=1.5.0",
}; };
class Mod extends shapez.Mod { class Mod extends shapez.Mod {

View File

@ -6,7 +6,7 @@ const METADATA = {
version: "1", version: "1",
id: "translations", id: "translations",
description: "Shows how to add and modify translations", description: "Shows how to add and modify translations",
minimumGameVersion: "^1.5.0", minimumGameVersion: ">=1.5.0",
}; };
class Mod extends shapez.Mod { class Mod extends shapez.Mod {

View File

@ -8,7 +8,7 @@ const METADATA = {
description: description:
"Shows how to add a new component to the game, how to save additional data and how to add custom logic and drawings", "Shows how to add a new component to the game, how to save additional data and how to add custom logic and drawings",
minimumGameVersion: "^1.5.0", minimumGameVersion: ">=1.5.0",
}; };
/** /**