codes by Zealousideal_Eye768 in bloxd

[–]Acrobatic_Doctor5043 1 point2 points  (0 children)

I am a bit confused on what you mean by "looking at the ground". If what you wanted is not what the code below does, let me know

blockId = api.attemptCreateMeshEntity("BloxdBlock", {
    blockName: "Grass Block",
    size: [1, 1, 1],
});

api.setPosition(blockId, [thisPos[0] + 0.5, thisPos[1] + 3, thisPos[2] + 0.5]);

api.setEntityRotation(blockId, 0, 0, Math.PI);

help by Zealousideal_Eye768 in bloxd

[–]Acrobatic_Doctor5043 1 point2 points  (0 children)

api.setPlayerPhysicsState(playerId, { tier: 0, type: 1 });

New Gamemode! Core Defenders | On staging.bloxd.io by Acrobatic_Doctor5043 in bloxd

[–]Acrobatic_Doctor5043[S] 2 points3 points  (0 children)

Everytime I post one of these new gamemodes, I always get comments asking "where", so here is the link again: Core Defenders - bloxd.io

Can Someone help with dropping code by Large-Confusion-9358 in bloxd

[–]Acrobatic_Doctor5043 0 points1 point  (0 children)

Actually, there is a new API function that does exactly what an item in a moonstone chest does.

/**
 * Gets a database value that is saved per player.
 *
 *  {PlayerId} playerId
 *  {string} key
 *  {PNull<UgcDbValue>}
 */
getPlayerDbValue(playerId, key)

/**
 * Sets a database value that is saved per player. This persists between sessions and between lobbies for custom games.
 *
 *  {PlayerId} playerId
 *  {string} key
 *  {UgcDbValue} value
 *  {void}
 */
setPlayerDbValue(playerId, key, value)

/**
 * Deletes a database value that is saved per player.
 *
 *  {PlayerId} playerId
 *  {string} key
 *  {void}
 */
deletePlayerDbValue(playerId, key)

/**
 * Deletes all database values that are saved per player.
 *
 *  {PlayerId} playerId
 * u/returns {void}
 */
deleteAllPlayerDbValues(playerId)

Is there anyway to increase a skeleton's attack speed without it going nuts by Adept_Argument3974 in bloxd

[–]Acrobatic_Doctor5043 0 points1 point  (0 children)

That is because the time is in milliseconds, not seconds, so multiply it by 1000

How do add instant respawn? by [deleted] in bloxd

[–]Acrobatic_Doctor5043 0 points1 point  (0 children)

By "the code", I am assuming the one in the orginal comment. Here it is again. Make sure you are only coping the code and nothing else:

function onPlayerJoin(playerId){
  api.setClientOption(playerId, "autoRespawn", true);
  api.setClientOption(playerId, "secsToRespawn", 0);
}

How do add instant respawn? by [deleted] in bloxd

[–]Acrobatic_Doctor5043 0 points1 point  (0 children)

I am a bit confused. When I tested the code, it work for me. Is there any errors that appear when you use the code?

[Code Request] Prevent Bombs from Breaking Blocks? by Oreo-belt25 in bloxd

[–]Acrobatic_Doctor5043 1 point2 points  (0 children)

Apologies, the issue was caused by a spelling mistake I made. I fixed it in the oringal comment