Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add to config #13

Open
github-actions bot opened this issue May 2, 2020 · 0 comments
Open

add to config #13

github-actions bot opened this issue May 2, 2020 · 0 comments
Labels

Comments

@github-actions
Copy link

github-actions bot commented May 2, 2020

add to config

parrot.setHealth(1); // TODO add to config

		World world = player.getWorld();
		location = world.getHighestBlockAt(location).getLocation().add(0,1,0);
		Parrot parrot = (Parrot) world.spawnEntity(location, EntityType.PARROT);
		parrot.setTamed(Breedable.getCfg().getBoolean("hatches.tamed"));
		parrot.setHealth(1); // TODO add to config
		parrot.setVariant(Parrot.Variant.RED);
		if (parrot.isTamed()) {
			parrot.setOwner(player);
			parrot.setSitting(true);
		}
		if (Breedable.getCfg().getBoolean("hatches.named")) {
			parrot.setCustomNameVisible(true);
			parrot.setCustomName(ChatColor.translateAlternateColorCodes('&', Objects.requireNonNull(Breedable.getCfg().getString("hatches.name"))));
		}
	}
}
ndex 1542db8..5e3812f 100644
++ b/src/main/resources/config.yml
@github-actions github-actions bot added the todo label May 2, 2020
@Magnum97 Magnum97 mentioned this issue May 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants