#Setup M4TCHBOX

1 messages · Page 1 of 1 (latest)

burnt pumice
#

I want to a m4tchbox server with my friends , if u have no idea what matchbox is it's a youtube serie about murder mystery, 7 players spawns with no nametags and with random names and each player is assigned with a role

Spark - he has the abillity to right click a player with open hand and that player is marked after round finishes the marked player dies , also he has abillity to swap places with random player by pressing G
Doctor - he has abillity to save someone using right click with open hand that player is protected the entire round

I need help making the spark role and doctor i already made name tags not showing

https://www.youtube.com/watch?v=dmwAJjVQRNc

left quarry
#

But if I am right you can check if the player right clicking using the minecraft:interaction entity

burnt pumice
#

can you like explain how can i make it this work?

burnt pumice
left quarry
worn swanBOT
left quarry
#

Also, didn't you say that players just have random names, and not just have no names

#

Because you can do that too

burnt pumice
#

how?

#

plugin i think?

left quarry
#

You can give each player custom armor stand

#

Which will be small

last raven
#

If you're gonna do that just use a text display

last raven
#

You seem to be quite outdated on techniques

left quarry
#

Yea

left quarry
burnt pumice
# worn swan

I think this only detect right clicking but i want to mark a player that means right clicking someone with open hand

left quarry
#

I never really used text display

last raven
burnt pumice
#

in matchbox they use open hand

left quarry
#

BUT

last raven
last raven
#

As a data pack server, we can advise on data pack solutions

left quarry
#

U can use item that has the item component custom_model of air

burnt pumice
#

but how can i detect if i right click a player

left quarry
burnt pumice
last raven
#

You detect if the item was right clicked, and have that run a raycast to see if the user is looking at a player

#

And then have it execute something as that player

burnt pumice
last raven
#

Welcome to data packs

left quarry
last raven
#

It's really not that bad though

left quarry
burnt pumice
#

how can i make raycasting?

#
# function matchbox:spark_mark
execute as @a[scores={role=1}] at @s run scoreboard players set @e[type=player,distance=..3,sort=nearest,limit=1] marked 1
execute as @a[scores={role=1}] at @s run tellraw @s {"text":"You marked a player!","color":"red"}
#

does this work??

worn swanBOT
burnt pumice
#

(it's made with AI btw)

worn swanBOT
burnt pumice
#

😭

#

so that means i can't make this work

last raven
#

That's not true, you just need to do the work yourself

burnt pumice
#

i have no idea on how to make this work

last raven
#

Fortunately that's what this server is for

burnt pumice
#

I want to ask you on helping me make this but i don't want to waste ur time

last raven
#

We're here specifically to help, and are happy to do so. What we we're not here to do is make the pack for you; you need to make an effort, and ask for help when you get stuck

last raven
#

You've been directed to several resources now to do the things you want to do, so I recommend looking at them, and getting started trying to implement them into your pack. If it doesn't work, then you can show your work here and we can help pinpoint why and tell you what to change

burnt pumice
#

one question what do u use to code datapacks

#

visual studio code?

left quarry
#

@burnt pumice if you want you can use any item with item component custom_model and model of air, and with the component food or consumable (I don't know on what MC version you are), and then make an advancement that activates when you are consuming that specific item, and as "reward" for the advancement function that revokes that advancement, gives you that item, and gives tag to player that is in the direction you're looking using ^ ^ ^1 and you just give the tag you want to the player that is there (if you have there a player)

left quarry
#

If you want

left quarry
burnt pumice
#

could u atleast make a simple code to make the mark working?

#

because i can't seem to understand raycasting

left quarry
#

I could try

burnt pumice
left quarry
left quarry
#

But I can try tomorrow

burnt pumice
#

wait can i use mod to make this work?

left quarry
burnt pumice
#

swapping marking protecting voting

left quarry
#

But I don't know modding

#

It's DataPacks server

ocean glacier
#

You can do most of this with datapacks, but it's quite complex and keybinds are unfortunately off the table unless you get really, really creative ^^