Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // changeColorOnClickDown.js
- (function () {
- function rndByte() {
- return (Math.floor(Math.random() * Math.floor(255))).toString();
- }
- this.clickDownOnEntity = function (entityID, mouseEvent) {
- Entities.editEntity(entityID,
- { color: { red: rndByte(), green: rndByte(), blue: rndByte()} }
- );
- };
- })
Add Comment
Please, Sign In to add comment