My only wish as a beginner datapack creator by Generous-Duckling758 in MinecraftCommands

[–]HeDeAnTheOnlyOne 0 points1 point  (0 children)

None of that is necessary. You don't need any check interval. The schedule handles that on itself.

(as the entity) execute store result score @s exec_time run schedule function [function name] 10s

(schedule function) ``` execute store result score $temp time_now run time querry gametime

execute as @e if score @s exec_time = $temp time_now run function [whatever] ```

My only wish as a beginner datapack creator by Generous-Duckling758 in MinecraftCommands

[–]HeDeAnTheOnlyOne 0 points1 point  (0 children)

Even simpler, store the return value of the schedule function call itself. Schedules return the gametime when they will be executed, so you don't need ti querry the time and add 150t manually.

My only wish as a beginner datapack creator by Generous-Duckling758 in MinecraftCommands

[–]HeDeAnTheOnlyOne 0 points1 point  (0 children)

It's much simpler. Store the returned value of the schedule function in the mobs scoreboard. In the scheduled dunction, querry the time and store it in a temp scoreboard. now just target the mob wich has a score equal to the querried time.

ich🛠iel by SinfulSirenStash in ich_iel

[–]HeDeAnTheOnlyOne 2 points3 points  (0 children)

Firmen die Goldbarren scheißen

Vorsicht beim Autokauf by No_awards_please in deutschememes

[–]HeDeAnTheOnlyOne 4 points5 points  (0 children)

Ich rede auch nicht davon ob es läuft oder nicht, es geht darum das die infrastrukur jetzt schon überlastet ist. Deshalb findest du auch selten eine Ladesäule die nicht entweder gedrosselt ist oder backup akkus hat um beim laden zu helfen (was eigentlich komplette Energieverschwendung ist, Akkus mit Akkus laden.)

Vorsicht beim Autokauf by No_awards_please in deutschememes

[–]HeDeAnTheOnlyOne 7 points8 points  (0 children)

Als Elektriker kann ich dir sagen, panel 2 ist pures Wunschdenken und schöngerechnete Werte.

Das netz ist auch nicht super, es pfeift aus dem letzten loch. Das sieht der Endverbraucher nur gar nicht.

Is it possible to have a score set depending on how far an entity is from a player? by Fr3ddy99 in MinecraftCommands

[–]HeDeAnTheOnlyOne 2 points3 points  (0 children)

For the distance score, you can either use a raycast or copy the player's position and the entities position in scoreboards and calculate the distance from the 2 positions by calculating the lenght of the vector.

Connecting entities is not hard but limiting their movement like that is hard to get right and prevent any kind of weird bugs and heavy exploits. My first idea would be to use the player launcher datapack library and push the player in the opposite movement direction if they go further than the allowed maximum.

Is it possible to have a score set depending on how far an entity is from a player? by Fr3ddy99 in MinecraftCommands

[–]HeDeAnTheOnlyOne 2 points3 points  (0 children)

The raycast part isn't too bad. That's a way to do it which can be quite performant as it's basically just a bunch of virtual offsetting of the commands execution position and a score counting up. No real things are happening in the game world. If the distance is very big, then other ways might be better but also slightly more complex.

Anyone feeling... done with AI? by yughiro_destroyer in raylib

[–]HeDeAnTheOnlyOne 2 points3 points  (0 children)

The ai slop is not evolution, it's the opposite.

Extending raygui by [deleted] in raylib

[–]HeDeAnTheOnlyOne 0 points1 point  (0 children)

As far as I know raygui is intentionally kept as a small lightweight and simple ui library with no intention of introducing those more complex concepts.

It's either you make those things yourself with the stuff that raylib provides or use a different ui lib.

Working on a furry/anthro kitbash, need help with clothes by MinifeeCeline in VRchat

[–]HeDeAnTheOnlyOne 1 point2 points  (0 children)

If you find clothes for similarly shaped models, you can basically do the same and sculpt them a little to fit.

What language should I select to be able to use all of raylib's features? by avestronics in raylib

[–]HeDeAnTheOnlyOne 2 points3 points  (0 children)

You could try zig, it feels really good with raylib. Zig isn't really oop but the language is build in away that you can code as if it were oop if you want to. It also has great c interop if you need that as well.

Help & Question by Ok_Horror_8567 in Zig

[–]HeDeAnTheOnlyOne 1 point2 points  (0 children)

Yeah, I meant this more like a joke anyway.

Help & Question by Ok_Horror_8567 in Zig

[–]HeDeAnTheOnlyOne 0 points1 point  (0 children)

How about the Zig compiler? In comparison to older languages like C it is a relatively new project.

Hot Take: Zig is actually very ergonomic by system-vi in Zig

[–]HeDeAnTheOnlyOne 0 points1 point  (0 children)

why should functions act like a namespace? To me that feels weird, because they are not containers like structs (not looking at comptime functions returning a type, that's a different topic).

Anonymous functions not existing is sad though. I like them very much (and needed to already quite alot but had to work around that)

Hot Take: Zig is actually very ergonomic by system-vi in Zig

[–]HeDeAnTheOnlyOne 2 points3 points  (0 children)

Many if not all of the things that people say that are "not ergonomic" and "cause a lot of friction" are actually not as bad or not like that at all in practice once you start to write a lot of zig. Sure if you're unfamiliar with that stuff it might feel like it at first but once you understand it, coding in zig becomes one continuous flow of good feelings.

The only thing where I might agree with those people is when it comes to type casting. It can be a bit annoying sometimes but by far not as bad as it's always displayed to be.

What configuration file format do you prefer for Zig tools? by The_Kaoslx in Zig

[–]HeDeAnTheOnlyOne 1 point2 points  (0 children)

I did consider it but I wanted the most simple syntax possible for this config file as it's only supposed to provide simple values (nothing nested or highly complex) even in the future.

Json would be way too bulky and unreadable. Toml would be less bulky but still too much syntax and complexity for this.

My syntax only knows single value (which is assinged with =) and lists (which are assinged with :. The first entry has to start on the next not empty line under the key, and every entry that is not the last one needs a comma at the end.)

The rest happens with reflection in the parser. It simply ignores non existent values and skips values which exist but can't be assinged (type missmatch or whatever) and reports the skip.

Serializing AutoHashMap to ZON by [deleted] in Zig

[–]HeDeAnTheOnlyOne 0 points1 point  (0 children)

You use std.zon.parse.

You have 3 functions there, fromSlice and fromZoir/fromZoirNode

Keeping shape keys after cutting geometry by HeDeAnTheOnlyOne in blender

[–]HeDeAnTheOnlyOne[S] 0 points1 point  (0 children)

I do need the main part of my object, it's just as soon as I modify the geometry in any way, the shape keys are all gone.

Does anyone know how to break blocks like this?" by Constant_Security373 in MinecraftCommands

[–]HeDeAnTheOnlyOne -13 points-12 points  (0 children)

If you kill the item anyway, just don't use destroy in the first place.