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:
parent
0540a010a6
commit
509c01f642
@ -6,7 +6,7 @@ const METADATA = {
|
||||
version: "1",
|
||||
id: "add-building-basic",
|
||||
description: "Shows how to add a new basic building",
|
||||
minimumGameVersion: "^1.5.0",
|
||||
minimumGameVersion: ">=1.5.0",
|
||||
};
|
||||
|
||||
class MetaDemoModBuilding extends shapez.ModMetaBuilding {
|
||||
|
||||
@ -7,7 +7,7 @@ const METADATA = {
|
||||
id: "add-building-extended",
|
||||
description:
|
||||
"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
|
||||
|
||||
@ -6,7 +6,7 @@ const METADATA = {
|
||||
version: "1",
|
||||
id: "base",
|
||||
description: "The most basic mod",
|
||||
minimumGameVersion: "^1.5.0",
|
||||
minimumGameVersion: ">=1.5.0",
|
||||
};
|
||||
|
||||
class Mod extends shapez.Mod {
|
||||
|
||||
@ -6,7 +6,7 @@ const METADATA = {
|
||||
version: "1",
|
||||
id: "patch-methods",
|
||||
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 {
|
||||
|
||||
@ -6,7 +6,7 @@ const METADATA = {
|
||||
version: "1",
|
||||
id: "class-extensions",
|
||||
description: "Shows how to extend builtin classes",
|
||||
minimumGameVersion: "^1.5.0",
|
||||
minimumGameVersion: ">=1.5.0",
|
||||
};
|
||||
|
||||
const BeltExtension = ({ $super, $old }) => ({
|
||||
|
||||
@ -6,7 +6,7 @@ const METADATA = {
|
||||
version: "1",
|
||||
id: "custom-css",
|
||||
description: "Shows how to add custom css",
|
||||
minimumGameVersion: "^1.5.0",
|
||||
minimumGameVersion: ">=1.5.0",
|
||||
};
|
||||
|
||||
class Mod extends shapez.Mod {
|
||||
|
||||
@ -6,7 +6,7 @@ const METADATA = {
|
||||
version: "1",
|
||||
id: "base",
|
||||
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 {
|
||||
|
||||
@ -6,7 +6,7 @@ const METADATA = {
|
||||
version: "1",
|
||||
id: "base",
|
||||
description: "Shows how to add a new keybinding",
|
||||
minimumGameVersion: "^1.5.0",
|
||||
minimumGameVersion: ">=1.5.0",
|
||||
};
|
||||
|
||||
class Mod extends shapez.Mod {
|
||||
|
||||
@ -6,7 +6,7 @@ const METADATA = {
|
||||
version: "1",
|
||||
id: "custom-sub-shapes",
|
||||
description: "Shows how to add custom sub shapes",
|
||||
minimumGameVersion: "^1.5.0",
|
||||
minimumGameVersion: ">=1.5.0",
|
||||
};
|
||||
|
||||
class Mod extends shapez.Mod {
|
||||
|
||||
@ -6,7 +6,7 @@ const METADATA = {
|
||||
version: "1",
|
||||
id: "custom-theme",
|
||||
description: "Shows how to add a custom game theme",
|
||||
minimumGameVersion: "^1.5.0",
|
||||
minimumGameVersion: ">=1.5.0",
|
||||
};
|
||||
|
||||
class Mod extends shapez.Mod {
|
||||
|
||||
@ -6,7 +6,7 @@ const METADATA = {
|
||||
version: "1",
|
||||
id: "mod-settings",
|
||||
description: "Shows how to add settings to your mod",
|
||||
minimumGameVersion: "^1.5.0",
|
||||
minimumGameVersion: ">=1.5.0",
|
||||
|
||||
settings: {
|
||||
timesLaunched: 0,
|
||||
|
||||
@ -6,7 +6,7 @@ const METADATA = {
|
||||
version: "1",
|
||||
id: "modify-existing-building",
|
||||
description: "Shows how to modify an existing building",
|
||||
minimumGameVersion: "^1.5.0",
|
||||
minimumGameVersion: ">=1.5.0",
|
||||
};
|
||||
|
||||
class Mod extends shapez.Mod {
|
||||
|
||||
@ -6,7 +6,7 @@ const METADATA = {
|
||||
version: "1",
|
||||
id: "modify-theme",
|
||||
description: "Shows how to modify builtin themes",
|
||||
minimumGameVersion: "^1.5.0",
|
||||
minimumGameVersion: ">=1.5.0",
|
||||
};
|
||||
|
||||
class Mod extends shapez.Mod {
|
||||
|
||||
@ -6,7 +6,7 @@ const METADATA = {
|
||||
version: "1",
|
||||
id: "modify-ui",
|
||||
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 {
|
||||
|
||||
@ -6,7 +6,7 @@ const METADATA = {
|
||||
version: "1",
|
||||
id: "new-item-type",
|
||||
description: "Shows how to add a new item type (fluid)",
|
||||
minimumGameVersion: "^1.5.0",
|
||||
minimumGameVersion: ">=1.5.0",
|
||||
};
|
||||
|
||||
// Define which fluid types there are
|
||||
|
||||
@ -8,7 +8,7 @@ const METADATA = {
|
||||
description:
|
||||
"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",
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ -6,7 +6,7 @@ const METADATA = {
|
||||
version: "1",
|
||||
id: "pasting",
|
||||
description: "Shows how to properly receive paste events ingame",
|
||||
minimumGameVersion: "^1.5.0",
|
||||
minimumGameVersion: ">=1.5.0",
|
||||
};
|
||||
|
||||
class Mod extends shapez.Mod {
|
||||
|
||||
@ -6,7 +6,7 @@ const METADATA = {
|
||||
version: "1",
|
||||
id: "replace-builtin-sprites",
|
||||
description: "Shows how to replace builtin sprites",
|
||||
minimumGameVersion: "^1.5.0",
|
||||
minimumGameVersion: ">=1.5.0",
|
||||
};
|
||||
|
||||
class Mod extends shapez.Mod {
|
||||
|
||||
@ -6,7 +6,7 @@ const METADATA = {
|
||||
version: "1",
|
||||
id: "sandbox",
|
||||
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 {
|
||||
|
||||
@ -6,7 +6,7 @@ const METADATA = {
|
||||
version: "1",
|
||||
id: "translations",
|
||||
description: "Shows how to add and modify translations",
|
||||
minimumGameVersion: "^1.5.0",
|
||||
minimumGameVersion: ">=1.5.0",
|
||||
};
|
||||
|
||||
class Mod extends shapez.Mod {
|
||||
|
||||
@ -8,7 +8,7 @@ const METADATA = {
|
||||
description:
|
||||
"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",
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user