3,858 questions
Best practices
0
votes
13
replies
190
views
Should I use a .JSON file to store data in a C++ game
I like making video games and was wondering what the best way to store data is, and if I should use a .JSON. Also, as a side question, how does minecraft store so much data without crashing? ...
Score of -3
1 answer
144 views
Why does my Python function get rejected by register command?
I am using PySpigot to build a plugin for a Minecraft server, specifically a staff manager. But I came across this error:
[16:46:33 INFO]: moha_ali250 issued server command: /pyspigot reload ...
Score of 0
0 answers
58 views
Invisible entity still has 1x1x1 collision box in Fabric (GeckoLib cannon seat)
I'm making a Minecraft Fabric mod (1.21.11) with a cannon block.
The cannon uses a custom GeckoLib model (BlockEntity) and a separate
invisible "seat" entity (CannonSeatEntity extends Entity)...
Advice
0
votes
0
replies
43
views
How to get the list of Minecraft's vanilla AttributeModifier UUID?
Help | Java 1.21.11
like this (this is fabric code)
@Override
public void setBaby(boolean baby) {
super.setBaby(baby);
if (baby) {
// remove vanilla baby zombie's speed modifier
...
Best practices
0
votes
9
replies
135
views
Is it better to store data for a modular system in sets of arrays or to use reflection to get the data straight from a class?
I am self-taught, so I apologize if the title uses terms incorrectly.
I am trying to write a Minecraft mod that adds some RPG mechanics to the game.
BUT more importantly, for this question, it ...
Score of -1
1 answer
166 views
How can Mixins be used to inject into a lambda statement [closed]
I am making a Minecraft mod and need to add a Mixin targeting a method invocation inside a lambda body.
I have the following target class:
public class Foo {
public static void bar() {
...
Score of 0
0 answers
84 views
Custom swimming entity (Animal) won't move in water
I'm making a Fabric 1.21.11 mod (Mojang mappings, GeckoLib 5.4.4) with a custom whale entity that extends Animal. The whale won't swim properly. It either stands still, floats to the surface, or gets ...
Score of 0
1 answer
61 views
Change height of ItemDisplay customName
Is there a way to change the height of the customName from an ItemDisplay Entity? Right now the customName of the ItemDisplay is right in the displayName of my player. My current code:
ItemDisplay ...
Advice
1
vote
2
replies
163
views
Coding minecraft plugin with java
I wanted to make a minecraft plugin but i don't have any idea about how...
Do you have any suggestions about editors and library?
Also some tutorials to watch or guides for start from 0, maybe some ...
Advice
0
votes
0
replies
95
views
How to automatically import thousands of images into Minecraft maps and place them in item frames
have a Spigot 1.21.1 Minecraft Java Edition server. I connected a Python API to it using the mcpi library and RaspberryJuice. Now I want to insert thousands of PNG/JPG images into the game. All images ...
Score of 4
1 answer
94 views
Why py_mcws.WsClient don't run with my asyncio event_loop?
I want to create a window program that connects a Minecraft world to a local websocket. It works fine in the Thonny IDE and I can run everything smoothly, but when I try to start it via Bash, it ...
Score of 1
0 answers
38 views
How can I properly ban a player in Skript on Minecraft 1.21.4?
My code is not working.
Made in Skript.
It says it cannot parse the code.
I am on Minecraft version 1.21.4.
I expect it to ban the player and also keep them banned when they join again.
on join
if {...
Advice
2
votes
5
replies
123
views
I can't build a Slimefun addon for Minecraft, can't collect dependencies
I cloned this forked repo into IntelliJIDEA in a new project and made a few changes here and there, now when I build the jar file, it says:
[ERROR] Could not collect dependencies for project dev....
Score of 0
0 answers
123 views
Why my mod not breaks visual blocks on the server minecraft
Good afternoon/evening. I encountered a problem in the mod: why, when I try to visually break a block on a spawn, does it return it back, even though it shouldn't?
package com.example.visualbreakmod;
...
Score of 2
0 answers
128 views
How do I prevent a PlayerEntity from making sounds in Minecraft Fabric 1.21.1?
I'm trying to make a mod that adds a new material which can be made into armor, tools, and at some point some other stuff. The material is called Vibral, and it's found in the deep dark and ancient ...