Make End Enderman have teleport cooldowns via configuration#41
Open
Burchard36 wants to merge 1 commit intobonsaistudi0s:mainfrom
Open
Make End Enderman have teleport cooldowns via configuration#41Burchard36 wants to merge 1 commit intobonsaistudi0s:mainfrom
Burchard36 wants to merge 1 commit intobonsaistudi0s:mainfrom
Conversation
AlexNijjar
requested changes
Feb 29, 2024
| "config.endermanoverhaul.allowPickingUpBlocks": "Allow Picking Up Blocks", | ||
| "config.endermanoverhaul.allowSpawning": "Allow Spawning", | ||
| "config.endermanoverhaul.endEndermanTeleportChance": "End Enderman Teleport Chance", | ||
| "config.endermanoverhaul.endEndermanTeleportCooldown": "End Enderman Teleport Cooldown", |
Collaborator
There was a problem hiding this comment.
This will be replaced every time datagen is run. Must be put in the ModLangProvider. then run datagen
| this.playSound(SoundEvents.PHANTOM_BITE, 10.0f, 0.95f + this.random.nextFloat() * 0.1f); | ||
| entityData.set(DATA_BITING_TICKS, 7); | ||
| if (target instanceof LivingEntity entity && random.nextFloat() < EndermanOverhaulConfig.endEndermanTeleportChance) { | ||
| final long currentTime = new Date().getTime(); |
Collaborator
There was a problem hiding this comment.
Don't use Date. Find the difference using tickcount.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Love this mod, but kinda got a little angry with these end enderman in ATM9 so I rage-added in cooldowns for End Enderman teleports, was going to just make this a suggestion buts its relatively simple so thought ide just make the PR my suggestions
Dunno much about how architectury works so I'm sure I might of not done something correctly for the
/generateddirectory (I just manually added in my config-en_us line)