#Plot system

1 messages · Page 1 of 1 (latest)

acoustic owl
#

?free work

restive zodiacBOT
#
Free Work

If you want an addon made for you for free, you're most likely out of luck. The best thing you can do is watch tutorials and read guides so you can learn how to develop it yourself.

People won't work for free, but you can always offer to pay them to make something for you.

pseudo timber
acoustic owl
#

welp gl

empty sundial
#

lmao

pseudo timber
willow narwhal
#

bruh

wintry badge
#

bruh

broken fox
#

bruh

empty sundial
#

bruh

frosty sluice
#

heres a start

import { world } from "@minecraft/server"```
frosty sluice
pseudo timber
frosty sluice
#

do u have a android?

pseudo timber
frosty sluice
#

welp

#

thats tough

pseudo timber
#

yea…..

frosty sluice
#

then just get a pc lol

pseudo timber
#

Someone made me a plot system but it don’t work somehow

pseudo timber
frosty sluice
#

ok

empty sundial
restive zodiacBOT
#
Finding a Team or Dev

This discord isn't suited for finding or offering paid work. We can't moderate these transactions, so we ask that you move to a more suitable place.

For a casual discord community, consider joining Skill Share: https://discord.gg/sZ7fkcN.

For more long-term contracts, consider visiting Bucket of Crabs: https://www.bucketofcrabs.net/

astral pier
#

just go around dming people who are good at script api

#

ask if they do commissions

#

then boom

pseudo timber
#

💥

#

Lol

#

I manly just need someone to fix third plot system that Someone made me

frosty sluice
#

can u paste the mcpack file in here?

pseudo timber
#

Uhhh

#

This work?

frosty sluice
#

ok

#

import { Vector, system, world } from "@minecraft/server";
//@ts-ignore
import {Database} from './database.js'

const database = new Database("PlotDatabase")
const dB = database.all

const cost = 750
const plotsPerRow = 6
const plotsPerColumn = 10
const zOffset = 20
const xOffset = 20

const startingPosition = new Vector(1050, 100, 948)

export function purchasePlot(player) {
    if (getScore(player, "Money") < cost) {
        player.removeTag("plot_purchased")
        player.sendMessage("§cYou don't have enough money to purchase a plot!")
        return
    }
    const currentPlot = dB["currentPlot"] ?? 0
    const x = startingPosition.x + (currentPlot % plotsPerRow) * xOffset
    const z = startingPosition.z + Math.floor(currentPlot / plotsPerColumn) * zOffset
    const plotLocation = new Vector(x, startingPosition.y, z)
    player.teleport(plotLocation, player.dimension, player.getRotation().x, player.getRotation().y)
    dB["currentPlot"] = currentPlot + 1
}


system.runInterval(() => {
    for (const player of world.getPlayers()) {
        if (!player.hasTag("plot_purchased")) continue
        purchasePlot(player)
    }
})

let cache = {};
export function getScore(player, objective) {
    try {
        const obj = cache[objective] ??= world.scoreboard.getObjective(objective);
        return typeof player === "string" ? obj.getParticipants().find(x => x.displayName === player)?.score : obj.getScore(player.scoreboard);
    } catch {
        return 0;
    }
}

const overworld = world.getDimension("overworld");

novel copperBOT
#
No Errors

No errors in [code](#1109733779246940161 message)

astral pier
#

how exactly is it broken? @pseudo timber

pseudo timber
frosty sluice
#

look in #debug-playground

#

thats how its broken

empty sundial
pseudo timber
#

Lol yeaaaa idk how it’s broken tho

frosty sluice
pseudo timber
frosty sluice
#

yea

pseudo timber
#

Welp

#

I wouldn’t even know where to start

frosty sluice
#

well look at it

pseudo timber
frosty sluice
#

i fixed it

#

so pay up

pseudo timber
#

Huh?

frosty sluice
#

i fixed it

#

jk u dont have to pay

pseudo timber
#

I mean I can get like 4$

#

Lmaoo

frosty sluice
#

it should be fixed now

#

i made some edits in there lol

pseudo timber
#

Tysm

#

Fr tyyyy

frosty sluice
pseudo timber
frosty sluice
#

ok

pseudo timber
# frosty sluice ok

When I add the tag to myself “plot_purchased” it doesn’t do anything?

frosty sluice
#

oh

pseudo timber
frosty sluice
#

idk

#

it should be right

astral pier
#

clearly not

frosty sluice
#

its not so clear

pseudo timber
#

Lol well nothing is happening

frosty sluice
#

welp someone else can have a try at it

#

cause im doing my own thing

#

rn

pseudo timber
#

It’s okay ty for trynna help

frosty sluice
#

yw

pseudo timber
# frosty sluice yw

So uh it tps me when I add the tag but it keep tping me over and over again and it Doesn’t take my money

frosty sluice
#

uhhh

pseudo timber
orchid cosmos