4

Can datapack give virus or hack my computer?

PK Is Comrade's Avatar PK Is Comrade4/14/22 6:13 pm
4 emeralds 1.1k 14
4/20/2022 5:56 pm
qerzy's Avatar qerzy
var spector;
var captureOnLoad = false;
var captureOffScreen = false;
window.__SPECTOR_Canvases = [];

(function() {
var __SPECTOR_Origin_EXTENSION_GetContext = HTMLCanvasElement.prototype.getContext;
HTMLCanvasElement.prototype.__SPECTOR_Origin_EXTENSION_GetContext = __SPECTOR_Origin_EXTENSION_GetContext;

if (typeof OffscreenCanvas !== 'undefined') {
var __SPECTOR_Origin_EXTENSION_OffscreenGetContext = OffscreenCanvas.prototype.getContext;
OffscreenCanvas.prototype.__SPECTOR_Origin_EXTENSION_OffscreenGetContext = __SPECTOR_Origin_EXTENSION_OffscreenGetContext;

OffscreenCanvas.prototype.getContext = function () {
var context = null;
if (!arguments.length) {
return context;
}

if (arguments.length === 1) {
context = this.__SPECTOR_Origin_EXTENSION_OffscreenGetContext(arguments[​0]);
if (context === null) {
return context;
}
}
else if (arguments.length === 2) {
context = this.__SPECTOR_Origin_EXTENSION_OffscreenGetContext(arguments[​0], arguments[​1]);
if (context === null) {
return context;
}
}

var contextNames = ["webgl", "experimental-webgl", "webgl2", "experimental-webgl2"];
if (contextNames.indexOf(arguments[​0]) !== -1) {
// context.canvas.setAttribute("__spector_context_type", arguments[​0]);
// Notify the page a canvas is available.
var myEvent = new CustomEvent("SpectorWebGLCanvasAvailableEvent");
document.dispatchEvent(myEvent);
this.id = "Offscreen";
window.__SPECTOR_Canvases.push(this);

if (captureOnLoad) {
// Ensures canvas is in the dom to capture the one we are currently tracking.
if (false) {
spector.captureContext(context, 500, false, false);
captureOnLoad = false;
}
}
}

return context;
}
}

HTMLCanvasElement.prototype.getContext = function () {
var context = null;
if (!arguments.length) {
return context;
}

if (arguments.length === 1) {
context = this.__SPECTOR_Origin_EXTENSION_GetContext(arguments[​0]);
if (context === null) {
return context;
}
}
else if (arguments.length === 2) {
context = this.__SPECTOR_Origin_EXTENSION_GetContext(arguments[​0], arguments[​1]);
if (context === null) {
return context;
}
}

var contextNames = ["webgl", "experimental-webgl", "webgl2", "experimental-webgl2"];
if (contextNames.indexOf(arguments[​0]) !== -1) {
context.canvas.setAttribute("__spector_context_type", arguments[​0]);
// Notify the page a canvas is available.
var myEvent = new CustomEvent("SpectorWebGLCanvasAvailableEvent");
document.dispatchEvent(myEvent);

if (captureOffScreen) {
var found = false;
for (var i = 0; i < window.__SPECTOR_Canvases.length; i++) {
if (window.__SPECTOR_Canvases[​i] === this) {
found = true;
break;
}
}
if (!found) {
window.__SPECTOR_Canvases.push(this);
}
}

if (captureOnLoad) {
// Ensures canvas is in the dom to capture the one we are currently tracking.
if (this.parentElement || false) {
spector.captureContext(context, 500, false, false);
captureOnLoad = false;
}
}
}

return context;
}
})()Hello, comrades.

I have question and that is if datapack can hack my computer using json, or other files, delete or modify my personal files or system files, or hack my computer or exploit my computer, please tell me if minecraft datapacks are 100% safe or if can any datapack hack my computer.

I'am using: Windows 11, Amd x64 and Minecraft Java Edition
Posted by PK Is Comrade's Avatar
PK Is Comrade
Level 1 : New Miner
0

Create an account or sign in to comment.

14

