mirror of
https://github.com/Motschen/midnightdust-eu.git
synced 2025-12-18 03:15:09 +01:00
Create a wiki for PictureSign
This commit is contained in:
@@ -10,8 +10,8 @@ import Counter from '../components/Counter.astro'
|
||||
<div class="container">
|
||||
<h2 class="mb-16 text-6xl">Statistics</h2>
|
||||
<div class="grid grid-cols-1 gap-12 sm:grid-cols-2 md:grid-cols-3">
|
||||
<Counter icon="ion:star" count="484+" title="Stars in Total" sub="On GitHub" />
|
||||
<Counter icon="ion:download" count="61.000.000+" title="Total Downloads" sub="Modrinth & CurseForge" />
|
||||
<Counter icon="ion:star" count="572+" title="Stars in Total" sub="On GitHub" />
|
||||
<Counter icon="ion:download" count="78.000.000+" title="Total Downloads" sub="Modrinth & CurseForge" />
|
||||
<Counter icon="ion:code-slash" count="5+" title="Years" sub="Development experience" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -6,7 +6,7 @@ title: MidnightLib Wiki
|
||||
import VersionDropdown from '../../components/VersionDropdown.astro'
|
||||
import { Icon } from 'astro-icon/components'
|
||||
import { Notification } from 'accessible-astro-components'
|
||||
import { resultingVersion } from '../../js/modversion.js'
|
||||
import { getResultingVersion } from '../../js/modversion.js'
|
||||
|
||||
# MidnightLib Wiki
|
||||
|
||||
@@ -33,7 +33,7 @@ dependencies {
|
||||
```
|
||||
### `gradle.properties`
|
||||
<VersionDropdown></VersionDropdown>
|
||||
{<pre><code className="language-java">midnightlib_version = {resultingVersion}</code></pre>}
|
||||
{<pre><code className="language-java">midnightlib_version = {getResultingVersion()}</code></pre>}
|
||||
|
||||
<Notification type="info">
|
||||
<Icon name="ion:information-circle-outline" />
|
||||
@@ -119,4 +119,13 @@ If you don't use the whole library and therefore not the automatic ModMenu integ
|
||||
public ConfigScreenFactory<?> getModConfigScreenFactory() {
|
||||
return parent -> MidnightConfig.getScreen(parent, "modid");
|
||||
}`
|
||||
```
|
||||
```
|
||||
|
||||
<script>
|
||||
import Alpine from "alpinejs";
|
||||
|
||||
document.addEventListener('alpine:init', () => {
|
||||
//Alpine.data('versionSelection', () => ({
|
||||
//}))
|
||||
})
|
||||
</script>
|
||||
72
src/pages/wiki/picturesign.mdx
Normal file
72
src/pages/wiki/picturesign.mdx
Normal file
@@ -0,0 +1,72 @@
|
||||
---
|
||||
layout: ../../layouts/MarkdownLayout.astro
|
||||
title: PictureSign Wiki
|
||||
---
|
||||
|
||||
import { Icon } from 'astro-icon/components'
|
||||
import { Notification } from 'accessible-astro-components'
|
||||
|
||||
# PictureSign Wiki
|
||||
|
||||
Welcome to the PictureSign wiki.
|
||||
This documentation aims to help you make your world come alive using signs.
|
||||
|
||||
Explore PictureSign's features on this page:
|
||||
[Get to know the features](/picturesign)
|
||||
|
||||
### Placing a picture
|
||||
This mod works using signs to store picture information, making it 100% client-sided – the mod works on every server!
|
||||
To start, place a picture and click on the icon in the bottom-right.
|
||||
Great! You have now opened the helper interface. Here, you can add a URL to your desired media and customize various options!
|
||||
<center><img alt="An image of the PictureSign helper interface" src="/picturesign/helper-gui.webp" width="900"></img></center>
|
||||
<p class="text-center italic">An image of the PictureSign helper interface</p>
|
||||
|
||||
### Using GIFs, video and audio
|
||||
To use the Multimedia capabilities of this mod, first make sure you have installed the [WATERMeDIA](https://modrinth.com/mod/watermedia) mod, as well as [VLC media player](https://www.videolan.org/vlc/) on your system.
|
||||
These components allow the video and audio support of PictureSign to work properly.
|
||||
GIF support does not neccessarily need VLC, just WATERMeDIA.
|
||||
|
||||
### Setting up pictures
|
||||
Pictures can come from various sources:
|
||||
- Websites (Recommended): [Imgur](https://imgur.com/), [ImgBB](https://ibb.co/), [PictShare](https://pictshare.net/), [Freeimage](https://iili.io/)
|
||||
- Only these websites will work by default. This is a security measure.
|
||||
- Resourcepack Textures: Use prefix <span class="bg-clip-text text-transparent bg-gradient-to-r from-green-500 to-blue-500 font-mono">rp:</span> (".png" is optional)
|
||||
- Texture from Vanilla: e.g. "rp:textures/block/diamond_block.png"
|
||||
- Texture from a Mod: e.g. "rp:picturesign:textures/gui/sprites/icon/picturesign"
|
||||
- Local files: Use prefix <span class="bg-clip-text text-transparent bg-gradient-to-r from-green-500 to-blue-500 font-mono">file:</span>
|
||||
- File in your Minecraft folder: e.g. "file:./config/picturesign/image.png"
|
||||
- File on your Hard drive: e.g. "file:C:/Users/Motschen/Pictures/image.png" (Windows) or "file:/home/motschen/Pictures/image.png" (Linux/MacOS)
|
||||
|
||||
<Notification type="info">
|
||||
<Icon name="ion:information-circle-outline" />
|
||||
<p>
|
||||
<strong>Info:</strong> Avoid using local files to load pictures.
|
||||
They will not be visible by other players, exept if their instance also includes the files.
|
||||
</p>
|
||||
</Notification>
|
||||
|
||||
### Setting up GIFs
|
||||
GIFs can currently only come from one source:
|
||||
- Websites: [Imgur](https://imgur.com/), [Tenor](https://tenor.com/)
|
||||
- Only these websites will work by default. This is a security measure.
|
||||
|
||||
### Setting up videos and audios
|
||||
Multimedia can currently only come from one source:
|
||||
- Websites: [YouTube](https://youtube.com/), [Vimeo](https://vimeo.com/)
|
||||
- Only these websites will work by default. This is a security measure.
|
||||
|
||||
### (Advanced) Changing multimedia properties via JSON
|
||||
You can specify a volume as well as setting custom start and end times for multimedia using json files.
|
||||
An example JSON would look like this:
|
||||
```json
|
||||
{
|
||||
"url": "https://youtu.be/dQw4w9WgXcQ",
|
||||
"volume": "100",
|
||||
"start_at": "0:18",
|
||||
"end_at": "1:00"
|
||||
}
|
||||
```
|
||||
|
||||
Upload your JSON file to one of the following sources:
|
||||
- Websites: [GitHub](https://github.com/), [GitHub Gists](https://gist.github.com/), [JSON Keeper](https://www.jsonkeeper.com/), [n:point](https://npoint.io/), [JSONsilo](https://jsonsilo.com/)
|
||||
- Only these websites will work by default. This is a security measure.
|
||||
Reference in New Issue
Block a user