#server-plugins-read-only

1 messages · Page 91 of 1

viscid wren
#

Do you mean just tools in general

#

Yes

turbid carbon
#

yeah attach a command to a npc so when I click him it does something

heady cedar
steep acorn
#

Does anyone have the plugin documentation they could send me? Thanks :D

viscid wren
#

Nope, you will have to develop it

#

Just ask chatgpt to make you a npc plugin for hytale and to run a command when its clicked

#

You can even run a UI in the background

wintry basalt
#

Can someone explain asset packs? When I unzip it, will it get loaded? Are they required to be in a zip?

viscid wren
#

I made over 150 plugins with chatgpt and they work

steel rose
#

After testing some, it seems we can't use animated sprites on the HUD. When you pause they begin acting normally, though. Has anyone found a way around that? (Other than programmatically changing the texture, which gets resource intensive)

fluid cobalt
#

Can I take get() from CompletableFuture in ECS is it possible to do this after some asynchronous task?

charred fulcrum
#

Does anyone know of a mod to add floating text with images to a hub server?

glass isle
#

hi guys

#

who can send API for mods 😄 ?

#

i cant search

gentle sandal
#

yeah we also have the same problem. It seems, that you cannot upload custom mods to hytale servers at the moment. is that correct?

thorny minnow
#

Anyone know why this keeps spamming my console when running a local server?

[2026/01/20 20:47:17 SEVERE]         [World|default] Took too long to run pre-load process hook for chunk: 92ms 854us 900ns > TICK_STEP, WorldChunk{x=-33, z=-4, flags=00000000000000000000000000000100}, Hook: com.hypixel.hytale.server.core.modules.block.BlockModule$$Lambda/0x000000a3d29d5058@7c0035dd
[2026/01/20 20:47:17 SEVERE]         [World|default] Took too long to run pre-load process hook for chunk: 91ms 209us 799ns > TICK_STEP, WorldChunk{x=-33, z=-3, flags=00000000000000000000000000000100}, Hook: com.hypixel.hytale.builtin.blocktick.BlockTickPlugin$$Lambda/0x000000a3d29091a0@795131d6
[2026/01/20 20:47:18 SEVERE]         [World|default] Took too long to run pre-load process hook for chunk: 320ms 240us 200ns > TICK_STEP, Has GC Run: true, WorldChunk{x=-18, z=-27, flags=00000000000000000000000000000100}, Hook: com.```
dusky sable
#

I'm using AbstractCommandCollection to register a command and subcommands, but is it possible to make the base command also do something when executed?

tawdry dragon
#

Any news on official documentation?

steel rose
fallow citrus
#

i am!

thorny minnow
#

Hmm, shouldn't be my processor I've got a good one..

graceful ridge
#

Hey yall, anybody know how to get PlayerInteractEvent working? Trying to detect a right click with my custom item, but it's just not registering

graceful ridge
steel rose
thorny minnow
#

None, I've just pulled down the plugin template repo and just getting started here

steel rose
#

Average 150ms isn't bad but if it's happening often could be a symptom

hardy hawk
#

So for Simple Claims mod, anyone know in the config where it is to allow people to use that perm?

thorny minnow
#

Seems to have gone away after running in debug mode...

gritty rock
#

I'm having trouble getting the text from a UI to modify what's written in a JSON file. Can someone please help me?

thorny minnow
dusty venture
#

does someone know where I can find the inventory .ui file?

edgy sinew
hushed delta
#

guys someone have 1 guide for creaiton mod?

gentle sandal
#

Hey guys, is there a way to get self written mods onto our server?

twin yoke
#

Guys, any one know, how to change Anchor value in java?? For text is easy ui.set("#d1.Text", "Lvl 1");, but for anchor lot of mess

neon tree
inner ruin
#

Guys, I'm trying to make a mod that uses the Stone Planter to automate planting, so that when it reaches the final stage it returns to the initial stage and the resources are placed in the chest below, but my code isn't working.

gentle sandal
neon tree
kind palm
lethal imp
#

What is the main difference between a plugin and a pack. And can I convert a pack into a plugin?

lament sierra
#

Does anyone know why my world with friends isn't working out for me?

kind palm
gentle sandal
#

is in the manifest everything that we need? like also the API and stuff

gentle sandal
kind palm
neon tree
# gentle sandal this is the test server 😄

So the mod hasn't worked before? Check your logs it normally tells what is wrong and else try to get a template mod and test and export that to see if that works since the template should work either way without changing

graceful ridge
neon tree
#

If the template works check what is different between yours and the template.

It sounds simple and its also the easiest way to check where your issue is

sweet crystal
#

I am losing my sanity.
How do I replicate setting an asset, but with no change?

gentle sandal
analog quail
#

Looks like you're offline or our services are unavailable. Click Play again to launch Hytale in offline mode.

kind palm
tawdry narwhal
#

link install?

kind heart
#

thx

gentle sandal
neon tree
mellow tendon
#

ok, I have the following:

this.getEventRegistry().registerGlobal(BootEvent.class, (event) -> {
            for (BlockType block : BlockType.getAssetMap().getAssetMap().values()) {
                if (!"Open_Container".equals(block.getInteractions().get(InteractionType.Use))) continue;
                try {
                    Field interactionsField = block.getClass().getDeclaredField("interactions");
                    interactionsField.setAccessible(true);
                    Object interactionsObj = interactionsField.get(block);
                    if (!(interactionsObj instanceof Map<?,?> interactionsMap)) continue;
                    Map<Object, Object> modifiableMap = new HashMap<>(interactionsMap);
                    modifiableMap.put(InteractionType.Secondary, "Yht_QuickerStacker_QuickStack");
                    interactionsField.set(block, modifiableMap);
                } catch (NoSuchFieldException | IllegalAccessException _) {
                    System.out.println("Error modifying interactions for block type: " + block.getId());
                    continue;
                }
            }
        });

The interaction I add works fine, but only when I am holding a block in my hand while attempting to interact with a chest. If I don't hold anything or hold an item, it doesn't work. Is this a bug, or am I missing something? Entire code and assets are available on github under YouHaveTrouble/QuickerStacker if anyone needs all details

gentle sandal
mellow tendon
lethal imp
kind palm
neon tree
# gentle sandal yeah pretty much

Okay that a different story already then the mod doesnt work Hypixel_ThisIsFine

Did your register the command in your setup of the mod? I didn't deep dive into commands yet so idk if you got to register it aswell in the manifest

lethal imp
gentle sandal
#

yeah well we will try to tweak it a little bit more. thank you guys so far

dusty venture
#

has anyone figured out how to open the inventory with a custom ui alongside it?

subtle geyser
#

hytale plugins are easier to configure than minecraft plugins? or not

kind palm
subtle geyser
#

also where can i see hytale plugins

stiff walrus
#

Does anyone know if I can set the environment for an entire world?

pale crest
stoic fox
#

Does someone know how to use custom things from plugin code(interactions for examples) in asset editor?

lethal imp
kind palm
sly oar
#

where i can find hytale plugins api?

lethal imp
prisma pasture
#

Having some major issues with teleporting players between worlds. We’ve tried a ton of solutions but all have problems. This is relevant primarily because as a network, we have to warp people from hub to lobby to game world, and it’s causing some major complications for us. Any tips? The main issues showing up are:
-rubber banding
-spawning in the air in a falling state
-other players unable to see each other correctly (stuck in same place running, floating, etc)
-Desync issues in general

lucid spire
kind palm
# sly oar where i can find hytale plugins api?

Decompile the JAR. There's no real official docs yet. Otherwise, there's a bunch of AI-generated docs that are normally wildly inaccurate or community-based wikis
We're maintaining one at: wiki[dot]hytaleservers[dot]host but it's only got a starter's guide and then some very in-depth stuff

grave delta
#

Ive made a server on shockbyte and i want to have the settings to not lose items when a player dies does anyone knows how to do it

lucid spire
#

did anyone figure out how to make custom templates for worlds and use them for instances?

kind palm
weary coral
#

can someone please mod controller support in

mellow tendon
dusty venture
#

has anyone figured out how to have custom ui alongside something like the inventory like a bench

lethal imp
kind palm
sharp lake
#

How do i save data into a file or something like that
im trying to save inventories but where and how???

kind palm
sharp lake
#

but where do i save the json for it to be persistent

kind palm
heavy scroll
#

Anyone working on Hardcore Factions with Archer Bard Warrior ETC?

sharp lake
#

Is that the same for plugins??

kind palm
low nebula
#

yes

coarse frost
#

do most people use the built-in codec or own libs

low nebula
#

mods in hytale work in server side, so are plugins too 😄

kind palm
lethal imp
peak stream
#

how do I make an item change its id when I press something? like a rainbow pickaxe that change its color every time break a block

grave delta
#

Ive made a server on shockbyte and i want to have the settings to not lose items when a player dies does anyone knows how to do it

kind palm
agile elm
#

plugin reload sitll not working?

kind palm
lethal imp
viscid wren
#

i saw on instagram somebody did hytale&mc connection

#

crazy

peak stream
drowsy tusk
#

Someone have documentation with examples?

kind palm
subtle geyser
#

Yo i have in my host:

hytale-downloader
17 minutes agp
logs
2 minutes ago
mods
2 minutes ago
Server
2 minutes ago
universe

mods = minecraft plugins or ?

tawdry lion
lucid spire
#

has anyone figured how to clone a world from a template?

subtle geyser
lucid spire
subtle geyser
#

okay thanks

gleaming violet
#

Server side modding 🤓

kind palm
#

lol

low nebula
#

server side modding == plugins

drowsy tusk
low nebula
#

but with assets == mods

gleaming violet
kind palm
# drowsy tusk Hytale server plugin in java

I have a guide for creating a hello world project but it doesn't go further than that yet. That should at least get you to the point where you can find other resources or use decompiled JARs:
wiki[dot]hytaleservers[dot]host/Creating_your_first_server_mod_(plugin)

lucid spire
unkempt silo
#

where i can find documentation?

lucid spire
kind palm
#

Holy AI

torpid loom
#

does anyone know a good way to put items into a slot?
I made custom slots and Idk how to put items into them. I know how to put the images in certain areas, but I'm not sure about how to use the actual item as a part of my UI the built in way

sage escarp
#

aaaaaaaa

lethal imp
#

How exactly do I safe my progress inside the Asset Edito?

olive flint
#

Anyone else working on tech mods? Working on a power API currently.

low nebula
#

guys i dont speak english, but im trying understend and talk

storm junco
#

are there any interactions we use to check if you press f on an block?

agile elm
#

is plugin reload still broken?

nocturne remnant
#

help erro

opal epoch
#

Accept my friend request

royal hatch
#
curseforge com/hytale/mods/hyskills-easy-custom-skills

Changes:
*New XP bar at bottom of screen that updates to current skill being trained.
*New command /skillstogglebar which will hide the HUD bar at the bottom.
*Delete confirmation when deleting a requirement, trigger, unlock and locked.
*Delete confirmation for deleting entire skills.
*Issue with reorder of triggers and requirements fixed.
*QOL "Click here" text added to requirements, triggers and unlock pages to make it obvious.
*Save check on requirements, triggers and unlocks not having types added.
*stat_mining_speed renamed to stat_blockbreak_speed as it affects all blocks.
*Swim and climb have addition "is moving" toggles to stop abuse of skills.
*Scrolling reset when setting values bug fixed. 
*Ability to modify stats of offline players is enabled again.
*Searching for items/entity can now be selected in multiples and saved.
*MHUD has been implemented so multiple HUDS work. 
*Settings page added to /skillsadmin to toggle xp bar and notification on or off by default for new users.
*Item in hand backup check added.
*Duplicate chat notifications on level/xp gain.
*Issue with stamina regen applying level as reward when set to every level fixed.```
grave delta
#

Ive made a server on shockbyte and i want to have the settings to not lose items when a player dies does anyone knows how to do i

nocturne remnant
#

An error has occurred
Please try reloading the launcher. If the problem persists, contact support.

ornate raven
#

is prefabs still blockymodel?

kind palm
#

wow this chat has deteriorated quickly in the last 5 minutes lol

wheat timber
radiant pasture
#

Anyway to block mob spawning in defined areas? or do i have to add plugin first?

still field
#

does anyone know how or know a guide or open source example project that gives a block a custom UI that can edit components of the block that you open with F, thanks

kindred wave
#

I'm having trouble logging into some Hytale servers; I get the error (0) time out for inactivity and Connection aborted by poor

wheat timber
#

nvm i fixed it Hypixel_TongueOut

kind hollow
#

Anyone know who wrote the HyChunks site?

gritty ivy
#

Hey guys is there any docs or anything i can read to understand the hytale plugin system

radiant pasture
#

Anyway to block mob spawning in defined areas? or do i have to add plugin first?

grave delta
#

Ive made a server on shockbyte and i want to have the settings to not lose items when a player dies does anyone knows how to do it

harsh quiver
#

My hud is kicking me out of server when moving to a different instance/through portal, any ideas any1?

fickle aspen
#

what i got to do to get a kiss around here

kindred wave
#

I'm having trouble logging into some Hytale servers; I get the error (0) time out for inactivity and Connection aborted by poor

main plume
#

One of my mods is crashing my game only when I try to place seeds, anyone know what causes it

fickle aspen
#

MWAH

brittle pollen
brittle pollen
harsh quiver
main plume
fickle aspen
main plume
#

It’s not giving me any, just freezing my game and leaving sorts it

finite dew
#

Is there an event from stopping a user to pick up Rubble stones ?

brittle pollen
static lodge
#

Do I need\or are there exist any different interaction classes? I find use of SimpleInstantInteraction only, does it enough for every purposes?

harsh quiver
alpine patrol
subtle geyser
#

If I have a ready spawn how can I put it in. I just put it in my host and it will work? Do I need any plugins?

grave delta
#

Ive made a server on shockbyte and i want to have the settings to not lose items when a player dies does anyone knows how to do it please???

gentle quail
#

Anyone know if there's a reference thing for replacement mask tags, or what the tag for rocks are?

I've made a custom sallow sapling (so I can actually get renewable goldenwood), and I just removed the bottom blocks... since apparently it will just not spawn the prefab if any blocks will replace those that are not allowed to be replaced.

Soil is the only tag I'm aware of, and it could be because I haven't even looked at the world generation stuff, so if anyone knows what they are or where to find them would appreciate.

still field
quick verge
#

Hi, I'm following Kaupenjoes Hytale Modding Tutorial, and after he decompilesServer on inteliJ.
There is no HytaleServer-src.zip folder for me. IDK if it's in a different location but I only have some jar files and a different folder. Any help would be appreciated. Did I need to download this beforehand or something and where from?

subtle geyser
#

If I have a ready spawn how can I put it in. I just put it in my host and it will work? Do I need any plugins?

kind palm
#

You don't actually need it though

main plume
quick verge
kind palm
brittle pollen
# harsh quiver Yeee just disconnects me

If it just disconnects, from the tutorial/video I was watching on youtube about UI -- Might be modifying client UI directly? Which is not allowed? The example shown kicked him immediately after the UI was "modified" so I want to wager there's a different way for you to handle your UI

dusty venture
#

I just managed to crash my game so hard it reinstalled itself wtf

quick verge
wise belfry
#

Where does the server store the assigned permissions?

still field
gritty ivy
still field
#

put periods instead of spaces

gritty ivy
#

oh okoko

#

unofficial, how accurate is it

narrow wind
#

Is there a way to tier up also Container typed Items?

Or any other Way I can store specific Items in a Structure (maybe with a custom interface design?).

tardy tartan
#

is there a way to grab a ray from where the player is looking, like hooking into the creative laser pointer?

still field
#

its the best one I found so far, another pretty goold one is hytalemodding dev, tyhere are no official docs

native epoch
#

does anybody know how to change itemstack description dynamicly?

nimble pagoda
#

so im running a dedicated server and i had just restarted it like 10 minutes ago and saw there was a mini update on the client at least and now i get a "no world available to join" error when trying to connect

calm robin
#

What function is used to create an NPC?

subtle geyser
#

If I have a ready spawn how can I put it in. I just put it in my host and it will work? Do I need any plugins?

torpid loom
#

I figured I can just make the description and name appear when hovered, but im not sure if that is necessary.
Is there a built in method is what im wondering

keen pecan
#

Hi, does anybody know how to play item animation through Hytale's API? I've added animations into the blockbench model, and i wonder how can i play them directly from the code

knotty holly
#

Where do i put my prefab files within my server files to make them usable in the server?

royal mural
#

guys is it possible to open a link from the ui?

faint void
#

Does anyone know how to get the item the player currently has selected in their inventory?

simple thunder
#

is there a way to get the player who placed a block on placeblockevent?

glossy shadow
knotty holly
glossy shadow
#

Yes

sterile raft
#

sorry if it's noob question, very new to java

.updatePosition
can I write actual specific coordinates?
eg. I want player at 0, 100, 0 with 0 yaw 0 pitch

sinful storm
#

@dense yacht left a comment on the coins mod, it completely stopped loading on update.

knotty holly
wintry dawn
#

Guys, be careful when making UIs, when ending the server, it reverts the file back to the way it was before it was started for some reason. Maybe it opens it for read or something? I just lost a bit of progress because of that

finite dew
uneven tide
#

Does anyone know why holder is null here? (Async command)

PlayerRef targetPlayerRef = playerArg.get(context);
        String achievement = achievementArg.get(context);
        Holder<EntityStore> holder = targetPlayerRef.getHolder();
        assert holder != null;
        AchievementData data = holder.ensureAndGetComponent(SimpleAchievements.achievementDataType);
        ArrayList<String> obtainedAchievements = data.getObtainedAchievements();
        obtainedAchievements.add(achievement);
        data.setObtainedAchievements(obtainedAchievements);
dull crow
#

Hii I don't exactly know where to post this but does does anyone know of any way of getting the HytaleServer.jar to run on an ARM build of the Java 25.0.1 JDK?

I have a Windows ARM device (Snapdragon X Elite) and I noticed the game performance on this device is sort of rubbish due to heavy use of emulation. I've managed to make the client run via an arm build of the Java JDK by replacing it in the game files, but whenever I join a single-player world it tries to launch HytaleServer.jar with that same ARM JDK, which causes the local server to crash since it uses x86-64 binaries which in turn locks the player out of single-player worlds entirely.

I've gotten around this by loading the client natively via the ARM Java JDK while running a server locally using an x86-64 build of the Java JRE. This is way more performant but still a massive workaround, if anyone knows of get the HytaleServer.jar to run that would be greatly appreciated since that means more devices could run this game at a high performance.

frigid aspen
#

guys how can i change a ItemStack's display name

thorn otter
#

anyone has a list of effect ids?

knotty holly
alpine patrol
knotty holly
#

To confirm my prefab file should be a .json file?

harsh quiver
#

It's a very simple scoreboard UI, so I'm probably just loading it wrong, been trying to get it working for like 4-5 hours now 🤣

finite dew
candid niche
#

Hi! Someone have a lobby mod for server?

alpine patrol
static lodge
#

Is it possible to play effect (like swing) in programmatically written Interaction? Are there any limitations compared to JSON?

glossy shadow
dull crow
wise briar
#

Is it possible to detect wether the user has opened the map?

knotty holly
finite dew
knotty holly
#

Oh no i see, prefab name

spare marsh
#

anyone able to build a spawn?

knotty holly
#

its like that.. but its not showing in the list

knotty holly
candid niche
#

Hi! Someone have a lobby mod for server? Please :<

alpine patrol
knotty holly
#

I found the issue... prefabs FOLDER cant have capital letters..

finite dew
#

Want to prevent the pickup / the rubble disappiering

alpine patrol
finite dew
#

Which interaction would that be as in the assit editor i only see the throw interaction

simple thunder
#

