-
Posts
63 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Xoroshio
-
player.getInventory().add(new ItemStack(your item here);
-
PLEASE someone help I have been asking everyone no one has helped!
Xoroshio replied to AlphaIceCube's topic in Modder Support
Hmmm, something is probably going wrong in your build.gradle or settings.gradle -
1.20.1 Inventory Overhaul / Editing the existing survival inventory
Xoroshio replied to Cassis2310's topic in Modder Support
Ahhhhh, modded inventories, my favourite. You are going to need a LOT of skill to pull this one of. Start by replacing the inventory screen with your own, and then you are basically on your own. It is achievable, but trust me, it’s going to be a lot of hard work. -
[1.20.1] How do I edit vanilla items properties?
Xoroshio replied to Sph2089's topic in Modder Support
Ok a lot can be done simply with events, but what do you want to do? -
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?
Xoroshio replied to Chlebqowy's topic in Modder Support
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?
Xoroshio replied to GsE-26's topic in Modder Support
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 -
Listen for LivingDeath event, and if the entity is a player, cancel the event and set the players health to at least 0.5f
-
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 [1.20.1] Apply custom full armor effects
Xoroshio replied to vacolandia's topic in Modder Support
Can I see all of your armour code? -
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
Xoroshio replied to Xoroshio's topic in Modder Support
ok, i solved it by using a FlatLevelSource chunk generator and having no layers. i also called setDecoration(); -
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()); } }
-
1.16.5 Make entity walk to coordinates instead of teleport (1.16.x)
Xoroshio replied to yaboytommy123's topic in Modder Support
Try Mob.getNavigation().moveTo(x,y,z,1); -
1.20.1 [1.20.1] Apply multiple full armor effects doesn't work
Xoroshio replied to vacolandia's topic in Modder Support
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 [1.20.1] Apply custom full armor effects
Xoroshio replied to vacolandia's topic in Modder Support
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 -
1.20.1 How do I make custom biome tags for custom biomes 1.20.1
Xoroshio posted a topic in Modder Support
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. -
There is a problem with net/mcreator/stonks/gui/AlloyFurnaceGUIGui$GuiWindow mcreator is probably the culprit
-
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
Xoroshio replied to aleaborba's topic in Support & Bug Reports
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 -
1.20.1 Idk where I must execute "setDeltaMovement" method.
Xoroshio replied to Spyer's topic in Modder Support
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. -
Try and replace () -> new Item(Item.properties….. in ModItems with () -> new HoneyBottleItem(Item.properties……
-
[SOLVED] Microphone mod not working on MacOS
Xoroshio replied to Xoroshio's topic in Support & Bug Reports
Thanks so much, do you have any launcher suggestions or is Prism Launcher the go to launcher?