One_Nose
04/20/2022 8:14 am
Level 58 : Grandmaster Hero
One_Nose's Avatar
All data packs are completely safe and can never harm your computer or your privacy, as long as you install them the right way (for example as shown here) and don't open any suspicious files in them. They can, however, ruin your minecraft world, and therefore it's always a good idea to make a backup.

Data packs can, potentially, crash your game, but even then it will work just fine the next time you open it, and even if your Minecraft world stopped working, restoring the backup will return everything to normal.
2
rotgruengelb
04/20/2022 4:58 am
Level 46 : Master Answer
rotgruengelb's Avatar
A virus can disguise as a data pack in theory, but then it isn't a data pack anymore!
1
qerzy
04/14/2022 10:19 pm
Level 43 : Master Wolf Whisperer
qerzy's Avatar
Omg, Its called a "Mineraft Datapack" for a reason... it wont hack ur computer

but...
Lag might kill your computer
You might destroy Minecraft
Your computer wont be hacked but it will go boom
1
Echo4Al8RexCoco
04/20/2022 8:20 am
Level 29 : Expert Musician
Echo4Al8RexCoco's Avatar
Settle down my guy
1
qerzy
04/20/2022 5:56 pm
Level 43 : Master Wolf Whisperer
qerzy's Avatar
no
1
garlicbreathinator
04/14/2022 10:12 pm
Level 31 : Artisan Engineer
garlicbreathinator's Avatar
Datapacks store information for Minecraft to use, they can not do anything except provide Minecraft with recipes, loot tables, commandblock functions, etc. and are entirely contained within a world. The worst thing a datapack can do is destroy parts of your world or try to lag the game to the point the world can not run. Theoretically, you may be able to put too many written book items or entities or something in a chunk and make it unable to saved to disc.

TLDR: No. It can certainly crash or destroy your world, so when you try a new one for the first time make sure you back up your world. Many datapacks are not compatible with each other, if you do that ALWAYS back up your world unless you have tried them together before.
3
Echo4Al8RexCoco
04/20/2022 8:19 am
Level 29 : Expert Musician
Echo4Al8RexCoco's Avatar
Listen to the man who knows stuff :)
1
user_of_the_name
04/14/2022 8:35 pm
Level 26 : Expert Pixel Painter
user_of_the_name's Avatar
They won't hack your computer, but they are capable of destroying a minecraft world
3
qerzy
04/14/2022 10:18 pm
Level 43 : Master Wolf Whisperer
qerzy's Avatar
lol
1
Hardcrafter
04/14/2022 7:07 pm
Level 43 : Master Wolf
Hardcrafter's Avatar
Unless what you downloaded wasn't actually a datapack, then it should be safe to use.

Datapacks only affect Minecraft, or more specifically one world that you install the datapacks to.
3
Luish54
04/14/2022 6:54 pm
Level 44 : Master Engineer
Luish54's Avatar
That's impossible. Data packs can only interact with the Minecraft world itself and cannot modify anything external to it.

JSON files are completely safe files, the only thing they can do is modify the advancements, recipes, loots and a few other things in the world and with many limitations. This is the biggest feature that differentiates data packs from mods, their thousands of limitations.

Sorry for my english.
3
Veillax
04/14/2022 6:29 pm
Level 32 : Artisan Dragon
Veillax's Avatar
Datapacks should only be able to interact with minecraft itself and shouldn't be able to interact with system files or install anything. I don't know for sure but that's all the help I can give.
2
CreamBunny
04/14/2022 6:28 pm
Level 67 : High Grandmaster Sus
CreamBunny's Avatar
I don't really think any datapack should be able to do something like that. Why are you asking that anyway? Has anything happened to you from using it?
1
CreamBunny
04/14/2022 6:31 pm
Level 67 : High Grandmaster Sus
CreamBunny's Avatar
Adding to this; datapacks should be able to only do stuff inside of Minecraft, not outside. Or that's what my logic tells me, since I don't think Mojang would let them do stuff outside of mc for safety reasons. I don't know anything about datapacks anyway, but that's what I'm assuming
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome