How would I set my blocks metadata depending on the players direction?
-
Recently Browsing
- No registered users viewing this page.
-
Posts
-
I'm trying to display a mana number, I setup the logic but I'm having problems displaying the string, I don't know what to put in the "Font" part of event.getGuiGraphics.drawString(Font, string, int, int, int) I have tried to figure it out myself but I haven't had any luck!
-
By TheCursedModder · Posted
@Xoroshio Thanks, I honestly forgot that I was going to have this feature in my mod. -
By TheCursedModder · Posted
public SetPlayerSpawn(Player player, BlockPos Pos) { ServerPlayer Server_Player = (ServerPlayer) player; Server_Player.setRespawnPosition(Server_Player.getRespawnDimension(), Pos, 0.0F, true, true); ResourceLocation advancementId = new ResourceLocation( TheDeadRise.MODID,"advancements:spawntrigger"); Advancement advancement = Server_Player.getServer().getAdvancements().getAdvancement(advancementId); AdvancementProgress progress = Server_Player.getAdvancements().getOrStartProgress(advancement); for (String criterion : progress.getRemainingCriteria()) { Server_Player.getAdvancements().award(advancement, criterion); } if(advancement == null) { Server_Player.sendSystemMessage(Component.literal("shit is not working")); } else { Server_Player.sendSystemMessage(Component.literal("shit is sorta working")); } } I'm trying to figure out if I'm doing something wrong with the resource location or something else. It's a simple problem, but I keep running into issues. Any help or guidance would be greatly appreciated! Also the game is not crashing at all if advancement is null.
-
-
Topics
-
Who's Online (See full list)
- There are no registered users currently online
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.