Skip to content
Merged
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
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# Mosaic Modding Documentation

currently just a proof of concept
### How to get this running on your device
1. Fork & clone the repo
2. Run `npm install`
3. Run `npm start` to start the local dev instance

### Contribute
- If you're a Team Member only work on the dev branch and open a PR to main, when you want to publish a new version
- If you're an external Contributor, simply fork the repo add the feature and open a PR to the **dev** branch.

### Publish a new version
1. Open a PR from dev to main.
2. Wait for the "Test Deployment" action to complete
3. If that action was successful, merge the PR.
4. This will trigger the actual Deployment action
11 changes: 7 additions & 4 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const config: Config = {
routeBasePath: "cosmetics",
sidebarPath: require.resolve(`./sidebar/cosmetics.ts`),
},
],
]/*, TODO readd once needed
["@docusaurus/plugin-content-docs",
{
id: "plaster",
Expand All @@ -93,6 +93,7 @@ const config: Config = {
sidebarPath: require.resolve(`./sidebar/tessera.ts`),
},
]
*/
],

themeConfig: {
Expand All @@ -119,7 +120,7 @@ const config: Config = {
position: 'left',
docsPluginId: 'paintersinc',
label: 'Painter\'s Inc',
},
}/*, TODO readd once needed
{
type: 'docSidebar',
sidebarId: 'plasterSidebar',
Expand All @@ -133,7 +134,7 @@ const config: Config = {
position: 'left',
docsPluginId: 'tessera',
label: 'Tessera',
},
},*/
],
},
footer: {
Expand All @@ -158,7 +159,8 @@ const config: Config = {
{
label: 'Cosmetics',
to: '/cosmetics/about',
},
}
/*, TODO readd once needed
{
label: 'Tessera',
to: '/tessera/about',
Expand All @@ -167,6 +169,7 @@ const config: Config = {
label: 'Plaster',
to: '/plaster/about',
},
*/
],
},
{
Expand Down
45 changes: 8 additions & 37 deletions src/components/EntityAttributes.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import useBaseUrl from "@docusaurus/useBaseUrl";
import React from "react";
import Hearts from "@site/src/components/Hearts";

export default function EntityAttributes(props: any) {
return (
Expand Down Expand Up @@ -28,10 +29,12 @@ export default function EntityAttributes(props: any) {
<div className={"attack-card"}>
<div className={"attack-header"}>
<h4>{item.type}</h4>
<img
src={useBaseUrl("/img/" + item.weapontype + ".png")}
alt={item.weapontype + " icon"}
/>
{item.weapontype !== null && item.weapontype !== undefined && (
<img
src={useBaseUrl("/img/" + item.weapontype + ".png")}
alt={item.weapontype + " icon"}
/>
)}
</div>
<ul>
<li>Easy:<Hearts amount={item.easy}/></li>
Expand All @@ -56,38 +59,6 @@ export default function EntityAttributes(props: any) {
);
}

function calculateHearts(count: number) {
const full = Math.floor(count / 2);
const half = count % 2;
return { full, half };
}

export function Hearts(props: any) {
const fullImage = useBaseUrl("/img/full_heart.png");
const halfImage = useBaseUrl("/img/half_heart.png");
let heartAmount = calculateHearts(props.amount);
return (
<div className={"hearts"}>
{props.amount} (
{Array.from({ length: heartAmount.full }).map((_, index) => (
<img
key={index}
src={fullImage}
alt={"Full Heart icon"}
/>
))}
{Array.from({ length: heartAmount.half }).map((_, index) => (
<img
key={index}
src={halfImage}
alt={"Half Heart icon"}
/>
))}
)
</div>
);
}

export enum MobBehavior {
Passive = "Passive",
Neutral = "Neutral",
Expand All @@ -96,7 +67,7 @@ export enum MobBehavior {

interface Damage {
type: WeaponType;
weapontype: string;
weapontype: string | null;
easy: number | string;
normal: number | string;
hard: number | string;
Expand Down
73 changes: 73 additions & 0 deletions src/components/FoodShowcase.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
import useBaseUrl from "@docusaurus/useBaseUrl";
import React from "react";
import Hunger from "@site/src/components/Hunger";
import Hearts from "@site/src/components/Hearts";

export default function ShowcaseBlock(props: any) {
return (
<div style={{ display: 'flex', gap: '1rem', alignItems: 'flex-start' }}>
<div className="item-card">
{props.title && (
<div className="item-card__header">
<h3 className="item-card__title">{props.title}</h3>
</div>
)}
<div className="item-card__content">
<img
src={useBaseUrl('/' + props.image)}
alt={props.image}
className="item-card__image"
/>
</div>
{props.nutrition && (
<div className="item-attribute-card__content">
<b>Nutrition:&nbsp;</b><Hunger amount={props.nutrition}/>
</div>
)}
{props.saturation && (
<div className="item-attribute-card__content">
<b>Saturation:&nbsp;</b><Hunger amount={props.saturation}/>
</div>
)}
{props.always === true && (
<div className="item-attribute-card__content">
Can always be eaten.
</div>
)}
{props.dogFood === true && (
<div className="item-attribute-card__content">
Can be fed to dogs.
</div>
)}
{props.effects && (
<div className="item-attribute-card__content">
<div>
<b>Effects:</b> {props.effects.map((item: Effect) =>
<div>
<h5>{item.name}</h5>
<ul>
<li>Chance to apply: {item.probability}%</li>
<li>Duration: {item.duration}</li>
</ul>
</div>
)}
</div>
</div>
)}
</div>
<div>
{props.children && (
<div>
{props.children}
</div>
)}
</div>
</div>
);
}

export interface Effect {
name: string,
probability: number,
duration: string
}
29 changes: 29 additions & 0 deletions src/components/Hearts.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import useBaseUrl from "@docusaurus/useBaseUrl";
import React from "react";
import calculateHalfFull from "@site/src/util/CalculateHalfFull";

export default function Hearts(props: any) {
const fullImage = useBaseUrl("/img/full_heart.png");
const halfImage = useBaseUrl("/img/half_heart.png");
let heartAmount = calculateHalfFull(props.amount);
return (
<div className={"mc_icons"}>
{props.amount} (
{Array.from({ length: heartAmount.full }).map((_, index) => (
<img
key={index}
src={fullImage}
alt={"Full Heart icon"}
/>
))}
{Array.from({ length: heartAmount.half }).map((_, index) => (
<img
key={index}
src={halfImage}
alt={"Half Heart icon"}
/>
))}
)
</div>
);
}
29 changes: 29 additions & 0 deletions src/components/Hunger.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import useBaseUrl from "@docusaurus/useBaseUrl";
import React from "react";
import calculateHalfFull from "@site/src/util/CalculateHalfFull";

export default function Hunger(props: any) {
const fullImage = useBaseUrl("/img/full_hunger.png");
const halfImage = useBaseUrl("/img/half_hunger.png");
let hungerAmount = calculateHalfFull(props.amount);
return (
<div className={"mc_icons"}>
{props.amount} (
{Array.from({ length: hungerAmount.full }).map((_, index) => (
<img
key={index}
src={fullImage}
alt={"Full Hunger icon"}
/>
))}
{Array.from({ length: hungerAmount.half }).map((_, index) => (
<img
key={index}
src={halfImage}
alt={"Half Hunger icon"}
/>
))}
)
</div>
);
}
3 changes: 1 addition & 2 deletions src/components/ShowcaseBlock.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from "react";
import useBaseUrl from '@docusaurus/useBaseUrl';


export default function ShowcaseBlock(props: any) {
return (
<div style={{ display: 'flex', gap: '1rem', alignItems: 'flex-start' }}>
Expand All @@ -14,7 +13,7 @@ export default function ShowcaseBlock(props: any) {
<div className="item-card__content">
<img
src={useBaseUrl('/' + props.image)}
alt={props.title}
alt={props.image}
className="item-card__image"
/>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ a.no-underline {
border-bottom: 1px solid var(--box-outline);
}

.hearts {
.mc_icons {
display: flex;
align-items: center;
gap: 1px;
flex-wrap: wrap;
max-width: 100%;
}

.hearts img {
.mc_icons img {
width: 11px;
height: 11px;
}
Expand Down
2 changes: 2 additions & 0 deletions src/pages/index-content.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import Card from "../components/Card.tsx";
linkTitle="Learn More"
/>
</div>
{/* TODO readd once needed
<div className="col category">
<Card
title="Tessera"
Expand All @@ -53,6 +54,7 @@ import Card from "../components/Card.tsx";
linkTitle="Learn More"
/>
</div>
*/}
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function Home(): ReactNode {
return (
<Layout
title={`${siteConfig.title}`}
description="Description will go into a meta tag in <head />">
description="The offical Wiki for the Mosaic Modding Team">
<HomepageHeader/>
<div className={clsx(styles.introduction)}>
<IndexContent/>
Expand Down
5 changes: 5 additions & 0 deletions src/util/CalculateHalfFull.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default function calculateHalfFull(count: number) {
const full = Math.floor(count / 2);
const half = count % 2;
return { full, half };
}
Binary file added static/img/bug_meat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/builtin_retextures.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/cooked_bug_meat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/full_hunger.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/half_hunger.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/jungle_spider.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/lanternfish.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/mauled.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed static/img/mauled.png
Binary file not shown.
Binary file added static/img/piranha.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/img/venom_vials.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion sullysmod/about.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Sully's Mod - About
sidebar_position: 0
---

Sully’s Mod started out a few years ago when I decided to try and make a minecraft mod. I couldn’t think of a name and called it the first name that came to my head as a placeholder “Sully”, the name stuck and now people think my name is actually Sully.
Expand All @@ -8,4 +9,4 @@ I decided to completely revamp the mod, completely dumping the MCreator version
With each feature I try to think it out as well as I can, making sure the feature is well-balanced, feels fun to play with and overall just feels like something new. It tries it’s best to feel like a Minecraft update full of random features.
The mod is planned to have features for every player, explorers, builders and redstone engineers.

All the features are put into different categories that can be toggled on or off. The wiki uses these categories as an orientation.
The features of this mod are sorted into different categories. This wiki is structured based on these categories.
3 changes: 3 additions & 0 deletions sullysmod/amber.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Amber
sidebar_position: 7
---
import ShowcaseBlock from "../src/components/ShowcaseBlock";

Expand All @@ -19,6 +20,8 @@ In melting state any entity slowly sinks into the block. The rest of the block's
Regular **Amber** also slows down entities, but when the entity is fully covered, it will freeze the entity inside it and will stop melting.
Breaking any of amber blocks that are responsible for keeping the entity frozen, will cause the other responsible blocks to break as well and will free the entity.

[Showcase: Freezing Mobs in Amber](https://youtu.be/BZxX0lL_ZLc)

## Producing Amber
Since breaking Amber blocks drops **Rough Amber**, there has to be a different way to get more of the regular transparent **Amber**.
To do that you can place an amber block above a cauldron and set it in melting state. Then it will start sweating amber drops, that slowly fill the cauldron.
Expand Down
3 changes: 0 additions & 3 deletions sullysmod/amber/_category_.json

This file was deleted.

3 changes: 2 additions & 1 deletion sullysmod/artifacts/_category_.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"label": "Artifacts"
"label": "Artifacts",
"position": 8
}
3 changes: 3 additions & 0 deletions sullysmod/artifacts/ancient_skulls.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Ancient Skulls
---
Loading
Loading