#1.20.80 cooldowns?? (resolved, for now.)
1 messages · Page 1 of 1 (latest)
update:
in here it says 1.12.0-beta is available and 1.11.0-beta isn't.
in my logs, it says the opposite.
what???
but also my script that was working around a week ago just
doesnt now
thanks, mojang
nevermind, got the help of a friend to get this to work
1.20.80 cooldowns?? (resolved, for now.)
thanks mojang for ruining the item system for literally no fucking reason tho!!!
true
may I know how you fixed it..?
😭 scripting
i deleted the on_use component in my item and then put this in my script
import { system, world } from "@minecraft/server";
world.afterEvents.itemUse.subscribe((data) => {
const Player = data.source
const Item = data.itemStack
const Cooldown = Item.getComponent("minecraft:cooldown")
if (Item.typeId === "woc:domainclash" && Cooldown.cooldownTicks == 20 && Cooldown.getCooldownTicksRemaining(Player) == 0) {
Player.runCommandAsync("scoreboard players add @s domainclash 1")
Cooldown.startCooldown(Player)
}
})```
and it worked
***(1.11.0-beta btw)***
oh wait thats just part of it hollup
i tested it on 1.10 scripts and 1.19 and it broke on both so im pretty sure it requires beta apis because it grabs the cooldown component from the item?
imma be fr tho i have barely any knowledge of scripting so don ask me bout the inner workings of this thing 😭
oh i thought u meant fixing the invisibile cooldown
yes
for some reason
replace on_use with a script
fixed the cooldown
cooldown works fine in the new update, just that the cooldown texture not showing is the problem
yea
did for me
on_use got deprecated a while back and its getting removed eventually (because mojang hates us) so i dont think its gonna get fixed my guy 😭
no way they're just gonna use item interactions
maybe replacing it with something
replacing it with custom components which i have not looked too much into
but i think they are also involved with scripting in some way
(cus mojang hates us)
fr
quick random question if you don't mind
why do addon creators not name their items in the bp json and choose to name it in the rp texts
no idea, because imma be fr i didnt even know you could name it there lmfao
Just use the use_modifiers component to activate the cooldown component lol
bridge automatically puts me on 1.16.100 and my actual caveman brain has no knowledge of any other item version so i have literally no idea what that even is lmao
So...thats a you issue not a Mojang issue then
I suggest getting up to date with the new format versions as 1.16.100 will eventually not work anymore
yea, i suppose
Its not for no reason. It literally is inproving the api
i have like 300+ items in my addons so that will be a major pain but i can try
Pain now, or pain later 🤣
true
Also, bridge auto sets to 1.16.100?
is that not a project setting?
i got 1.10.0
you probably have the HCF experiment enabled
I think that switches it
i do cus still in process of switching everything over
yeah, that's probably why it defaults to it
sorta annoying that you can't set the default format version
yea
just write your files from scratch
😭 i wish i had the patience for that
improving the api, but also making it like 5 times harder to make an item. the entire reason me and my friends got into mc coding in the first place was because we didnt have to learn any of allat javascript spaghetti code. it was simple, it worked great, anyone could do it, and now they take that away? could they not have just left the easy stuff in for the old versions, for people who dont want to learn scripting, and then put the newer scripting stuff into the newer versions? whatever their thought process here was, i really don't think it's a smart one if it causes people to straight up drop coding altogether, while their entire game is built on the concept of creativity.
holy yappatron :freddyshocked:
this is tru tho cus like
actually i was gonna use an example but its not a good one cus i think the guy i was gonna mention is also busy with irl stuff so
:JoeShrug:
ha ha no nitro
:whatthestinky:
hon?
yea
:kanye: the rot consumes
The way they're implementing it doesn't make it so you have to learn script api. Other creators who want to learn scripting can make component libraries that you can reference in your blocks/items, and it just works. Though this does mean you need to learn scripting to implement behaviors that these component libraries don't account for
what is a recommended version you would recommend using? usually the highest version has some issues for no reason.
Exactly
This may be one of the worst decisions Mojang has made regarding custom content, if they're gonna remove Holiday Creator Features at least make the items/blocks work without it, cus not everyone wants to learn scripting which can get super complicated
Its exoerimental, the only way to make it not work is to move it to stable. Only events are being removed, the components themselves are stable now
Always use the latest version
yea well my items/blocks rely on events
so what you're saying is on every update, I update all 100-200+ items to the newer version and fix their new issues
Yeah
when do you think mojang will remove the version 1.16.100 for items
Likely summer
So July
breh
literally facts
yea one of the reasons I like making content for bedrock instead of java is because of how much easier bedrock code is to understand.
Where do I put this..?
How about for the released version? I have the same issue.
released version? u mean like the non beta script versions or wha
Yeah
im pretty sure it only works on the 1.11.0-beta
1.9 and 1.10 werent working for me but im actual dogwater when it comes to scripting so maybe i screwed sm up
u can try it but im not positive itll work
Alright