Everything posted by Xoroshio
- [1.20.1] How do I edit vanilla items properties?
-
Unable to summon entity
The problem is probably with defining synched entity data. Can I see your code
-
How do I convert command.getSource to player in 1.20.4?
command.getSource().getPlayer() may be null if a player did not execute the command.
-
How to make an entity to save its property when reentering the game?
You could store your variant as a plain string, then implement IEntityAdditionalSpawnData, and write and read your string to the client there. Then just read and write your string inside read/addAdditionalSaveData
-
Totem of Undying Code
Listen for LivingDeath event, and if the entity is a player, cancel the event and set the players health to at least 0.5f
-
[1.20.1] Check if there's a player on a block
You can use either a ticking block entity or override tick in your block class. When the block ticks, check if there is a player on it and if there is, light it up, else de light it
-
[1.20.1] Apply custom full armor effects
Can I see all of your armour code?
-
Unknown or incomplete command, see below for error
im trying to create a player border command, but whenever i try to use /playerborder set ~ ~ ~10 ~10 or any other Vec2 arguments, this error will show : "Unknown or incomplete command, see below for error" here is some of my code : public PlayerBorderCommand(CommandDispatcher<CommandSourceStack> dispatcher) { dispatcher.register(Commands.literal("playerborder").requires(x->x.hasPermission(2)) .then(Commands.literal("set") .then(Commands.argument("min", Vec2Argument.vec2()) .then(Commands.argument("max", Vec2Argument.vec2()) .executes(this::setBorder)))) .then(Commands.literal("add") .then(Commands.argument("player", MessageArgument.message()) .executes(this::addPlayer))) .then(Commands.literal("remove") .then(Commands.argument("player", MessageArgument.message()) .executes(this::removePlayer)))); }
-
[SOLVED] How do I remove default biome generation for custom biome
ok, i solved it by using a FlatLevelSource chunk generator and having no layers. i also called setDecoration();
-
[SOLVED] How do I remove default biome generation for custom biome
Hi there, how do i remove the default generation? My biome generates very default things such as caves, dirt, water, and grass. How do I make it only generate features? For example, the biome would be void with some floating custom features.
-
Need help making an item enchantable
Instead of extending TieredItem, try and extend SwordItem
-
.
Where are you calling createAttributes() ? you may have to do this: @Mod.EventBusSubscriber(modid = MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD) public class ModEventBusEvents { @SubscribeEvent public static void registerAttributes(EntityAttributeCreationEvent event) { event.put(ModEntityType.AFRAID_BOSS.get(), AfraidBoss.createAttributes().build()); } }
-
Make entity walk to coordinates instead of teleport (1.16.x)
Try Mob.getNavigation().moveTo(x,y,z,1);
-
[1.20.1] Apply multiple full armor effects doesn't work
I’m not sure why your first problem is being a problem, it’s code should work. Can I see your ModItems class? There might be a problem there. Your second issue, two effects on one material, is because you are trying to modify an immutable map before it is built. The way your code works is the each armour material is mapped to ONE armour effect. Is you want multiple effects for each material, you will have to modify the map so that it maps armour materials to a list of effects. You will also have to modify the effect applying code to work with lists if effects.
-
[1.20.1] Apply custom full armor effects
You could try and manage custom armour features from inside armourTick. You would need to create a custom item called, for example, SapphireChestplateItem. It would extend ModAmrorItem. Your code might look like this: @Override public void onArmorTick(){ super.onArmorTick(); //your code here } If onArmorTick is to slow for you, you can listen for server ticks and loop through the servers players and if the current one if wearing your armor, do whatever you want. btw this is only is you want the result of the effect, not like a full blown armour independent effect, e.g night vision
-
How do I make custom biome tags for custom biomes 1.20.1
Hi, I have tried to make biome tags for custom biomes, however when the ModBiomeTagProvider runs, it throws an error saying: “could not create tag tagname because it is missing the following references: biomename”. I used the normal way you register tags, extending ForgeBiomeTagProvider. Thank you in advance.
-
1.16.5 Server Not Launching
There is a problem with net/mcreator/stonks/gui/AlloyFurnaceGUIGui$GuiWindow mcreator is probably the culprit
-
get player's respawn coordinates?
The player doesn’t have a respawn point because you haven’t used a bed or respawn anchor or something. When the players respawn point is null and the player wants to respawn, the server calculates when the player should respawn. If getRespawnPosition is null, get the world spawn from the ServerLevel
-
I don't know what is crashing my friend's game
I can’t see what the problem is since there seem to be no errors. Are you sure that was everything? The last log seems to be about the graphics library. Maybe that is the issue. [20:26:39] [main/INFO]: Incorrect key [earlyWindowSkipGLVersions] was corrected from null to [] …… [20:26:41] [main/INFO]: Trying GL version 4.6 looks sus, but it might not be the issue
-
Idk where I must execute "setDeltaMovement" method.
setDeltaMovement only works on the client. this makes the animations smoother. The reason sendSystemMessage works is because you don’t have to constantly send messages from the server to the client, and a little bit of lag is ok. This is a core minecraft mechanism, but you can send custom packets over to the client to set its deltaMovement. The client has to have a way to receive the packets too.
-
How do I make a drink item?
Try and replace () -> new Item(Item.properties….. in ModItems with () -> new HoneyBottleItem(Item.properties……
-
[SOLVED] Microphone mod not working on MacOS
Thanks so much, do you have any launcher suggestions or is Prism Launcher the go to launcher?
-
[SOLVED] Microphone mod not working on MacOS
Hi, the microphone mod is not working on my Mac. It says “launcher does not support MacOS microphone permissions” Thank you in advance for answering.
-
Help with shaders
Make sure you have Optifine installed as a mod. Go into Options > Video Settings > Shaders > and then click the shader you want Make sure the shader.zip files are in the shaderpacks folder inside the minecraft folder
-
Trouble Starting Forge Server for Minecraft 1.20.1
you probably need to give it more RAM
IPS spam blocked by CleanTalk.