I'm trying to detect when a player interacts with a specific item in hand, but placeblockevent doesn't return the player, playerinteractevent is deprecated + registering doesn't return the event's class for some reason and PlayerMouseButtonEvent returns Item instead of ItemStack (I need the itemstack for the item's metadata) do you have any solution?

barren vortex
#

Did you find the fix for this?

frosty plank
#
Group {
  LayoutMode: Right;
  Anchor: (Top: 20, Height: 60);

  Group #MyPanel {
    Background: (Color: #313131);
    Anchor: (Left: 20, Top: 20, Width: 400, Height: 400);
    Padding: (Horizontal: 20, Vertical: 10);
    LayoutMode: TopScrolling;

    Label #Title {
      Style: (FontSize: 32, Alignment: Center);
      Text: "A Hytale Server";
    }
    Label #Name {
      Style: (FontSize: 18, Alignment: Center);
      Text: "Player: Loading...";
    }
    Label #Ping {
      Style: (FontSize: 18, Alignment: Center);
      Text: "Ping: 0ms";
    }
  }
}```

The title name and ping are not centered. How can I fix this?
thorn otter
#

does anyone know some effect ids?

timid ruin
static lodge
#

Is it possible to play animation effect (like swing) in programmatically written Interaction? Are there any limitations compared to JSON?

finite dew
#

Alright then im going to go for that

echo light
simple thunder
#

I'm trying to detect when a player interacts with a specific item in hand, but placeblockevent doesn't return the player, playerinteractevent is deprecated + registering doesn't return the event's class for some reason and PlayerMouseButtonEvent returns Item instead of ItemStack (I need the itemstack for the item's metadata) do you have any solution?

subtle sage
#

can some1 test a function with me real quick on my devserver? no friend online 🙁 (only takes like 3 minutes)

surreal flame
#

is there any information out there about @DropdownBox from the Common.ui how to set the values for it?

subtle sage
sterile raft
#
                var world = Universe.get().getDefaultWorld();
                var headRotation = playerRef.getHeadRotation();
                var transform = new Transform(new Vector3d(15.5, 188, 0.5), headRotation);
                playerRef.updatePosition(world, transform, headRotation);

not really having luck with this
nothing happens
printing out each one does give correct info though
am I doing something wrong or missing something?

wintry dawn
uneven tide
#

How do I save data to a player? Do I need to add a component to them?

sterile raft
uneven tide
# civic zephyr Yea that works

OK... so I have this:

package me.maemoon.plugin;

import com.hypixel.hytale.codec.Codec;
import com.hypixel.hytale.codec.KeyedCodec;
import com.hypixel.hytale.codec.builder.BuilderCodec;
import com.hypixel.hytale.component.Component;
import com.hypixel.hytale.server.core.universe.world.storage.EntityStore;

import java.util.ArrayList;
import java.util.List;

public class AchievementData implements Component<EntityStore> {
    public static final BuilderCodec<AchievementData> CODEC = (BuilderCodec.builder(
            AchievementData.class,
            AchievementData::new
    )
            .appendInherited(new KeyedCodec<>("Obtained_Achievements", Codec.STRING_ARRAY), (e, s) ->
                    {
                        e.obtainedAchievements = new ArrayList<>(List.of(s));
                    },
                    (e) -> {
                        return e.obtainedAchievements.toArray(new String[0]);
                    },
                    (e, p) -> {
                        e.obtainedAchievements = new ArrayList<>(p.obtainedAchievements);
                    })
            .add().build());

    private ArrayList<String> obtainedAchievements;

    public ArrayList<String> getObtainedAchievements() {
        return obtainedAchievements;
    }

    public void setObtainedAchievements(ArrayList<String> obtainedAchievements) {
        this.obtainedAchievements = obtainedAchievements;
    }

    @Override
    public Component<EntityStore> clone() {
        AchievementData copy = new AchievementData();
        copy.obtainedAchievements = this.obtainedAchievements;
        return copy;
    }
}

How do I actually add the component to each player and then modify the data?

civic zephyr
#

Have you registered this component

uneven tide
#

Uhh in my main code I have

getEntityStoreRegistry().registerComponent(
                AchievementData.class,
                AchievementData::new
        );
vital fjord
#

do not forget codec

wintry dawn
# sterile raft you speak some funny words wizard (new to java so gl to me haha) thanks at leas...

I'm new to java too, came from C++, but I had to do that so I found that you have to add a teleport component to a player, if that confuses you, you should maybe read how the Hytale ECS works. But in the meantime here is the snipped from the hytalemodding website:

public static void teleportPlayer(Player player, int x, int y, int z) {
        World world = player.getWorld();
        if (world == null) return;
        world.execute(() -> {
            if (player.getReference() == null) return;
            Store<EntityStore> store = player.getReference().getStore();
            Teleport teleport = Teleport.createForPlayer(world,
                new Vector3d(x ,y, z), // Target position
                new Vector3f(0, 0, 0)  // Target rotation (pitch, yaw, roll)
            );

            store.addComponent(player.getReference(), Teleport.getComponentType(), teleport);
        });

}```
civic zephyr
#

Use the one with the codec param

wintry dawn
civic zephyr
alpine patrol
#

@mellow tendon i found a way to handle Interactions without the need of any json files. i managed to recreate your QuickStacker in just one single class

lyric mountain
#

Guys anyone else noticing that, on a dedicated server, when there are a lot of players online (I have 8 atm), less mobs or even none spawn at all?? Any idea how to fix this?

wintry dawn
#

Does anyone know how would I check if a player has OP? Is it a special permission string or it has another function?

muted lark
#

