Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

spigot kill entity

@EventHandler
	public void onEntitySpawn(EntitySpawnEvent event) {
		if (event.getEntityType() == EntityType.CREEPER) {
			if (event.getEntity() instanceof Damageable) {
				
				Damageable creeper = (Damageable) event.getEntity();
				creeper.damage(1000);
			}
		}
    }
Comment

PREVIOUS NEXT
Code Example
Java :: copy array in java 
Java :: How to close jframe on click of button 
Java :: how to check whether a character is alphabet or not in java 
Java :: Android dark theme programmatically 
Java :: java detect new line in string 
Java :: java flowlayout 
Java :: comparable on a generic class java 
Java :: java array to collection 
Java :: factorial program in java 
Java :: Get the last Friday of a month in Java 
Java :: error cannot find symbol intent 
Java :: change image on button click android studio 
Java :: convert array of int to arraylist java 
Java :: Java how to make a number without a digit 
Java :: how to initialize a set in java 
Java :: decode base64 to file java 
Java :: calendar.year java 
Java :: check if string is uuid 
Java :: java convert java.util.Date to LocalDate 
Java :: java convert a string to char[] 
Java :: java create file in folder 
Java :: double.parsedouble in java 
Java :: java producer consumer 
Java :: requestmapping post 
Java :: Adding in java using user input 
Java :: how to move a marker on google maps in android studio 
Java :: jframe color 
Java :: repository query spring boot 
Java :: AndroidManifest.xml could not be found. 
Java :: convert double into integer 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =