#External Database
1 messages · Page 1 of 1 (latest)
Using http?
tutorial pls
On how to use http?
cool
Try this example: ```js
import { world, system } from '@minecraft/server';
import { HttpRequestMethod, HttpRequest, http } from '@minecraft/server-net';
system.runInterval(async () => {
const req = new HttpRequest("https://raw.githubusercontent.com/defowler2005/defow-script-API/main/behaviour/HTML/text.txt");
req.method = HttpRequestMethod.Get;
const result = await http.request(req)
world.sendMessage(result.body)
}, 20);
@minecraft/server-net works on realms?
I do not know
its not
No
rip, i whanted it to work on realms to use mongodb
Mm, nope not possible. Unless you connect it by bot, or websocket (bot is better tho)
Might be a good time to switch to server
by bot u mean bedrock-protocol?
yeah. i have one that did pretty good, but its not as reliable as an add-on or sidecar-server
hopefuly minecraft provides custom databases that han be accessed by anyone with a password that can only be changed by the owner of the realm or world
they do
dynamic properties are basically databases
Yes
😮
?
not really
is this available for use? the docs seem to imply its pretty rough at the moment
they are
You can use them although I don't like using them
I prefer scoreboard dbs
yeah it removes the stuff when u restart the pack tho
It shouldn't happen if you don't change the UUID of the pack.
Just increment the version.
what about realms
if u reapply a pack
It should stay right?
even then you can just backup data into a scoreboard if u like
just in case
Yes, it should. Changing the UUID tells the software that it's a new pack entirely. Increasing the version tells it that the pack is the same but potentially includes changes.
yeah so if they want a new pack for some reason just make it so it backs up the data to scoreboard every minute or 2
then if it can’t find data in dynamic properties just apply it
Don't need a new pack. Just increase the version in the manifest.
actually for servers it would be alright because u can reload
what
you wish it did
but it doesn't, the size is overall
for all packs, it's shared
scoreboard database are not that reliable, are very easy to damage and subject to pseudoplayer name resizing over time (from mojang)
bro what?
?
scoreboard databases are perfectly ok
anyone with commands or hacks can damage them tho