Been having alot of Api issues on PlaceBlockEvent and stuff when i try make custom world lock when trying to protect the claim via PlaceBlockEvent and stuff for my server, (can't even get the debug to detect it) does anybody know what i can do to get it to work someone also reported on other discords of claim plugins there has been issues with certain protection systems does anybody have a easy fix for this?

sterile raft
# vital fjord do not forget codec

just saw this snippet a moment ago
just need to figure out how to get player from playerRef in this case

also I come from web development so this is ENTIRELY new for me haha

#

sorry pietru wrong ping
meant to ping @wintry dawn 😂

vital fjord
#

no problem

#

my do not forget codec message was more general to anybody who might

alpine patrol
civic zephyr
mellow tendon
civic zephyr
mellow tendon
#

that simple.

sterile raft
#

this is where I am at now with the snippet nikola shared


    public void start() {
        try {
            getEventRegistry().register(PlayerConnectEvent.class, event -> {
                var playerRef = event.getPlayerRef();
                var playerUUID = playerRef.getUuid();
                Player player = store.getComponent(ref,Player.getComponentType());
                teleportPlayer(player, 15.5, 188, 0.5);
            });
        } catch (Throwable t) {
            Universe.get().sendMessage(Message.raw("Brother it failed with "+ t));
        }


    }
    public static void teleportPlayer(Player player, double x, double y, double z) {
        World world = player.getWorld();
        if (world == null) return;
        world.execute(() -> {
            if (player.getReference() == null) return;
            Store<EntityStore> store = player.getReference().getStore();
            Teleport teleport = Teleport.createForPlayer(world,
                    new Vector3d(x ,y, z), // Target position
                    new Vector3f(0, 0, 0)  // Target rotation (pitch, yaw, roll)
            );

            store.addComponent(player.getReference(), Teleport.getComponentType(), teleport);
        });
    }```
alpine patrol
mellow tendon
#

sure

finite dew
#

Thanks got it implemented that way 😄

sterile raft
#

ignore the player player part in start() as I literally just started using this

wintry dawn
lofty cliff
#

Is it possible to add tabs to existing workbenches in the asset editor? For instance if I wanted to add a new tab to the alchemy bench, for new categories of recipes.

wintry dawn
alpine patrol
mellow tendon
#

just send the class here, just wrap it in ```

sterile raft
#

I have playerRef from the event already no?
I need player from playerref now
unless I am being dumb

finite dew
#

I program everything myself so wont be a problem

alpine patrol
# mellow tendon just send the class here, just wrap it in \`\`\`
public class InteractEventSystem extends EntityEventSystem<EntityStore, Pre> {


    protected InteractEventSystem() {
        super(Pre.class);
    }

    @Nullable
    @Override
    public Query<EntityStore> getQuery() {
        return PlayerRef.getComponentType();
    }

    @Override
    public void handle(int i, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull Pre event) {
        Ref<EntityStore> ref = archetypeChunk.getReferenceTo(i);
        Player player = store.getComponent(ref, Player.getComponentType());
        PlayerRef playerRef = store.getComponent(ref, PlayerRef.getComponentType());
        String blockName = event.getBlockType().getId().toLowerCase(Locale.ROOT);
        if (!blockName.contains("chest") || player == null) return;
        Inventory playerInv = player.getInventory();
        if (playerInv == null) return;
        World world = player.getWorld();
        if (world == null) return;
        WorldChunk chunk = world.getChunk(ChunkUtil.indexChunkFromBlock(event.getTargetBlock().x, event.getTargetBlock().z));
        ItemContainerState containerState = (ItemContainerState) chunk.getState(event.getTargetBlock().x, event.getTargetBlock().y, event.getTargetBlock().z);
        ListTransaction<MoveTransaction<ItemStackTransaction>> transaction = playerInv.getCombinedHotbarFirst().quickStackTo(containerState.getItemContainer());
    }
}
finite dew
#

Only thing this causes are client/server desyncs tho

alpine patrol
mellow tendon
civic zephyr
wintry dawn
mellow tendon
# alpine patrol sadge

I want to replace the click with a charging interaction, so when you click it stacks to the chest you clicked, if you hold it stacks to all nearby chests

young pumice
mellow tendon
young pumice
#

that will repopulate your world

alpine patrol
sterile raft
alpine patrol
#

btw does anyone know if there is a way to rebind certain buttons in the playerinventory? like the memory-UI button for example

lucid spire
#

can i shedule non static methods?

mellow tendon
uneven tide
# civic zephyr The one that goes Class, string, Codec

Ok, so now I have getEntityStoreRegistry().registerComponent(AchievementData.class, "Achievement_Data", AchievementData.CODEC);
and now the plugin is failing to load because e.obtainedAchievements is null?
Codec:

public static final BuilderCodec<AchievementData> CODEC = (BuilderCodec.builder(
            AchievementData.class,
            AchievementData::new
    )
            .appendInherited(new KeyedCodec<>("Obtained_Achievements", Codec.STRING_ARRAY), (e, s) ->
                    {
                        e.obtainedAchievements = new ArrayList<>(List.of(s));
                    },
                    (e) -> {
                        return e.obtainedAchievements.toArray(new String[0]);
                    },
                    (e, p) -> {
                        e.obtainedAchievements = new ArrayList<>(p.obtainedAchievements);
                    })
            .add().build());
random thistle
static lodge
#

Is it possible to play animation effect (like swing) in programmatically written SimpleInstantInteraction? How to apply it? please help

mellow tendon
#

animation neds to be defined in the json of the interaction

wintry dawn
deft cloud
#

Heya, Im running hytale server on my pterodactyl pannel and when i went to switch the auth mode to Encrypted i got the following message, did i miss somthing?

[EncryptedAuthCredentialStore] Cannot save credentials - no encryption key available

wintry dawn
static lodge
uneven tide
# civic zephyr Whats the full error?
[2026/01/20 22:49:39 SEVERE]        [Simple Achievements|P] Failed to setup plugin Maemoon:Simple Achievements
java.lang.NullPointerException: Cannot invoke "java.util.ArrayList.toArray(Object[])" because "e.obtainedAchievements" is null
    at me.maemoon.plugin.AchievementData.lambda$static$1(AchievementData.java:27)
    at com.hypixel.hytale.codec.builder.BuilderCodec$BuilderBase.lambda$appendInherited$1(BuilderCodec.java:965)
    at com.hypixel.hytale.codec.builder.BuilderField.validateDefaults(BuilderField.java:217)
    at com.hypixel.hytale.codec.builder.BuilderCodec.validateDefaults(BuilderCodec.java:669)
    at com.hypixel.hytale.component.ComponentRegistry.registerComponent(ComponentRegistry.java:388)
    at com.hypixel.hytale.component.ComponentRegistry.registerComponent(ComponentRegistry.java:368)
    at com.hypixel.hytale.component.ComponentRegistryProxy.registerComponent(ComponentRegistryProxy.java:38)
    at me.maemoon.plugin.SimpleAchievements.setup(SimpleAchievements.java:42)
civic zephyr
random thistle
uneven tide
civic zephyr
#

Array

#

Are you trying to save an arraylist through that codec? Is that working?

#

Oh I see you're doing some conversion, you really shouldn't be doing that

sterile raft
#

java.lang.NullPointerException: Cannot invoke "com.hypixel.hytale.component.Ref.getStore()" because the return value of "com.hypixel.hytale.server.core.universe.PlayerRef.getReference()" is null

Store<EntityStore> store = playerRef.getReference().getStore();
got this now

            getEventRegistry().register(PlayerConnectEvent.class, event -> {
                var playerRef = event.getPlayerRef();
                var playerUUID = playerRef.getUuid();
                Store<EntityStore> store = playerRef.getReference().getStore();
                var player = store.getComponent(playerRef.getReference(), Player.getComponentType());
                teleportPlayer(player, 15.5, 188, 0.5);
            });```
static lodge
civic zephyr
glad juniper
#

Can we give NPCEntities data that persists across restarts?

civic zephyr
#

And then you have another user-friendly array

random thistle
heavy flame
civic zephyr
glad juniper
#

thanks

alpine patrol
#

why does punching a chest count as interaction

meager oasis
#

So, I exported my mod and now it won't show up in my worlds asset editor. The one I made it in, literally why? all that progress lost? Does anyone know a fix to this?

I know this is the wrong channel but people in #discussion are genuinely so off topic I need smart people

civic zephyr
#

Punching with fists is a Primary interaction

alpine patrol
#

ahh okay. so i have to filter for that if i only want something to trigger on the "press f" interaction

static lodge
civic zephyr
#

Thats Use

alpine patrol
wheat gyro
#

Hey. I am looking for a plugin / mod that allowes me to alter the Teleport Visualization on the map / compass.

The teleporters crafted by players should only be visible to the player that made it. So if Player X makes a portal, it won't show up at all for Player Y without being added to a "whitelist". If they are added to the "whitelist", the Teleporter will show up on the map and compass for both players.

Does anyone know of a mod / plugin that can do that?

civic zephyr
alpine patrol
#

nice thanks

lethal imp
#

If I wanna make my bench placeable which property do I have to check in the asset editor?

dark loom
#

I went to restart my server on a hosting service, and it started to crash like this. Could someone help me?
pastebin com/XmLXFtJn

sterile raft
#

oh seems the issue is store because it hasn't been attached yet on join
so ig I need to change this somehow

alpine patrol
civic zephyr
alpine patrol
#

so punching is always primary

wintry dawn
civic zephyr
#

But if you right click with items it does fire Secondary interaction unlike with fists

sterile raft
civic zephyr
alpine patrol
#

so punching with fist counts towards primary but right-clicking with fist doesnt count towards secondary

civic zephyr
velvet yoke
#

hey, we apologize for this. we fixed the problem today and it should not occur again

sterile raft
wintry dawn
alpine patrol
#

is there a way to check if a player is sneaking?

wintry dawn
sterile raft
#

I don't see player ready btw
unless I am missing something

civic zephyr
#

Then .getMovementStates

alpine patrol
#

thanks ^^

civic zephyr
sterile raft
#

ig rentry is missing this event

civic zephyr
#

Rentry?

wintry dawn
signal dagger
#

Anyone also got the Problem when editing Chests that the Chest is then:

Cannot perform OpenContainerInteraction interaction on unsupported BlockState type null

Also why is the Block now called: Furniture_Crude_Chest_Small_State_Definitions_CloseWindow

civic zephyr
#

Yes significantly

sterile raft
simple thunder
#

I'm trying to detect when a player interacts with a specific item in hand, but placeblockevent doesn't return the player, playerinteractevent is deprecated + registering doesn't return the event's class for some reason and PlayerMouseButtonEvent returns Item instead of ItemStack (I need the itemstack for the item's metadata) do you have any solution?

civic zephyr
#

Just start typing PlayerReadyEvent it should suggest the class and you can import it

sterile raft
plush kettle
#

Would anyone be able to share an example repo demo'ing how to add a new block via server mod. I'm following <hytalemodding>.<dev>/en/docs/guides/plugin/creating-block but I'm clearly missing something critical

civic zephyr
sterile raft
#

I need Player player

civic zephyr
#

Theres .getPlayer on that event

rose atlas
#

pvp is so good

civic zephyr
civic zephyr
#

Very easy to do too

merry otter
#

Does anyone know if this function affects fluids as well? Or are they stored seperately from blocks


public static boolean performBlockDamage(@Nonnull Vector3i targetBlock, @Nullable ItemStack itemStack, @Nullable ItemTool tool, float damageScale, int setBlockSettings, @Nonnull Ref<ChunkStore> chunkReference, @Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull ComponentAccessor<ChunkStore> chunkStore) {
        return performBlockDamage((LivingEntity)null, (Ref)null, targetBlock, itemStack, tool, (String)null, false, damageScale, setBlockSettings, chunkReference, commandBuffer, chunkStore);
    }```
wintry dawn
simple thunder
merry otter
uneven tide
# civic zephyr Oh I see you're doing some conversion, you really shouldn't be doing that

Ok I fixed that but now it's saying that holder is null? (This is in CompletableFuture of an AbstractAsyncCommand, if I send more than this discord seems to block my message for some reason):

PlayerRef targetPlayerRef = playerArg.get(context);
        String achievement = achievementArg.get(context);
        Holder<EntityStore> holder = targetPlayerRef.getHolder();
        assert holder != null;
        AchievementData data = holder.ensureAndGetComponent(AchievementData.getComponentType());
signal dagger
wintry dawn
calm robin
#

Which function do I use to create an interaction with an NPC? The one that says "press F"?

civic zephyr
#

Idk this games strange sometimes

tough basin
#

does anyonehave an event ready made for detecting an entity death?

civic zephyr
# simple thunder F I hate that
@Override
    public void accept(PacketHandler packetHandler, Packet packet) {
        if (packetHandler instanceof GamePacketHandler handler){
            if (packet instanceof SyncInteractionChains chains){
                SyncInteractionChain chain = chains.updates[0];
                InteractionChainData chainData = chain.data;

                if (chain.interactionType == InteractionType.Secondary){
                    // Check me!
                    var playerRef = handler.getPlayerRef();

                    // Have we got a block pos? Refresh the players chunk to prevent desync
                    BlockPosition blockPosition = chainData.blockPosition;
                    if (blockPosition != null){
                        playerRef.getChunkTracker().removeForReload(ChunkUtil.indexChunkFromBlock(blockPosition.x, blockPosition.z));
                    }

                    // Then cancel me!
                    chains.updates = new SyncInteractionChain[0];
                }
            }
        }
    }

I've formatted this to make it easier to understand, obviously you probably don't want to cancel every single secondary interaction, this is just to show you what you might want to do

sterile raft
#

Here is the setup I got in the end for on player ready event to teleport to a set location
if anyone ends up needing it in discord search


    public void setup() {
        this.getEventRegistry().registerGlobal(PlayerReadyEvent.class, readyEvent::onPlayerReady);
    }

    public static class readyEvent {
        public static void onPlayerReady(@Nonnull PlayerReadyEvent event) {
            try {
                var player = event.getPlayer();
                teleportPlayer(player, 15.5, 188, 0.5);
            }
            catch (Throwable t) {}
        }
    }

    public static void teleportPlayer(Player player, double x, double y, double z) {
        World world = player.getWorld();
        if (world == null) {return;}
        world.execute(() -> {
            if (player.getReference() == null) {return;}
            Store<EntityStore> store = player.getReference().getStore();
            Teleport teleport = Teleport.createForPlayer(world,
                    new Vector3d(x, y, z),
                    new Vector3f(0, 0, 0)
            );

            store.addComponent(player.getReference(), Teleport.getComponentType(), teleport);
        });
    }```
civic zephyr
wicked swallow
#

How can I make it so that clicking on a specific NPC executes a command or function?

calm robin
#

Which function do I use to create an interaction with an NPC? The one that says "press F"?

steep acorn
#

Is anyone encountering this error: 'getPlayerRef()' is deprecated and marked for removal?

civic zephyr
merry otter
tough basin
civic zephyr
merry otter
#

ahhh i see mb

shut glen
#

is that possible to make some plugin whitout the Hytale API ? i wanted to do a Soil_Grass propagation but it look like not possible without the API ?

civic zephyr
quaint fossil
#

@tranquil tendon the /auth thing worked!!! Thank you

tranquil tendon
#

No problem!!! happy to help :D

simple kestrel
#

so quick question im trying to use aternos for server hosting to my mates with mods but it just doesnt load me into the world

#

like it says its just timing out

idle lily
#
// Save the location on the first run
if (firstRun) {
    final TransformComponent transformComponent = targetRef.getStore().getComponent(targetRef, TransformComponent.getComponentType());
    Preconditions.checkNotNull(transformComponent, "TransformComponent");
    Teleport teleport = Teleport.createForPlayer(transformComponent.getTransform());
    context.getInstanceStore().putMetaObject(REWIND_LOCATION, teleport);
    context.getState().state = InteractionState.NotFinished;
    return;
}

Does anyone have an idea why my player's TransformComponent is rarely right? I am running this inside a SimpleInteraction, and the player rotation is always (0, Y, 0), the yaw component is always set (albeit a previous rotation, not the current one), and the pitch and roll are always 0.

lofty crater
#

alguem pode me ajudar?
nao estou conseguindo jogar. Assim que saio do spown, o jogo para de responder, todos os blocos que quebro, nao é contabilizado. Na aba Network os parametros de Sent e Received estao em 1 B/s.
oque posso fazer?

reef gorge
#

Player getUUID deprecated?

civic zephyr
reef gorge
#

Thanks 🙂

uneven tide
merry otter
#

Anyone know if theres some way to check who threw a projectile?

civic zephyr
#

Wherever this is needs to hop to the world thread with world.execute

idle lily
#
// Save the location on the first run
if (firstRun) {
    final TransformComponent transformComponent = targetRef.getStore().getComponent(targetRef, TransformComponent.getComponentType());
    Preconditions.checkNotNull(transformComponent, "TransformComponent");
    Teleport teleport = Teleport.createForPlayer(transformComponent.getTransform());
    context.getInstanceStore().putMetaObject(REWIND_LOCATION, teleport);
    context.getState().state = InteractionState.NotFinished;
    return;
}

Does anyone have an idea why my player's TransformComponent is rarely right? I am running this inside a SimpleInteraction, and the player rotation is always (0, Y, 0), the yaw component is always set (albeit a previous rotation, not the current one), and the pitch and roll are always 0.

reef gorge
#

Is it possible to visualize all components? Like a tree?

civic zephyr
dark torrent
#

Hello everyone, I'm currently working on a mod that allows a mount to fly. However I'm having some issues with it. After some tweaking I managed to make a hawk be able to be mounted but as soon as my player gets on top, he refuses to fly ^^'. Any ideas ?

                    MovementStates other = mountMovement.getMovementStates();
                    other.flying = true;
                    mountMovement.setMovementStates(new MovementStates(other));

this is something I tried but it doesn't seem to work either

calm robin
#

Which function do I use to create an interaction with an NPC? The one that says "press F"?

vast briar
#

Can you make an NPC mine for you? Are you able to control an NPCS actions

civic zephyr
civic zephyr
civic zephyr
calm robin
edgy harness
#

Im having an issue seemingly out of the blue where my dedicted server is crashing due to a tilled soil block,,? anybody else have this issue before?

radiant lily
dull thunder
#

Anyone figure out all the different ui elements we can use yet?

civic zephyr
#

You should be able to control where an NPC wants to go and what animations it plays, from that point its just like your own custom guy to do whatever you want with

#

Could just call sort on nearby ItemContainers or whatever when he walks near one and play an animation

uneven tide
# civic zephyr <@705599604959346718> This was addressed to you I forgot to reply

How do I actually get the world in an AbstractCommand? I've tried this:

PlayerRef targetPlayerRef = playerArg.get(context);
        String achievement = achievementArg.get(context);
        Ref<EntityStore> ref = targetPlayerRef.getReference();
        Store<EntityStore> store = ref.getStore();
        Player player = store.getComponent(ref, Player.getComponentType());
        World world = player.getWorld();

but I get Assert not in thread! when I try to get the player

civic zephyr
north current
#

Could anyone walk me through creating a UI that opens when you interact with an NPC?

uneven tide
vast briar
#

Idk how true this is I’ll check it out in a bit lol

heady cedar
civic zephyr
#

I don't know if sender would return the entity, probably the PlayerRef

#

And the target player is an arg not the sender

heady cedar
#

o right I did miss that part

gusty wing
#

guys plssss i need help to place 2 spawn can someone help pls i search on all the net but nothing

heavy flame
#

is it possible to show the player inventory and a CustomPage at the same time?

cerulean dust
#

Is there a decent mod repo for hytale yet? Something searchable? Any live map mods in progress?

barren vortex
#

With server version updates (without using the downloader), do I pretty much just need to replace the Assets.zip, HytaleServer.jar, HytaleServer.aot, and the Licenses directory?

subtle prism
#

Hello guys!

civic zephyr
wary lion
#

hey i have a question would it be possible to create a world system for minigames essentially making the worlds as small as possible to shrink memory use

terse iron
torpid loom
#

Has anybody else encountered the RED ❌ error when messing with ui? Im trying to put it into my ui, but images from items get changed into red ❌ . Anyone know why?

subtle prism
harsh ermine
#

Anyone else having this problem while trying to use the AOT cache?

[0.081s][warning][aot] This file is not the one used while building the shared archive file: 'HytaleServer.jar', timestamp has changed
[0.082s][error ][aot] An error has occurred while processing the AOT cache. Run with -Xlog:aot for details.
[0.082s][error ][aot] shared class paths mismatch (hint: enable -Xlog:class+path=info to diagnose the failure)
[0.087s][error ][aot] Unable to map shared spaces
lusty crystal
#

Anybody know any alternatives to EyeSpy that allow users to disable the HUD?

harsh ermine
#

Already tried a new download/replace but still same message

torpid loom
ashen fulcrum
#

guys my server is failing to boot, can someone help me solve that?

kind palm
tardy tartan
harsh ermine
#

Already did, seems a problem with the uploaded one on hytale's servers

ashen fulcrum
#

how do i send the log?

barren vortex
#

In that case, unless they check for licences, I think the only files required for a server update are:

Assets.zip
HytaleServer.jar
HytaleServer.aot (I assume)

The rest of the files are configs/mods/universe really, I bring this up because I'm working on my own automation system

torpid loom
kind palm
tardy tartan
ashen fulcrum
#

im renting a server in a brazilian host and i've put around 30 mods that our group thought cool and im trying to open it but it shuts down after i click to open the server

barren vortex
ashen fulcrum
#

ok!

kind palm
# barren vortex Any idea what the aot actually is?

AOT = Ahead-of-Time (cache). It's a cache of the classes that will be loaded when the server is running. It's used to speed up boot times and doesn't really optimize or improve anything else. Given startup times are fast anyway, I'd say it's pretty pointless

reef gorge
#

How to add translation files?

wary lion
wet skiff
#

I'm trying to find the component that determines the time required to consume a given item. I want to make custom food that is really quick to eat. Anyone figure this out?

barren vortex
torpid loom
sweet bronze
#

I'm having trouble listening to the ItemDropEvent. I've registered the event in the setup function of my plugin. I've set a breakpoint for setCanceled to true, but it never triggers. I've tried changing the priority, but without success.

Has anyone ever managed to listen to this event?

  getEventRegistry().register(EventPriority.FIRST, DropItemEvent.class, event -> {
      event.setCancelled(true);
  });
kind palm
hybrid sentinel
civic zephyr
ashen fulcrum
#

i did it and now shows that a lot of things are missing dependencies, can i get those dependencies from other place?

ashen fulcrum
sweet bronze
heavy flame
civic zephyr
wary lion
#

if player.getUuid is being removed what do i use instead i'm trying to make a game lifecycle management system also for profiles

civic zephyr
heavy flame
civic zephyr
#

👼

terse iron
#

Looking for a Developer for Hytale Server
We’re seeking a dedicated developer to help manage and develop an up-and-coming Hytale server. The ideal candidate should be experienced in:

• Java Programming (for server-side development)
• Ubuntu Linux (server management)
• WinSCP (file transfer)
• Git (version control)
• Database Management (MySQL, MongoDB, etc.)
• Server Optimization & Performance
•Basic Security & Backup Knowledge

If you’re passionate about Hytale and have experience managing game servers, send me a message! Further details and responsibilities will be provided upon contact.

dull thunder
#

Any of you figured out a way to make the height shrink to size of content?

heavy flame
# civic zephyr 👼

and have you used ItemGrid before? I've seen it has a SlotClicking event, but I don't know how to get the slot clicked

civic zephyr
#

I haven't messed with making custom UIs

heavy flame
#

custom uis are kinda weird rn

grizzled sedge
#

me sale error algun consejo

wary lion
# civic zephyr UUIDComponent

can you show me an example because the docs im looking at have no examples and ive been flying blind and been stuck on this for hours

civic zephyr
simple thunder
civic zephyr
#

What I sent cancels every secondary action (Including placing) just fine for me

drifting girder
#

I’m looking for a SkyWars or BedWars plugin. Does anyone have an existing one they can share?

simple thunder
civic zephyr
#

Oh I see, it would be too late then if you're running world.execute unless you cancel it outside of the world.execute

ashen fulcrum
#

i removed a mod that let me get my arrows back but it wasnt working

simple thunder
civic zephyr
#

There might be a different way to get the inventory

#

You might have to keep a cache on or something

harsh ermine
#

Is --backup-frequency in seconds, minutes...?

wary lion
civic zephyr
#

What have you got available to you

wary lion
#

yes its toggled with a command

civic zephyr
#

Okay, what class is being extended, AbstractPlayerCommand?

amber lintel
#

hay algun servidor activo 24/7 donde hispano para jugar

civic zephyr
#
UUIDComponent uuidComp = store.getComponent(ref, UUIDComponent.getComponentType());
wary lion
#

im incredibly tired ive been working on this for like 12 hrs 😭

frigid aspen
fallow citrus
#

In a UI, is it possible to use native game images? For example, an image of an item? Without having to import and load it in the plugin?

frigid aspen
#

yep

fallow citrus
#

If you don't mind, could you assist me on how i do that? Im struggling with that

wary lion
reef gorge
#

How to load language translation files?

civic zephyr
edgy harness
#

Anybody adverse in fixing issues causing a server to crash? everything was fine then suddenly the server gets errors restart the server then it happens again shortly after

calm robin
#
                NPCPlugin.get().validateSpawnableRole(def.type);
                Object result = NPCPlugin.get().spawnNPC(
                        store,
                        def.type,
                        def.groupType,
                        position,
                        rotation
                );

                if (result == null) {
                    LOGGER.atWarning().log("Failed to create '%s'", def.id);
                    continue;
                }```

How can I make this NPC interact like some objects in the game that require pressing F?
hollow lagoon
#

hy guys, anyyone knows how create hytale mods? i can find the documentation for APIs, but without success :/

alpine patrol
hollow lagoon
#

mods or plugins, whatever

calm robin
hollow lagoon
#

damn

wary lion
hollow lagoon
#

so, how you starting creating plugins? you are debuggind and coding?

frigid aspen
hollow lagoon
#

yes, bro, i want, thank you

wary lion
#

yeah

#

ik i said this earlier but i really want to know if it would be possible to create a world system for minigames essentially making the worlds as small as possible to shrink memory use because i created a whole server instance system for large minigame servers kinda like hypixel but memory use would be astronomic with the default worlds

graceful ridge
#

who's got some info on how to despawn recently spawned entities for a plugin?

glad juniper
#

where da patchnotes at just had an update

hollow lagoon
#

Dude, I think you’ll have to try to understand how the world-creation engine works and whether it exposes any API that you can use to manipulate it in some way. But honestly, I don’t really know — without documentation, it’s complicated

strong hedge
#

anyone got a mod that produces crash reports?

fallow citrus
hexed maple
#

Hi there is there api to make tab complit for my commands?

wind ferry
#

Is there a straight forward way of accessing HytaleWhitelistProvider or overriding AccessControlModule in general without reflecting my way in

stark tulip
frigid aspen
#

git/Buuz135/Advanced-Item-Info/blob/main/src/main/java/com/buuz135/advancediteminfo/AdvancedItemInfoGui.java

lean kelp
lean kelp
#

github.com/system32developer/Hytale-templates/

wind ferry
civic zephyr
civic zephyr
#

Actually I don't think the registries would unregister what they've already registered

#

Just reflect it'd be safer

wind ferry
civic zephyr
civic mica
#

my world wont load because there's a duplicate plugin but i cant find it, can somebody help me please?

civic zephyr
coral umbra
#

    private ComponentType<EntityStore, FireComponent> fireComponent;

    public FireSystem (ComponentType<EntityStore, FireComponent> fireComponent){
        this.fireComponent = fireComponent;
    }


    @Override
    public void tick(float v, int i, @NonNullDecl ArchetypeChunk archetypeChunk, @NonNullDecl Store store, @NonNullDecl CommandBuffer commandBuffer) {
        FireComponent fireComponent1 = archetypeChunk.getComponent(i, fireComponent);
    }

    @NullableDecl
    @Override
    public Query getQuery() {
        return Query.and(fireComponent);
    }
}```

it says that i am not passing the correct arg:
Required type: FireComponent
Provided: Component
wind ferry
grave karma
#

whats the difference between packs, plugins, and mods? ive seen kaupenjoe's vid on the diff between packs and plugins, but not sure where mods fall into that

wary lion
#

plugins/mods are basically interchangeable ngl

coral umbra
simple thunder
grave karma
tidal sandal
#
@Nonnull
public static ComponentType<EntityStore, PlayerCrawlComponent> getCrawl() {
    return crawlComponent;
}
radiant lily
#

I got my model to show up, and i can spawn it in game but i cant get the NPC part to work.
I've coped the NPC role of a kweebec, into my own Assets, using the asset editor. but in the npc part of the entity spawn menu it doesn't show up

coral umbra
barren vortex
#

How do I get the player from BreakBlockEvent?

tidal sandal
coral umbra
#

Makes sense, however should I cast it since I am having an error

#

FireComponent fireComponent1 = archetypeChunk.getComponent(i, fireComponent);

wicked swallow
#

How can i make an command with arguments?

tidal sandal
fluid vault
#

Does anyone know how the ui component CharacterPreviewComponent works?

barren vortex
paper junco
#

Since the updates i know servers needed a refresh. is there a way to do chunk refreshes for the chunks that have been discovered?

neon dune
#

what does archetypeChunk return? like what is archetypechunk a representation of?

willow slate
#

does anyboady know how to make custom logic for blocks? i want to have a block that can connect to others and detect how many of them there is to make something simmilar to magic storage from terrazra

round glacier
#

bumping this because im just now encountering this issue, where would issues like this be reported because im starting to encounter a lot of them

harsh ermine
#

|Is --backup-frequency in seconds, minutes...?

summer otter
#

you know what I will try it right now I have some spare time

calm robin
#
  store.putComponent(
                npcRef,
                DisplayNameComponent.getComponentType(),
                new DisplayNameComponent(Message.raw(def.nameplate))
        );
        Nameplate nameplate = store.ensureAndGetComponent(npcRef, Nameplate.getComponentType());
        nameplate.setText(def.nameplate);```

