Skip to content

Instantly share code, notes, and snippets.

@inertia186
Last active December 14, 2015 00:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inertia186/5002463 to your computer and use it in GitHub Desktop.
Save inertia186/5002463 to your computer and use it in GitHub Desktop.
Minecraft themed slap script.
Gem::Specification.new do |s|
s.name = 'mc-slap'
s.version = '0.0.1'
s.platform = Gem::Platform::RUBY
s.author = 'Anthony Martin'
s.email = 'mc-slap@martin-studio.com'
s.summary = 'Minecraft Slap'
s.description = 'Minecraft themed slap script.'
s.files = ['mc-slap.rb']
s.require_path = '.'
end
class McSlap
@verbs = %w(
slaps hits pricks slays pummeles kills tortures spleefs embiggens ethos
comparates lags shoves spams withers spanks fracks decorates feeds licks
inverts smurfs stylizes attacks infects disappears krees
)
@adjectives = [
'a large', 'an enormous', 'a small', 'a medium sized', 'an extra large',
'a questionable', 'a suspicious', 'a terrifying', 'a scary',
'a breath taking', 'a horrifying', 'a glitchy', 'a pixelated',
'a cromulent', 'a semi-weird', 'a laggy', 'an auspicious',
'a fracking', 'a manly', 'an undercooked', 'an amazing', 'an upside-down',
'a smurfy', 'a spiffy', 'an uncaring', 'a deadly', 'a magical', 'a mighty'
]
@nouns = [
'piece of cobble', 'redstone repeater set to four', 'brick',
'brown wool block', 'wooden axe', 'diamond shovel', 'mossy stone brick',
'cooked fish', 'debonair potion', 'iron ingot', 'dead shrub',
'birch-wood slab', 'ghast tear', 'jungle tree sapling', 'mellohi disc',
'end portal frame', 'bottle-o-enchanting', 'cluster of nether wart',
'picture of Markus Persson', 'used saddle', 'rusty iron hoe',
'brewing stand', 'rolled up map', 'fermented spider eye',
'glistering melon', 'ripe cocoa plant', 'pair of shears',
'stack of rotten flesh', 'dragon egg',
'enchanted golden sword with fire aspect and knock-back II',
'primed TNT block', 'brown mushroom', 'ice block', 'FIRE',
'rubber chicken with a pulley in the middle', 'popsic', 'baby mooshroom',
'pig spawner', 'book entitled Haircare by jeb', 'Zistonian Battle Sign',
'cookie stolen from Gamechap, I say',
'hunk of pork extracted from Granny_Bacon', 'wig of Minecraft Chick',
'beat up hopper', 'carrot on a stick', 'very damaged anvil', 'lag',
'unpowered redstone block', 'command block named Cave Johnson',
'popcorn container', 'frack', 'set of antlers', 'poisoned potato',
'horse of a different color', 'dinner bone', 'smurf', 'marklar',
'badass honey badger', 'neurotoxin', 'can of beans', 'jaffa'
]
def self.slap ( player )
"#{@verbs.sample} #{player} with #{@adjectives.sample} #{@nouns.sample}"
end
def self.combinations
@verbs.length * @adjectives.length * @nouns.length
end
end
if ARGV.join.length > 0
STDERR.puts McSlap::slap ARGV.join ' '
else
STDERR.puts "has #{McSlap::combinations} slap combinations, see: https://gist.github.com/inertia186/5002463"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment