#Plot system
1 messages · Page 1 of 1 (latest)
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.
I’m taking my chances
welp gl
lmao
😁
bruh
bruh
bruh
bruh
heres a start
import { world } from "@minecraft/server"```
Bruh?
lmao
just go off of that then make it
What a great start I don’t have a laptop or a pc and I have nowhere to even start to coding lol
do u have a android?
No iOS
yea…..
then just get a pc lol
Someone made me a plot system but it don’t work somehow
I would much rather pay people to make it
ok
?paid work
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/
just go around dming people who are good at script api
ask if they do commissions
then boom
can u paste the mcpack file in here?
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");
No errors in [code](#1109733779246940161 message)
how exactly is it broken? @pseudo timber
It’s not really broken it just don’t work
thats the definition of broken lmao
Lol yeaaaa idk how it’s broken tho
bro look in #debug-playground thats how
Oh damn that’s a lot
yea
well look at it
I did
Huh?
does it work?
Uhh I’ll test it rn
ok
When I add the tag to myself “plot_purchased” it doesn’t do anything?
oh
Am I doing it wrong?
clearly not
its not so clear
Lol well nothing is happening
It’s okay ty for trynna help
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
uhhh
Could you dm me for a sec?
what happened to the plot system i fixed for you, it didn't work?