Is there any way to customize the NPC's nameplate?
somber trellis
#

how can I add a custom translation property for my custom item? I created Server/Languages/en-US/items.lang
but it isnt working and there is also nothing showing up in the asset editor

fallow citrus
#

--backup-frenquency 30 = every 30 minutes

north current
#

has anyone figured out UI and want to share some code or walk me through it?

latent spindle
#

When Slimefun in hytale

glad juniper
#

Did anyone figure out particle effect spawning yet
Also are status effects a thing yet?

runic vapor
#

What docs are there for hytale modding because there are a lot that just give a couple examples but I haven't seen any proper docs if they exist yet.

civic zephyr
#

Status effects? They get applied when you eat things

glad juniper
#

like, I wanted to have players heal while at spawn with a visible indicator

keen burrow
#

How to fix the RAM leak? I have a 8GB server and it hits max ram with only two people on lol

glad juniper
#

So I figured the status effect would be best solution

summer otter
civic zephyr
glad juniper
#

need to put you in my hall of fame in the world if I ever end up finishing this server

civic zephyr
#

Haha

glad juniper
#

I feel like I have half of my api interface options from you

proven owl
#

how do I make off-handable items with the asset editor?

merry otter
nova void
#

did anyone made plugin/mod for void type of world?

tough basin
#

