Jump to content

Need a skript


Capacitymouse42

Recommended Posts

This should do the trick:

Quote

on mine of iron ore:
  player's gamemode is survival:
    chance of 100%:
      cancel event
      set block to air
      drop a iron ingot

on mine of gold ore:
  player's gamemode is survival:
    chance of 100%:
      cancel event
      set block to air
      drop a gold ingot

 

Link to comment
Share on other sites

19 hours ago, Adaptable said:

This should do the trick:

 

seems a lot more over complicated then it needs to be, though it still should work

here's a simple version:

on mine of iron ore or gold ore:
	cancel event
	set event-block to air
	if event-block is iron ore:
		drop 1 iron ingot
	else if event-block is gold ore:
		drop 1 gold ingot

you can alternatively replace the drop effect with:

give 1 of iron ingot to player
give 1 of gold ingot to player

 

First Joined: July 2015
VIP: January 2020
Jr.Mod: 1st April 2020
Mod: 16th July 2020

Info:

~ Skript Developer
~ Discord: @nicholxs#0001
~ Previous names: Nichxlxs, Deterno, iHaveSkills, Retrical

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...