#Creating my first ever thing with CMDs
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
💬 While you wait, take this time to provide more context and details.
🙇 If nobody has answered you by <t:1747491555:t>, feel free to use the Summon Helpers button to ping our helper team.
✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve
You can simply add a scoreboard with the deaths objective and it does that automatically.
in the datapack
In your load function
so load.json?
if you want to display it as well, you need 2 commands.
the load.json is only the function tag that tells minecraft which functions are the load functions.
tags are basically a list of id's
in this directory
View this guide on datapack.wiki: https://datapack.wiki/guide/getting-started/
wait u can make discs using datapacks?
i wanted to make that but i thought it was modded only
i guess if this is correct from the tutorial
i put in it like this
/scoreboard objectives add death deathCount {"Text":"Death Count"}
wait is it a json or mcfunction the load one
wait
uh
fine i used the extention it help me generate the starting folders
data/namespace/function/load.mcfunction
.
make a folder in minecraft called tags then inside of that a folder called function
and put your tick.json and load.json there
oh damn i forgot it did that
ill keep the template just incase next time i wanna do it
ok
done now where do i init the scoreboard
load.mcfunction
resolve question 👆
you can make it visible with scoreboard objectives setdisplay sidebar death
load?
you can put it in the load function if you want
I just said that
well here is the thing the load doesnt work for some reason
is your minecraft folder like this?
when i do /reload it no wwork
holdd
what does the log say
make a folder inside of tags
called function
and put your load.json and tick.json there
i already said that 😔
if u want i can show it it over VC
now there it is
it works
i put it in functions not function
bro this game
is there a way to remove the display an reput it cause i wanna reload its colors
hmm
scoreboard objectives modify
this does that iirc
(with the correct sub commands and arguments of course)
wait what is even IIRC
if i remember correctly
but its weird when i try the & colors
you don't use & colors
✅
or that
yes
i guess i used this
you removed the death when you reloaded and made a new one with those colors
ye i wanna like update display not reset the count
i killedd my self it works fine but i wanna not reset it when i reload
like just reload the display
remove the scoreboard objectives remove death in your load.mcfunction
i remove the old one and add a new one
yeah and how do i reset the display
reset display to what?
i wanna reset how the display looks if i wanna change its color
modify it
what should i modify it with
the modify sub command
the display name
so like this
instead of making it with the name i make it with no name then modify the name to it?
but for the initial creation, you can just put it in the add command
it works now
nice one for my first
can i add like a skull emoji or like put text instead of int into the scoreboard like in hardcore if someone dies in a SMP the scoreboard update saying they are dead
yes
wait can i use this to check for blocks under a beacon seeing if u use netherite blocks so it runs an acheievement
just use an achivement directly
wait what
no need to do workarounds
we have a construct_beacon trigger
combine it with a location check condition and you can make it only trigger if the player used specific blocks for the construction.
wait what is the highest level for a beacon in code
like level 4 beacon should be 3?
add it to your datapack and see when it triggers
to make the advancement show up, you need a display field
otherwise it is invisible
{
"parent": "minecraft:nether/create_beacon",
"criteria": {
"beacon": {
"conditions": {
"level": 4
},
"trigger": "minecraft:construct_beacon"
}
},
"display": {
"description": {
"translate": "advancements.nether.create_full_beacon.description"
},
"frame": "goal",
"icon": {
"count": 1,
"id": "minecraft:beacon"
},
"title": {
"translate": "advancements.nether.create_full_beacon.title"
}
},
"requirements": [
[
"beacon"
]
],
"sends_telemetry_event": true
}
thats how they did it in the minecraft
but just level 4 i want with blocks
then they start counting from 1 in this instance
ye
so now after the first check what should i do
do i do it in 1 check or 2 checks
1 criteria or 2
the criteria?
what do you want to check?
full netherite beacon
like when the beacon at full power and bottom blocks are netherite
like all 4 levels
you don't add another criteria, you add a condition.
conditions use predicates to check for further things.
making the location check predicate will be tedious though.
im too dumb bro i need someone to explain in a call
You have to add every block offset from the beacom in the list and tell it which block it has to be.
can't vc rn I am busy with chores
when u gonna be not busyt
I won't be free for toda, at least.
[33m{
[32m"display"[34m: [35m{
[32m"icon"[34m: {
[32m"id"[34m: [32m"minecraft:beacon"
[34m},
[32m"title"[34m: [32m""[34m,
[32m"description"[34m: [32m""[34m,
[32m"frame"[34m: [32m"goal"[34m,
[32m"show_toast"[34m: [32mtrue[34m,
[32m"announce_to_chat"[34m: [32mtrue[34m,
[32m"hidden"[34m: [32mtrue
[35m}[34m,
[32m"parent"[34m: [32m"minecraft:nether/create_full_beacon"[34m,
[32m"criteria"[34m: [35m{}[34m,
[32m"requirements"[34m: [35m[][34m,
[32m"sends_telemetry_event"[34m: [32mtrue
[33m}
Well predicates go in data/<namespace>/predicate, but this looks like an advancement, not a predicate
they mean the location check predicate in the conditions field
it's for checking if the beacon base (all 4 levels) is made out of only netherite blocks
if any of u are free to tell me how to do it in a VC
cause im a bit dumb
also sorry for late reply cause i went to play with my friend minecraft
is this good naming i just searched who made the first ever netherite beacon
it gives 600 XP as rewards idk
cause its hard
when i add advancements i make sure its doable in survival hardcore like dont make advancements bad like "get killed"
still havent gotten the actual predicate yet so it happens when i get a full powered beacon
{
"display": {
"icon": {
"id": "minecraft:netherite_block",
"count": 1
},
"title": "Created by iJevin",
"description": "Construct a full Netherite Beacon",
"frame": "challenge",
"show_toast": true,
"announce_to_chat": true,
"hidden": true
},
"parent": "minecraft:nether/create_full_beacon",
"criteria": {
"Create_Beacon": {
"trigger": "minecraft:construct_beacon",
"conditions": {
"level": 4
}
}
},
"rewards": {
"loot": [],
"experience": 600
},
"sends_telemetry_event": true
}
you mean the requirements?
condition, not requireent
I mean I don't know how to add the thing u guys said where I need to check for each level if it has netherite