how do i check if a player is op?

nova void
#

also fun```
[SessionServiceClient] Failed to request authorization grant: HTTP 403 - invalid token

heavy willow
#

Opinions wanted:
almost done with my pluginLibrary i think, so far what it does:

for asset makers that dont know java or node system or how to make jar files or anything like that it will inject their ores using simple xml sheet with simple rules and/or templates (like only injecting this ore near mithril) it probes all installed mods during world generation for any mod that has the exact directory and xml file in said directory to compile a list of ores it needs to inject, you can teleport to the ore types by using the oreID (it will probe ungenerated chunks up to 32 blocks away safely or 512 blocks of pregenerated biomes/zones) and you can teleport to any biomes (if within 512 blocks) to test teleporting to the ore in biome locked ore types. it will have a GUI that loads all biome types that the world has in its AssetModule meaning support for custom biome injections as well (not tested), there is a ui for the guide and a ui for the biome list with filters and a ui for oretypes i plan to add teleport buttons in the UI to tp to the nearest ore of that type and biome of that type instead of having to use the /cog tp --biome= commands anyone have anything else they would like to see in this "Library" that is relative to ore generation and testing?

fallow citrus
#

the hot reload (/plugin reload) doesn't work on plugins with assets?

#

i need to restart the server everytime?

tough basin
dusk vine
#

Hello. I need an opinion. A server with 16GB and 4 Linux cores can support how many players?I have my console showing a lot of errors in chunck red, and there is only ME in the world

alpine patrol
civic scarab
#

still no way to make a custom ui or change the chest ui to add a scroll function and have more slots?

civic zephyr
# tough basin bump

You need a UUID for the proper check which is:

PermissionsModule permissionsModule = PermissionsModule.get();
Set<String> groups = permissionsModule.getGroupsForUser(uuid);
if (groups.contains("OP")){

}
hybrid sentinel
civic zephyr
#

Ah thats where the constant is

alpine patrol
fallow citrus
#

there is any way to copy the errors on diagnostic mode?

nova void
#

or just if (PermissionsModule.get().hasPermission(context.sender().getUuid(), "*")){ // } but idk

civic scarab
#

Can someone help?

Is there a way to make a custom ui or change the chest ui to add a scroll function and have more slots?

calm robin
#
public void onPlayerMouseButton(@Nonnull PlayerMouseButtonEvent event) {
        MouseButtonEvent mouseButton = event.getMouseButton();
        if (mouseButton == null || mouseButton.mouseButtonType != MouseButtonType.Right) {
            return;
        }

        if (mouseButton.state != MouseButtonState.Pressed) {
            return;
        }

        Item itemInHand = event.getItemInHand();
        if (itemInHand == null || !LOBBY_ITEM_ID.equals(itemInHand.getId())) {
            return;
        }

        Player player = event.getPlayer();
        if (player == null) {
            return;
        }

        player.sendMessage(Message.raw("§aVocê usou o Seletor de servidores!"));
    }```

You have a alternative solution for this?
civic zephyr
#

The mouse events don't fire

#

The watering can is a good simple example of how to do that

alpine patrol
calm robin
alpine patrol
civic zephyr
civic zephyr
calm robin
civic zephyr
#

Not really other than just look at the watering can item

calm robin
civic zephyr
#

The asset editor

#

Do you know how to open it?

calm robin
#

Yes, I have it open. I thought you were talking about a specific item.

civic zephyr
#

Yeah I was, the watering can

wary lion
#

hey @civic zephyr sorry for the mention you helped me before and your clearly super knowledgeable i really want to know if it would be possible to create a world system for minigames essentially making the worlds as small as possible to shrink memory use because i created a whole server instance system for large minigame servers kinda like hypixel but memory use would be astronomic with the amount of servers i know i can create empty worlds but i really want to like reduce the amount of total chunks to a minimum idk if i can change the world size or anything like that

wintry thicket
#

How do i fix a prefab that I am pasting in seems like it is pasting via -a, aka no air blocks, I need the air blocks.

civic zephyr
#

In memory? I mean void worlds wouldn't take up that much

wary lion
vernal smelt
#

how do you Disable block breaking in adventure mode but allow interacting with things like chests and doors

civic zephyr
civic zephyr
civic zephyr
#

Would need a few threads on your CPU to get that handling well

harsh quiver
#

What method are people loading UI up together with the gameui? Trying to make it so it loads up at the start but also not too early to the point it doesn't kick me.

wintry basalt
#

I made pvp fun again with my mod hide health bars available on modtale

wary lion
# civic zephyr If the chunks haven't got any blocks in them then it should be negligible

really? see my mind is on mc i wasn't sure how it worked, also do you think it would be possible for me to make a world loader i want to compress the worlds as much as possible data wise with a compression algorithm with a high ratio and quick decompress because i want to be able to have players be able to change the game their playing on the fly without being redirected to another server tbh im not sure how quick world loading is on the game yet im just starting to play around with it and if its slow i want to have a plan ahead for possibly making it faster

wary lion
civic zephyr
#

No I don't

#

You might be able to save additional memory by deleting chunkrefs of chunks you don't need but I have no idea how stable that is

wary lion
#

well its a plugin for mc that uses a more modern compression to compress world data for quick loading/unloading mainly for minigames actually it was created by one of the hypixel team members from what i heard and im trying to just think of methods to speed off world loading/unloading

#

the compression vanilla mc worlds use rn is older than me and prob you as well XD

civic zephyr
#

Hytales architecture encourages multiworld so im sure whatever they've done is pretty efficient regarding space management, memory usage in Hytale servers is pretty high right now anyway even in a singular world instance with low playercounts

half geyser
#

how do i fetch a uuid to teleport in java

summer osprey
#

opa

fallow citrus
#

im trying to use the container templates, etc... with the common ui, but not going anywhere.

isnt supposed to be like that?

$Common = "../../Common.ui";
$Container = "../../Common/Container.ui";

... a lot of ui code ...

        Group #BasicKitCard {
          Background: (TexturePath: "../../Common/OptionBackgroundPatch.png", Border: 8);
          FlexWeight: 1;
          Anchor: (Right: 8);
          LayoutMode: Top;
          Padding: (Full: 12);

          ... more ui code

          $Common.@PrimaryTextButton #VipKitBtn {
            @Text = "RESGATAR";
            @Anchor = Anchor(Height: 40);
          }
wary lion
civic zephyr
severe pulsar
#

Is there a list of which values can be used for custom assets/blocks? or like how to properly fill out the information for it

heavy stag
#

anyone know how to hot reload plugins?

strong musk
severe pulsar
heavy stag
#

ty 🙏🏻

#

anyone know how to do line breaks in .ui files 💀

#

\n does indeed NOT work

wary lion
strong musk
lyric saddle
#

anyone know if you can check for multiple events in a single system, or is it one event to one system?

tawdry bramble
#

hey, i am new to hytale and want to create a server to play with 2-3 friends, is there a way to do this without having to pay for a server?

wary lion
strong musk
severe pulsar
#

Does anyone know how to get the Tags on an object?

Example some blocks have

  "Tags": {
    "Type": [
      "Soil"
    ]

I have a handler for when a block is placed, if the block is of a certain type I want to perform an action on it

summer ibex
#

How do i change the default spawn for new players on my server?
I have tried /setspawn - it says it sets it but they still do not spawn there

Do I need a plugin to do this?

steep acorn
#

"Failed to apply CustomUI HUD commands" Does anyone know how to solve it?

strong musk
tight herald
#

whats the base filepath for all base game blocky models? i think im either dumb or blind and cant find it 😄

mild hawk
#

Any chance anyone knows the difference between an EntityEvent and an EcsEvent? Seems like there are only two of the former, and that they are handled at the Plugin level vs the System level, but unsure of why they exist / if there is a benefit here.

neon dune
#

Entities events are entities events , entity components events are entity component events, ECS is entity component system

tight herald
calm robin
unkempt lotus
#

can any on help me, which event Hytale expose when right click to use a racipe page?

civic zephyr
calm robin
#

Ok, i'ii try

rose atlas
#

i was playing kitpvp on a server and 2 people started dueling with lightsabers 💀

civic zephyr
calm robin
civic zephyr
swift salmon
#

Guys, in Server/HytaleGenerator/Assignments/Plains1/Plains1_Iron.json I edited it and added my ore, but even after using /worldgen reload or /worldgen reload --clear, the ores don’t generate naturally. They only generate if I create a Plains1 instance, so didn't work in worldgen v1? Or does it only work with Java?

civic zephyr
#

And inside that RootInteraction asset put in:

{
  "Interactions": [
    {
      "Type": "YourCustomTypeThatYouRegisteredInCode"
    }
  ]
}
calm robin
civic zephyr
#

Im not sure what you mean by that

civic zephyr
vernal smelt
#

what is the best way to find documentation? obviously the hytale server manual is great but it doesn't cover everything. Currently just using the decompiler and going through different packages to try and find what I need

calm robin
# civic zephyr The thing you registered here would be put into your RootInteraction asset under...

I'll try setting the unique asset ID as LobbyUseItem then, my current code looks like this:


        Interaction.CODEC.register("LobbyUseItem", LobbyUseItemInteraction.class, LobbyUseItemInteraction.CODEC);
        Interaction.getAssetStore().loadAssets("SQH:LobbyCore", List.of(new LobbyUseItemInteraction(LobbyUseItemInteraction.DEFAULT_ID)));
        RootInteraction.getAssetStore().loadAssets("SQH:LobbyCore", List.of(LobbyUseItemInteraction.DEFAULT_ROOT));
civic zephyr
#

Whats all this other stuff for?

wary lion
civic zephyr
#

You just need the register

molten dew
#

I'm having a problem with my NPC spawn command. Its body is facing the direction the player is looking, but its head always points in the same direction. Does anyone know which API I can use for this?.

calm robin
pearl shard
#

How can i get a PlayerRef from a BreakBlockEvent's handle method? The provided arguments for the method are ArchetypeChunk<EntityStore>, Store<EntityStore>, CommandBuffer<EntityStore>, and BreakBlockEvent. just looking at the methods on all of these i didn't see anything that would give me the playerRef for the player that broke the block.

unkempt lotus
#

can any on help me, which event Hytale expose when right click to use a racipe page?

ashen sparrow
#

Hi, on the Hytale plugin API, what is the correct (recommended) way to retrieve a player's stable identifier (UUID/ID) from a Player object? getUuid()/getUid() are marked as deprecated on my end.

civic zephyr
wary lion
civic zephyr
#

That should give you a Ref<EntityStore>

swift salmon
#

Guys, can someone tell me if in the current version of Hytale it's still not possible to generate mod ores naturally?

wary lion
#

it should be possible

swift salmon
pearl shard
civic zephyr
civic zephyr
#

Ref in that context being the Ref<EntityStore>

high aurora
#

probably helpful to this crowd too :3

knotty holly
#

does anyone know if there is a way to save prefabs locally when saving from a server? instead of having to go into the server files to do it.

wary lion
vagrant hound
#

is there any docs for hytale oauth api already?

knotty holly
#

That wouldnt be out of the question... guess i need to hire a dev lol

glad juniper
#

What event do I need to use to handle interactions with npcentities? (F)

wary lion
knotty holly
#

how would it not be possible for the client to see whats in the box and store it to local memory

civic zephyr
knotty holly
#

the same way it does in a solo world

civic zephyr
glad juniper
civic zephyr
glad juniper
civic zephyr
#

Yeah thats a custom interaction

#

You have to define those in the entity role or maybe you can jank it with a component add but its easier to just make a new role

#

Look at the shopkeep roles, they do it, I do it on my death corpse NPCs to open their inventory

glad juniper
wary lion
molten dew
#

Does anyone have any useful documentation regarding NPC spawning?

civic zephyr
#

You have to fetch the role (behavior) and model

molten dew
#

Yes, I'm using it, but the NPC's head always comes facing the same way, lol, the body facing one way and the head facing the other.

civic zephyr
#

And how are you creating the model?

tropic tinsel
#

i know this isn't the correct chat, but here people may know the answerr better, what is the id for the tp command? i want to add permissions for all players to tp <player> <player> in my server, but i only got to add tp world to it, since it appears each variant have it's own id

knotty holly
#

Ive played plenty of games with no mod support that has mods, if only a few..

wary lion
tropic tinsel
wary lion
#

the current built in mod system its its probably not possible to do a schematica type mod that would work on a server

civic zephyr
warped garden
#

are mods still built in gradle

lyric saddle
#

anyone know how to set the damage of a block independent of a tool being used? i know about ::setDamage, but that only sets that damage instance of the tool, how would i modify the blocks damage amount itself

wary lion
#

i use maven

lyric saddle
tropic tinsel
lyric saddle
#

basically i want to set the block's damage to 0 after the player damages it to a certain amount, so it never breaks

knotty holly
# wary lion ofc its possible but idk what it would take to do it

yeah it would likely then be way too expensive to have a dev on hand to maintain it.. i wanted it as an insurance so i could save prefabs from clients i build stuff for to prevent them from claiming i never delivered, but if its that intense i would never be able to justify the cost.. anyway thank you guys for your input..

wary lion
copper anchor
#

Finally my community server is actually doing better lol... got some CF officials in their and a lot of people working on projects

knotty holly
#

would be easier just to keep recordings like i already do lol

odd gulch
# wary lion ofc its possible but idk what it would take to do it

the code is obfuscated, but minecrafts code was obfuscated until recently and we got a lot of client mods, took a lot of dedicated people though. I'm not sure if obfuscated c# is any easier/harder to work with than obfuscated java, and having an unobfuscated server may reduce motivation to mod the client

wary lion
# knotty holly more money than its worth

honestly if sold it would prob be profitable i can imagine anyone would want to save their builds but i think something like that would probably be considered hacks in a way

tawny ruin
copper anchor
#

Client mods are doable but not really required since a lot can be done with just server sided API

civic zephyr
# lyric saddle basically i want to set the block's damage to 0 after the player damages it to a...
var chunkStore = world.getChunkStore();
var chunkRef = chunkStore.getChunkReference(ChunkUtil.indexChunkFromBlock(blockX, blockZ));
var chunkComponentStore = chunkRef.getStore();
BlockHealthChunk blockHealthComponent = chunkComponentStore.getComponent(chunkRef, BlockHealthModule.get().getBlockHealthChunkComponentType());

BlockHealthChunk has a few useful methods like .repair(xyz) or whatever

copper anchor
#

On a seperate note, idk why these guys dont support custom fonts on the client, its truly moronic

wary lion
civic zephyr
odd gulch
cloud marsh
#

Anyone have an example of mouse click event working?

civic zephyr
#

They're broken, the client never sends the proper packet

cloud marsh
copper anchor
tawny ruin
wary lion
tawny ruin
copper anchor
#

Especially for modding... cause custom fonts allow all sorts of things

empty wraith
#

I really wanna ask how do i boost an entity up, like make it jump?, I looked that the player's code but just couldn't find it

copper anchor
#

Set its velocity probably

empty wraith
# copper anchor Set its velocity probably

I think I've tried that yesterday and it didnt' work, i took the Velocity Component and set it upward but the player just stood still, i think there's a function that makes entity to jump but I couldn't find it

copper anchor
#

I forgot its name but you could update the movement component or smth as well

wary lion
copper anchor
#

I just am stupid cause I can do any kind of coding but my brain is not working with ui files whatsoever

cloud marsh
#

Where would I find the Damage Event System in the decompiler?

civic zephyr
alpine patrol
empty wraith
civic zephyr
#

Heres how I do it but this is definitely not the most optimal way:

playerRefComponent.getPacketHandler()
                     .write(
                        new ApplyKnockback(
                           PositionUtil.toPositionPacket(transformComponent.getPosition()),
                           yourVelocity.x,
                           yourVelocity.y,
                           yourVelocity.z,
                           ChangeVelocityType.Add
                        )
                     );
#

Do you know how to get the players transform component? I assume you do since you seem familiar with the Velocity component

#

Its just TransformComponent

empty wraith
#

yeah i learned about it a little bit, thank you very much

torn plume
#

Im wondering if i should switch my server over

copper anchor
#

Over to what?

torn plume
#

paper

#

sry from

edgy sinew
# cloud marsh Anyone have an example of mouse click event working?

PlayerMouseButtonEvent triggers only when the mouse is visible on the screen, which I've found to only be the case when you change player camera--it's done in-game with /player camera. Problem is that you must pass an argument to the player camera command, which set the camera to a top-down or a sidescroller view.

torn plume
#

my brrain brokey

rose atlas
tardy tartan
#

Is there a way to fetch the block that a laserpointer tool is looking at via a plugin?

lyric saddle
#

anyone know where to go about finding vanilla gathertypes and/or creating your own?

cloud marsh
#

Im down but I suck at making mods rn xD

echo olive
#

Does anyone know if it's possible to leave more mobs to spawn? And is there a way to increase the life and damage of mobs here in Hytale?

cloud marsh
#

nvmmmmmm @quiet ermine is a brand new account made today

#

yea idk alt or not its just weird

rose atlas
#

I was on a kitpvp server and two people were fighting with lightsabers

#

Was so funny

cloud marsh
stiff burrow
#

yo when i click sign in it says with the same identifier

cloud marsh
#

can we get a vc in this server man

wary lion
frosty hearth
#

Is it possible to make a UI button or something else so that it doesn't require entering a command to open it?

barren vortex
#

What's the best current resource on how to save/load custom data?

glad juniper
#

Slowly going insane here
Anyone knows how I get the closest NPCEntity to the player?
Or the NPCEntity the player is looking at, only successfully get the block the player is looking at rn

frosty hearth
mortal gate
barren vortex
frosty hearth
mortal gate
glad juniper
echo olive
#

Does anyone know if it's possible to leave more mobs to spawn? And is there a way to increase the life and damage of mobs here in Hytale?
I have a map open, with more than 15 people, but it doesn't seem to spawn properly, any tips?

wintry basalt
#

More NPC Spawns on Curseforge

#

Do note it will drastically increase spawnrate of mobs

quick verge
#

Is there a good documentation that tells what each method does yet? Anything I can find isn't even remotely saying what the methods do yet

#

Like, wth does ArchetypeChunk do or check?

echo olive
# wintry basalt More NPC Spawns on Curseforge

And another thing, it's all very easy, it would be interesting to have a mod that helps increase life, mob attacks...
There is one called hydifficulty, but it is very buggy, and crashes a lot...

Other than that, do you know if there is another mod?

near turtle
quick verge
near turtle
#

I feel you i read the code for a few days before starting on my plugin

quick verge
#

I reading it rn and I'm so lost

nocturne star
quick verge
#

Real?

nocturne star
#

OpenAI has a free trial atm

quick verge
#

How would I start with that? Thats a bit out of my knowledge

mortal gate
idle cargo
#

have the devs said anything about whether/when they are going to produce docs?

nocturne star
#

Search "Codex" and install is easy. And just have it point to the HytaleServer.java and it will decompile and research

north current
#

vineflower

mortal gate
#

abstractions and ECS in general is a very diferent paradigm and harder imo to understand

quick verge
#

Wow, thats pretty good use for AI ngl. Thanks!

mortal gate
quick verge
nocturne star
#

I use it to decompile how to do certain systems for combat, custom weapons via BSON data

oak turret
#

Does anyone know how to disable mouse lock?

quick verge
#

Regardless, thanks for the help there. I'll def look into it

loud igloo
#

How do I handle player death to teleport them to a different world? When I add a Teleport component in OnDeathSystem, it conflicts with the RespawnPage and crashes. Should I listen for when the player clicks Respawn instead? Is there a way to skip the respawn screen entirely?

mortal gate
quick verge
sharp pumice
#

probs a dumb question, but i cant use getScheduler. is there a way to delay things?

echo olive
wintry basalt
cloud marsh
#

Man lookin through this game code is rough. Props to yall who can figure all this stuff out just by reading through this stuff xD

lyric saddle
#

anyone know if i can get a list of the items a block drops? ive found out how to get the drop list id, but not the list itself

nocturne star
#

pfft I wish Icould just read the java class files and understand it easily

cloud marsh
#

im a python/flutter person so this is just mumbo jumbo

#

all this OOP weirdo stuff xD

quick verge
#

Ew Python. OUT

lyric saddle
slate spade
#

Started with mc modding way too long ago, this is great

cloud marsh
nocturne star
#

I am a C# dev so not too much of a curve but still, I work on distributed systems so this is foreign

quick verge
echo olive
empty wraith
#

dumb question, how do i check if the user's on ground?, like currently touching the ground, i couldn't find any function in the player class too

slate spade
nocturne star
#

Does anyone know why multiple times a day I have to continue re authenticating on startup? I have persistence set to encrypted

slate spade
#

I have that same problem

sharp pumice
#

first person to awnser me in here lmfao

lyric saddle
#

glad it worked, i know how it feels to throw a question at the void and get nothing back

quick verge
# slate spade Tbh I always wanted to do more but found myself needing to make/find tools to ma...

Yeah same for me. Like I wanna make A UI or atleast learn how too. But to do that I first need some png asset for it. Thiis is just an example but usually it starts to compound more where I need to make more assets just to "practice" and I personally don't like doing things just for the sake for practice, even if It's badly built, I wanna make something I'm gonna use, or atleast know why I should replace it later on

severe pulsar
#

I want to have a custom collision handler

public class CollisionHandler implements IBlockCollisionConsumer {
@Override
  public Result onCollision(int blockX, int blockY, int blockZ,
                            Vector3d direction, BlockContactData contactData,
                            BlockData blockData, Box collider) {
    LOGGER.atInfo().log("Collided");
...
}

However I'm not entirely sure how to register this custom handler can someone point me in the right direction?

tall hamlet
#

Is there a dedicated place for server support? I'm using pterodactyl and it has to auth every time the panel runs, Any way to bypass this atm?

quick verge
#

For my college senior project, me and some friends made a Unity Game, and I maybe redesigned player movement 3 times, but I each time I intended for that to be how the game felt. It was never an experiment to try and see what sticks

severe pulsar
tall hamlet
#

Docker doesn't have access to UUID

hidden ingot
#

Hey, can someone help me? I don't know why the recipe isn't working json {"Recipe": { "TimeSeconds": 4.5, "KnowledgeRequired": false, "Input": [ { "ItemId": "Weapon_Longsword_Copper", "Quantity": 1 }, { "ItemId": "Weapon_Longsword_Iron", "Quantity": 1 }, { "ItemId": "Weapon_Longsword_Cobalt", "Quantity": 1 }, { "ItemId": "Weapon_Longsword_Thorium" }, { "ItemId": "Weapon_Longsword_Adamantite" } ], "BenchRequirement": [ { "Type": "Crafting", "Categories": [ "Weapon_Longsword" ], "Id": "Weapon_Bench", "RequiredTierLevel": 3 } ] }}

severe pulsar
civic zephyr
vocal kelp
#

I deleted my world in /universe/worlds/world but every time I run the server it keeps recreating the files for the world? Where is hytale seeing that saved data so I can truly delete the world?

#

Hytale saves all data through files right? doesn't use a database, etc

mortal gate
civic zephyr
mortal gate
surreal flame
#

anyone know where in the manifest i need to put my sound files and json to be reckognized?

#

i mean the manifest folder not the manifest.json of course

#

err rescource folder

spice harness
#

Where is the link to getting the API to code with?

#

Any documentation’s or links?

strong musk
sharp pumice
#

anyone familiar with SoundUtil? how would i send a simple sound to every player?

tall hamlet
tall hamlet
strong musk
#

idk, I would google it
the term you would want to look for is "hardware uuid" along with why its not present in docker

zenith moth
vocal kelp
zenith moth
#

wings update 1.12.1 if you want to google

dire glen
#

So brand new to modding for any game but have been looking forward to hytale since the trailer. Was wondering how hard is it gonna be to make custom instanced dungeons similar to Yungs fortress of the undead mod?

#

Any help would be appreciated

barren vortex
#

Is there a standard built-in way of storing custom data and saving to disc, or should I just use my own database?

civic zephyr
zenith moth
zenith moth
barren vortex
dire glen
zenith moth
dire glen
#

Was thinking more like hand crafted instanced dungeons you have to craft a crystal and put in the portal to reach

zenith moth
#

Well that's even better! One moment, While I haven't personally worked in that section of modding yet (I've been creating more ECS systems) I can def point in you a in a direction

zenith moth
#

I don't see any 1 to 1 tutorial around for that quite yet.

So I can point you in a direction in the asset editor.
Here are somethings to look at in the base game, maybe you can reverse engineer it.

Server/GameplayConfigs/Portal
Server/HytaleGenerator/WorldStructures/Portals_Taiga.json
Server/Item/Items/Portal/PortalKey_Hederas_Lair.json

dire glen
austere zealot
#

what mods should i use for my server?

solemn flame
alpine patrol
alpine patrol
velvet fossil
#

Heya does anyone how someone would go about making a top down mod? Aka u see things from the top

latent turret
#

is there a way to get a players ip?

alpine patrol
latent turret
#

ipbans

sick creek
alpine patrol
#

that would be so messed up if there was a way to get a users ip lol

latent turret
#

not really
you can in mc

sick creek
glad juniper
#

How do I edit roles so for example Klops_Merchant instead of opening his shop, opens my shop? What is the "Type": "OpenBarterShop" referencing in the code?

odd gulch
#

i mean even if there was no way to get the ip from the plugin side you can still get it from the network logs on the server

silver bronze
alpine patrol
sick creek
#

Even if is not possible via hytale api, would still be possible via reflection, the socket/datagram must be declared somewhere

sick creek
#

If that's your point, maybe you are right and there is no way to get the player IP via API, but is still possible to get it somehow.

alpine patrol
#

ipbans are still useless. use hwip instead

strong musk
#

Its also almost undoubtably possible to get their ip anyways

sick creek
#

Yes, ipbans are definitely useless, I must agree.

alpine patrol
#

one router restart and i have a new ip lol

latent turret
#

maybe for you but a 13yo troll that doesn't know well enough it works

civic zephyr
# sick creek If that's your point, maybe you are right and there is no way to get the player ...
           var handler = playerRef.getPacketHandler();
           var channel = handler.getChannel();
           SocketAddress socketAddress;
           if (channel instanceof QuicStreamChannel quicStreamChannel) {
               socketAddress = quicStreamChannel.parent().remoteSocketAddress();
           } else {
               socketAddress = channel.remoteAddress();
           }

           if (socketAddress instanceof InetSocketAddress inetSocketAddress){
               System.out.println(inetSocketAddress.getPort());
               System.out.println(inetSocketAddress.getAddress().getHostAddress());
           }
alpine patrol
civic zephyr
sick creek
#

Yeah, at least I know it since I was 10 years old

latent turret
#

still, extra measure

#

hwid for sure better, not wrong

sick creek
#

I mean, the game is not free, just ban the account.

alpine patrol
#

yeah UUID ban is actually more effective than ipban in paid games

strong musk
#

dramatically more effective lol
the main reason its not as effective in mc is because there are so many leaked accounts available

odd gulch
civic zephyr
alpine patrol
civic zephyr
#

The "API" we're given is just the straight up server in its entirety so not really any sandboxing going on